GetServiceInstance
Queries the details of a service instance by region ID, service instance ID, or Alibaba Cloud Marketplace instance ID, such as the service status, template name, and 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 ServiceInstanceId or MarketInstanceId. Otherwise, the service instance details cannot be queried. |
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 name of the template. |
Template 1 |
| UpdateTime |
string |
The update time. |
2021-05-20T00:00:00Z |
| Progress |
integer |
The deployment progress of the service instance. Unit: %. Valid values: 0 to 100. |
90 |
| Parameters |
string |
The input parameters 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 creation time. |
2021-05-20T00:00:00Z |
| StatusDetail |
string |
The status description of the deployed instance. |
deploy successfully |
| Resources |
string |
The list of resources. |
[{"StackId": "stack-xxx"}] |
| Service |
object |
The service details. |
|
| Status |
string |
The service status. Valid values:
|
Online |
| PublishTime |
string |
The publish time. |
2021-05-21T00:00:00Z |
| Version |
string |
The service version. |
1 |
| DeployMetadata |
string |
The information about the service deployment configuration. The stored information varies based on the deployment type. Different deployment types use different data formats, so the data is stored as a JSON string. |
{"EstimateTime":null,"SupplierDeployMetadata":{"DeployTimeout":null},"TemplateConfigs":[{"Name":"Template 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 service provider URL. |
http://example.com |
| ServiceType |
string |
The service type. Valid values:
|
private |
| SupplierName |
string |
The name of the service provider. |
Company 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. |
Database B |
| ShortDescription |
string |
The short description of the service. |
Database B is an open-source distributed relational database independently designed and developed by Company A |
| VersionName |
string |
The custom version name defined by the service provider. |
Version A |
| UpgradeMetadata |
string |
The upgrade metadata. |
{ "Type": "OOS", "Description": "Changelog or something description", "SupportUpgradeFromVersions": [1, 2], "UpgradeSteps": { "PreUpgradeStage": { "Description": "Initialize the database", "Type": "RunCommand", "ResourceName": "EcsRole1", "CommandType": "runShellScript", "CommandContent": "echo hello" }, "UpgradeStage": [{ "Description": "Update the EcsRole1 instance", "Type": "RunCommand", "ResourceName": "EcsRole1", "ArtifactsDownloadDirectory": "/home/admin", "CommandType": "runShellScript", "CommandContent": "echo hello" }], "PostUpgradeStage": { "Description": "Post-deployment check", "Type": "None/RunCommand", "ResourceName": "EcsRole1", "CommandType": "runShellScript", "CommandContent": "echo hello" } } } |
| UpgradableServiceVersions |
array |
The list of upgradable service versions. |
|
|
string |
The version number of the upgradable service. |
1 |
|
| UpgradableServiceInfos |
array<object> |
The information about the upgradable service versions. |
|
|
object |
The information about the upgradable service versions. |
||
| 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 specification changes, Prometheus, and log configuration. |
{"SupportBackup":false,"PrometheusConfigMap":{},"ModifyParametersConfig":[{"TemplateName":"China Edition","Operation":[{"Name":"Plan specification change","Description":"Plan specification change","Type":"Custom","SupportPredefinedParameters":true,"EnableLogging":false},{"Name":"Parameter specification change","Description":"Parameter specification change","Type":"Custom","SupportPredefinedParameters":false,"EnableLogging":false,"Parameters":["DataDiskSize"]}]}]} |
| OperationStartTime |
string |
The start time of the managed O&M service. |
2021-12-29T06:48:56Z |
| OperationEndTime |
string |
The end time of the managed O&M service. |
2022-01-28T06:48:56Z |
| OperatedServiceInstanceId |
string |
The instance ID of the service under Alibaba Cloud Managed Services. |
si-d6ab3a63ccbb4b17**** |
| EnableInstanceOps |
boolean |
Specifies whether the service instance has the managed O&M feature. Valid values:
|
true |
| IsOperated |
boolean |
Specifies whether the managed O&M feature is enabled for the service instance. Valid values:
|
true |
| NetworkConfig |
object |
The network configuration information. Note
[Deprecated] |
|
| EndpointId |
string |
The endpoint ID of the private network connection. Note
[Deprecated] |
ep-m5ei37240541816b**** |
| PrivateZoneId |
string |
The ID of the custom private domain name in PrivateZone. Note
[Deprecated] |
cb7f214f80ac348d87daaeac1f35**** |
| PrivateVpcConnections |
array<object> |
The private network connection information. |
|
|
array<object> |
The private network connection information. |
||
| EndpointId |
string |
The endpoint ID of the private network connection. |
ep-m5ei37240541816b**** |
| PrivateZoneId |
string |
The ID of the custom private domain name in PrivateZone. |
cb7f214f80ac348d87daaeac1f35**** |
| PrivateZoneName |
string |
The custom domain name. |
test.computenest.aliyuncs.com |
| ConnectionConfigs |
array<object> |
The network configuration information. This is mainly used for private network connections. |
|
|
object |
The network configuration information. This is mainly used for private network connections. |
||
| VpcId |
string |
The VPC ID. |
vpc-bp1vwnn14rqpyiczj**** |
| SecurityGroups |
array |
The security group names. |
|
|
string |
The security group names. |
'sg-m5ec4mvoq9egn7xxxxxx |
|
| VSwitches |
array |
The vSwitch names. |
|
|
string |
The vSwitch names. |
vsw-uf6iqwohr05dw4mxxxxxx |
|
| IngressEndpointStatus |
string |
The status of the IngressEndpoint. Valid values:
|
Ready |
| NetworkServiceStatus |
string |
The NetworkServiceStatus status. Valid values:
|
Ready |
| EndpointIps |
array |
The endpoint IP address of the private network connection. |
|
|
string |
The endpoint IP address of the private network connection. |
192.xxx.xxx.xxx |
|
| DomainName |
string |
The domain name. |
ie-569a9be34f5534f6bc6559b5c1xxxxxx.service-51f80502802e48xxxxxx.cn-hangzhou.computenest.aliyuncs.com |
| RegionId |
string |
The region of the VPC where the endpoint is located when a private network connection is established based on the Compute Nest internal network interconnection mode. |
cn-beijing |
| ConnectBandwidth |
integer |
The bandwidth limit for the connection established by using Compute Nest internal network interconnection. Unit: Mbit/s. |
1536 |
| RegionId |
string |
The region ID of the endpoint when a private network connection is established by using PrivateLink. |
cn-hangzhou |
| ReversePrivateVpcConnections |
array<object> |
The reverse private network connection information. |
|
|
object |
The reverse private network connection information. |
||
| EndpointId |
string |
The endpoint ID of the reverse private network 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 license expiration time. |
2022-01-01T12:00:00 |
| UserId |
integer |
The Alibaba Cloud UID of the user. |
130920852836**** |
| SupplierUid |
integer |
The Alibaba Cloud UID of the service provider. |
158927391332***** |
| EndTime |
string |
The expiration time of the service instance. |
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 |
Specifies whether Prometheus monitoring is enabled. Valid values:
|
true |
| Components |
string |
The additional billable items in Alibaba Cloud Marketplace. |
{"TiKVServerCount":"3","package_version":"yuncode5398300001","PDServerCount":"3","TiDBServerCount":"2"} |
| PredefinedParameterName |
string |
The name of the package. |
Package 1 |
| MarketInstanceId |
string |
The Alibaba Cloud Marketplace instance ID. |
704***59 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-bp67acfmxazb4p**** |
| BizStatus |
string |
The business status of the service instance. Valid values:
|
Normal |
| GrafanaDashBoardUrl |
string |
The URL of the Grafana dashboard. |
https://g.console.aliyun.com/d/xxxxxxxx-cn-mariadb/mysql-xxxxxx-xxxxxxxx-and-dashboard?orgId=355401&refresh=10s |
| SupportTrialToPrivate |
boolean |
Specifies whether converting a trial instance to a private instance is supported. |
|
| PolicyNames |
string |
The names of the authorized access policies. |
AliyunComputeNestPolicyForFullAccess |
| GrantedPermission |
object |
The information about the granted managed operations permissions. |
|
| OperationEndTime |
string |
The end time of the managed operations authorization. |
2022-01-28T06:48:56Z |
| PolicyNames |
string |
The names of the authorized access policies. |
AliyunComputeNestPolicyForFullAccess |
Examples
Success response
JSON format
{
"Outputs": "{\"InstanceIds\":[\"i-hp38ofxl0dsyfi7z****\"]}",
"Status": "Deployed",
"TemplateName": "Template 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\":\" template1\",\"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": "Company A",
"ServiceInfos": [
{
"Locale": "zh-CN",
"Image": "https://example.com/service-image/c1c4a559-cc60-4af1-b976-98f356602462.png",
"Name": "Database B",
"ShortDescription": "B is an open-source distributed relational database independently designed and developed by Company A."
}
],
"VersionName": "Version A",
"UpgradeMetadata": "{\n \"Type\": \"OOS\",\n \"Description\": \"Changelog or something description\",\n \"SupportUpgradeFromVersions\": [1, 2],\n \"UpgradeSteps\": {\n \"PreUpgradeStage\": {\n \"Description\": \"Initialize database\",\n \"Type\": \"RunCommand\",\n \"ResourceName\": \"EcsRole1\",\n \"CommandType\": \"runShellScript\",\n \"CommandContent\": \"echo hello\"\n },\n \"UpgradeStage\": [{\n \"Description\": \"Update EcsRole1 instance\",\n \"Type\": \"RunCommand\",\n \"ResourceName\": \"EcsRole1\",\n \"ArtifactsDownloadDirectory\": \"/home/admin\",\n \"CommandType\": \"runShellScript\",\n \"CommandContent\": \"echo hello\"\n }],\n \"PostUpgradeStage\": {\n \"Description\": \"Post-deployment 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\":\"China edition\",\"Operation\":[{\"Name\":\"Plan modification\",\"Description\":\"Plan modification\",\"Type\":\"Custom\",\"SupportPredefinedParameters\":true,\"EnableLogging\":false},{\"Name\":\"Parameter modification\",\"Description\":\"Parameter modification\",\"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": "Database B",
"EnableUserPrometheus": true,
"Components": "{\"TiKVServerCount\":\"3\",\"package_version\":\"yuncode5398300001\",\"PDServerCount\":\"3\",\"TiDBServerCount\":\"2\"}",
"PredefinedParameterName": "Package 1",
"MarketInstanceId": "704***59",
"ResourceGroupId": "rg-bp67acfmxazb4p****",
"BizStatus": "Normal",
"GrafanaDashBoardUrl": "https://g.console.aliyun.com/d/xxxxxxxx-cn-mariadb/mysql-xxxxxx-xxxxxxxx-and-dashboard?orgId=355401&refresh=10s",
"SupportTrialToPrivate": false,
"PolicyNames": "AliyunComputeNestPolicyForFullAccess",
"GrantedPermission": {
"OperationEndTime": "2022-01-28T06:48:56Z",
"PolicyNames": "AliyunComputeNestPolicyForFullAccess"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.