Queries the details of a service instance by its region ID, service instance ID, or Alibaba Cloud Marketplace instance ID. The returned information includes the service status, template name, and a list of resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenest:GetServiceInstance |
get |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceInstanceId |
string |
No |
The service instance ID. Note
You must specify either |
si-d6ab3a63ccbb4b17**** |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| MarketInstanceId |
string |
No |
The Alibaba Cloud Marketplace instance ID. |
704***59 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Outputs |
string |
The output fields returned when the service instance is created.
|
{"InstanceIds":["i-hp38ofxl0dsyfi7z****"]} |
| Status |
string |
The deployment status of the service instance. Valid values:
|
Deployed |
| TemplateName |
string |
The template name. |
模板1 |
| UpdateTime |
string |
The time when the service instance was updated. |
2021-05-20T00:00:00Z |
| Progress |
integer |
The deployment progress of the service instance. Unit: %. |
90 |
| Parameters |
string |
The parameters that are entered for deploying the service instance. |
{"param":"value"} |
| RequestId |
string |
The request ID. |
4DB0F536-B3BE-4F0D-BD29-E83FB56D550C |
| ServiceInstanceId |
string |
The service instance ID. |
si-d6ab3a63ccbb4b17**** |
| CreateTime |
string |
The time when the service instance was created. |
2021-05-20T00:00:00Z |
| StatusDetail |
string |
The description of the deployment status of the instance. |
deploy successfully |
| Resources |
string |
The list of resources. |
[{"StackId": "stack-xxx"}] |
| Service |
object |
The details of the service. |
|
| Status |
string |
The service status. Valid values:
|
Online |
| PublishTime |
string |
The time when the service was published. |
2021-05-21T00:00:00Z |
| Version |
string |
The service version. |
1 |
| DeployMetadata |
string |
The information about the service deployment configuration. The information varies based on the deployment type. The data is stored in the JSON string format. |
{"EstimateTime":null,"SupplierDeployMetadata":{"DeployTimeout":null},"TemplateConfigs":[{"Name":"模板1","Url":"https://service-info-private.oss-cn-hangzhou.aliyuncs.com/130920852836****/template/af11ec5a-09a0-4aa7-970c-09b51e2a****.json","PredefinedParameters":[],"AllowedRegions":["cn-hangzhou"]}]} |
| DeployType |
string |
The deployment type. Valid values:
|
ros |
| ServiceId |
string |
The service ID. |
service-9c8a3522528b4fe8**** |
| SupplierUrl |
string |
The URL of the service provider. |
http://example.com |
| ServiceType |
string |
The service type. Valid values:
|
private |
| SupplierName |
string |
The name of the service provider. |
A公司 |
| ServiceInfos |
array<object> |
The service information. |
|
|
object |
The service information. |
||
| Locale |
string |
The language of the service instance. |
zh-CN |
| Image |
string |
The URL of the service icon. |
https://example.com/service-image/c1c4a559-cc60-4af1-b976-98f356602462.png |
| Name |
string |
The service name. |
B数据库 |
| ShortDescription |
string |
The summary of the service. |
B是A公司自主设计并研发的开源分布式的关系型数据库 |
| VersionName |
string |
The custom version name defined by the service provider. |
版本A |
| UpgradeMetadata |
string |
The upgrade metadata. |
{ "Type": "OOS", "Description": "Changelog or something description", "SupportUpgradeFromVersions": [1, 2], "UpgradeSteps": { "PreUpgradeStage": { "Description": "初始化数据库", "Type": "RunCommand", "ResourceName": "EcsRole1", "CommandType": "runShellScript", "CommandContent": "echo hello" }, "UpgradeStage": [{ "Description": "更新EcsRole1实例", "Type": "RunCommand", "ResourceName": "EcsRole1", "ArtifactsDownloadDirectory": "/home/admin", "CommandType": "runShellScript", "CommandContent": "echo hello" }], "PostUpgradeStage": { "Description": "部署后post check", "Type": "None/RunCommand", "ResourceName": "EcsRole1", "CommandType": "runShellScript", "CommandContent": "echo hello" } } } |
| UpgradableServiceVersions |
array |
The list of service versions to which the service can be upgraded. |
|
|
string |
The service version to which the service can be upgraded. |
1 |
|
| UpgradableServiceInfos |
array<object> |
The information about the service versions to which the service can be upgraded. |
|
|
object |
The information about the service versions to which the service can be upgraded. |
||
| Version |
string |
The service version. |
draft |
| VersionName |
string |
The version name. |
20241112 |
| ServiceProductUrl |
string |
The URL of the product page. |
https://service-info-private.oss-cn-hangzhou.aliyuncs.com |
| ServiceDocUrl |
string |
The URL of the product documentation. |
http://example.com |
| OperationMetadata |
string |
The parameters related to O&M operations, including service upgrade and downgrade, Prometheus, and log configurations. |
{"SupportBackup":false,"PrometheusConfigMap":{},"ModifyParametersConfig":[{"TemplateName":"国内版","Operation":[{"Name":"套餐变配","Description":"套餐变配","Type":"Custom","SupportPredefinedParameters":true,"EnableLogging":false},{"Name":"参数变配","Description":"参数变配","Type":"Custom","SupportPredefinedParameters":false,"EnableLogging":false,"Parameters":["DataDiskSize"]}]}]} |
| OperationStartTime |
string |
The start time of the managed O&M. |
2021-12-29T06:48:56Z |
| OperationEndTime |
string |
The end time of the managed O&M. |
2022-01-28T06:48:56Z |
| OperatedServiceInstanceId |
string |
The ID of the service instance that is managed. |
si-d6ab3a63ccbb4b17**** |
| EnableInstanceOps |
boolean |
Indicates whether the service instance supports managed O&M. Valid values:
|
true |
| IsOperated |
boolean |
Indicates whether managed O&M is enabled for the service instance. Valid values:
|
true |
| NetworkConfig |
object |
The network configuration. Note
This parameter is deprecated. |
|
| EndpointId |
string |
The endpoint ID of the PrivateLink connection. Note
This parameter is deprecated. |
ep-m5ei37240541816b**** |
| PrivateZoneId |
string |
The ID of the PrivateZone for the custom private domain name. Note
This parameter is deprecated. |
cb7f214f80ac348d87daaeac1f35**** |
| PrivateVpcConnections |
array<object> |
The information about the PrivateLink connection. |
|
|
array<object> |
The information about the PrivateLink connection. |
||
| EndpointId |
string |
The endpoint ID of the PrivateLink connection. |
ep-m5ei37240541816b**** |
| PrivateZoneId |
string |
The ID of the PrivateZone for the custom private domain name. |
cb7f214f80ac348d87daaeac1f35**** |
| PrivateZoneName |
string |
The custom domain name. |
test.computenest.aliyuncs.com |
| ConnectionConfigs |
array<object> |
The network configurations. This parameter is used for PrivateLink connections. |
|
|
object |
The network configurations. This parameter is used for PrivateLink connections. |
||
| VpcId |
string |
The virtual private cloud (VPC) ID. |
vpc-bp1vwnn14rqpyiczj**** |
| SecurityGroups |
array |
The security group name. |
|
|
string |
The security group name. |
'sg-m5ec4mvoq9egn7xxxxxx |
|
| VSwitches |
array |
The vSwitch name. |
|
|
string |
The vSwitch name. |
vsw-uf6iqwohr05dw4mxxxxxx |
|
| IngressEndpointStatus |
string |
The status of the Ingress endpoint. Valid values:
|
Ready |
| NetworkServiceStatus |
string |
The status of the network service. Valid values:
|
Ready |
| EndpointIps |
array |
The IP address of the PrivateLink endpoint. |
|
|
string |
The IP address of the PrivateLink endpoint. |
192.xxx.xxx.xxx |
|
| DomainName |
string |
The domain name. |
ie-569a9be34f5534f6bc6559b5c1xxxxxx.service-51f80502802e48xxxxxx.cn-hangzhou.computenest.aliyuncs.com |
| RegionId |
string |
The region where the VPC of the endpoint is located when a private connection is established in Compute Nest intranet-connected mode. |
cn-beijing |
| ConnectBandwidth |
integer |
The bandwidth limit for the connection that is established in Compute Nest intranet-connected mode. |
1536Mbps |
| RegionId |
string |
The region ID of the endpoint for the PrivateLink connection. |
cn-hangzhou |
| ReversePrivateVpcConnections |
array<object> |
The information about the reverse PrivateLink connection. |
|
|
object |
The information about the reverse PrivateLink connection. |
||
| EndpointId |
string |
The endpoint ID of the reverse PrivateLink connection. |
ep-m5ei42370541816b**** |
| Tags |
array<object> |
The custom tags. |
|
|
object |
The custom tags. |
||
| Key |
string |
The tag key. |
key1 |
| Value |
string |
The tag value. |
value1 |
| LicenseEndTime |
string |
The time when the license expires. |
2022-01-01T12:00:00 |
| UserId |
integer |
The user's Alibaba Cloud account ID. |
130920852836**** |
| SupplierUid |
integer |
The Alibaba Cloud account ID of the service provider. |
158927391332***** |
| EndTime |
string |
The time when the service instance expires. |
2022-01-01T12:00:00 |
| Source |
string |
The source of the service instance. Valid values:
|
User |
| ServiceType |
string |
The service type. Valid values:
|
private |
| PayType |
string |
The billing method. Valid values:
|
Subscription |
| Name |
string |
The name of the service instance. |
TestName |
| EnableUserPrometheus |
boolean |
Indicates whether Prometheus monitoring is enabled. Valid values:
|
true |
| Components |
string |
The extra billing items of Alibaba Cloud Marketplace. |
{"TiKVServerCount":"3","package_version":"yuncode5398300001","PDServerCount":"3","TiDBServerCount":"2"} |
| PredefinedParameterName |
string |
The name of the package. |
套餐一 |
| MarketInstanceId |
string |
The Alibaba Cloud Marketplace instance ID. |
704***59 |
| ResourceGroupId |
string |
The resource group ID. |
rg-bp67acfmxazb4p**** |
| BizStatus |
string |
The business status of the service instance. Valid values:
|
Normal |
| GrafanaDashBoardUrl |
string |
The URL of the Grafana dashboard. |
https://gnew.console.alibabacloud.com/d/xxxxxxxx-cn-mariadb/mysql-xxxxxx-xxxxxxxx-and-dashboard?orgId=355401&refresh=10s |
| SupportTrialToPrivate |
boolean |
Indicates whether the trial service can be converted to a paid service. |
|
| PolicyNames |
string |
||
| GrantedPermission |
object |
||
| OperationEndTime |
string |
||
| PolicyNames |
string |
Examples
Success response
JSON format
{
"Outputs": "{\"InstanceIds\":[\"i-hp38ofxl0dsyfi7z****\"]}",
"Status": "Deployed",
"TemplateName": "模板1",
"UpdateTime": "2021-05-20T00:00:00Z",
"Progress": 90,
"Parameters": "{\"param\":\"value\"}",
"RequestId": "4DB0F536-B3BE-4F0D-BD29-E83FB56D550C",
"ServiceInstanceId": "si-d6ab3a63ccbb4b17****",
"CreateTime": "2021-05-20T00:00:00Z",
"StatusDetail": "deploy successfully",
"Resources": "[{\"StackId\": \"stack-xxx\"}]",
"Service": {
"Status": "Online",
"PublishTime": "2021-05-21T00:00:00Z",
"Version": "1",
"DeployMetadata": "{\"EstimateTime\":null,\"SupplierDeployMetadata\":{\"DeployTimeout\":null},\"TemplateConfigs\":[{\"Name\":\"模板1\",\"Url\":\"https://service-info-private.oss-cn-hangzhou.aliyuncs.com/130920852836****/template/af11ec5a-09a0-4aa7-970c-09b51e2a****.json\",\"PredefinedParameters\":[],\"AllowedRegions\":[\"cn-hangzhou\"]}]}",
"DeployType": "ros",
"ServiceId": "service-9c8a3522528b4fe8****",
"SupplierUrl": "http://example.com",
"ServiceType": "private",
"SupplierName": "A公司",
"ServiceInfos": [
{
"Locale": "zh-CN",
"Image": "https://example.com/service-image/c1c4a559-cc60-4af1-b976-98f356602462.png",
"Name": "B数据库",
"ShortDescription": "B是A公司自主设计并研发的开源分布式的关系型数据库"
}
],
"VersionName": "版本A",
"UpgradeMetadata": "{\n \"Type\": \"OOS\",\n \"Description\": \"Changelog or something description\",\n \"SupportUpgradeFromVersions\": [1, 2],\n \"UpgradeSteps\": {\n \"PreUpgradeStage\": {\n \"Description\": \"初始化数据库\",\n \"Type\": \"RunCommand\",\n \"ResourceName\": \"EcsRole1\",\n \"CommandType\": \"runShellScript\",\n \"CommandContent\": \"echo hello\"\n },\n \"UpgradeStage\": [{\n \"Description\": \"更新EcsRole1实例\",\n \"Type\": \"RunCommand\",\n \"ResourceName\": \"EcsRole1\",\n \"ArtifactsDownloadDirectory\": \"/home/admin\",\n \"CommandType\": \"runShellScript\",\n \"CommandContent\": \"echo hello\"\n }],\n \"PostUpgradeStage\": {\n \"Description\": \"部署后post check\",\n \"Type\": \"None/RunCommand\",\n \"ResourceName\": \"EcsRole1\",\n \"CommandType\": \"runShellScript\",\n \"CommandContent\": \"echo hello\"\n }\n }\n}",
"UpgradableServiceVersions": [
"1"
],
"UpgradableServiceInfos": [
{
"Version": "draft",
"VersionName": "20241112"
}
],
"ServiceProductUrl": "https://service-info-private.oss-cn-hangzhou.aliyuncs.com",
"ServiceDocUrl": "http://example.com",
"OperationMetadata": "{\"SupportBackup\":false,\"PrometheusConfigMap\":{},\"ModifyParametersConfig\":[{\"TemplateName\":\"国内版\",\"Operation\":[{\"Name\":\"套餐变配\",\"Description\":\"套餐变配\",\"Type\":\"Custom\",\"SupportPredefinedParameters\":true,\"EnableLogging\":false},{\"Name\":\"参数变配\",\"Description\":\"参数变配\",\"Type\":\"Custom\",\"SupportPredefinedParameters\":false,\"EnableLogging\":false,\"Parameters\":[\"DataDiskSize\"]}]}]}"
},
"OperationStartTime": "2021-12-29T06:48:56Z",
"OperationEndTime": "2022-01-28T06:48:56Z",
"OperatedServiceInstanceId": "si-d6ab3a63ccbb4b17****",
"EnableInstanceOps": true,
"IsOperated": true,
"NetworkConfig": {
"EndpointId": "ep-m5ei37240541816b****",
"PrivateZoneId": "cb7f214f80ac348d87daaeac1f35****",
"PrivateVpcConnections": [
{
"EndpointId": "ep-m5ei37240541816b****",
"PrivateZoneId": "cb7f214f80ac348d87daaeac1f35****",
"PrivateZoneName": "test.computenest.aliyuncs.com",
"ConnectionConfigs": [
{
"VpcId": "vpc-bp1vwnn14rqpyiczj****",
"SecurityGroups": [
"'sg-m5ec4mvoq9egn7xxxxxx"
],
"VSwitches": [
"vsw-uf6iqwohr05dw4mxxxxxx"
],
"IngressEndpointStatus": "Ready",
"NetworkServiceStatus": "Ready",
"EndpointIps": [
"192.xxx.xxx.xxx"
],
"DomainName": "ie-569a9be34f5534f6bc6559b5c1xxxxxx.service-51f80502802e48xxxxxx.cn-hangzhou.computenest.aliyuncs.com",
"RegionId": "cn-beijing",
"ConnectBandwidth": 0
}
],
"RegionId": "cn-hangzhou"
}
],
"ReversePrivateVpcConnections": [
{
"EndpointId": "ep-m5ei42370541816b****"
}
]
},
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"LicenseEndTime": "2022-01-01T12:00:00",
"UserId": 0,
"SupplierUid": 0,
"EndTime": "2022-01-01T12:00:00",
"Source": "User",
"ServiceType": "private",
"PayType": "Subscription",
"Name": "TestName",
"EnableUserPrometheus": true,
"Components": "{\"TiKVServerCount\":\"3\",\"package_version\":\"yuncode5398300001\",\"PDServerCount\":\"3\",\"TiDBServerCount\":\"2\"}",
"PredefinedParameterName": "套餐一",
"MarketInstanceId": "704***59",
"ResourceGroupId": "rg-bp67acfmxazb4p****",
"BizStatus": "Normal",
"GrafanaDashBoardUrl": "https://gnew.console.alibabacloud.com/d/xxxxxxxx-cn-mariadb/mysql-xxxxxx-xxxxxxxx-and-dashboard?orgId=355401&refresh=10s",
"SupportTrialToPrivate": false,
"PolicyNames": "",
"GrantedPermission": {
"OperationEndTime": "",
"PolicyNames": ""
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.