GetServiceInstance
Queries the details of a specified service instance by service instance ID and region ID, such as the deployment status, template name, and service details.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:GetServiceInstance |
get |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceInstanceId |
string |
Yes |
The service instance ID. |
si-d6ab3a63ccbb4b17**** |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| 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 |
| 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 |
| UserId |
integer |
The Alibaba Cloud UID of the user. |
1234567 |
| SupplierUid |
integer |
The Alibaba Cloud UID of the service provider. |
1964460391538545 |
| Service |
object |
The service details. |
|
| Status |
string |
The service status. Valid values:
|
Online |
| PublishTime |
string |
The publication 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 URL of the service provider. |
http://example.com |
| 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 |
| 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 service overview. |
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 |
| UpgradableServiceVersions |
array |
The upgradable service version numbers. |
|
|
string |
The upgradable service version numbers. |
1 |
|
| UpgradableServiceInfos |
array<object> |
The information about the upgradable service versions. |
|
|
object |
The information about the upgradable service versions. |
||
| Version |
string |
The upgradable service version. |
4 |
| VersionName |
string |
The name of the upgradable service version. |
Added parameter management feature |
| Parameters |
string |
The input parameters for deploying the service instance. |
{ "param": "value" } |
| Progress |
integer |
The deployment progress of the service instance. Unit: %. |
90 |
| StatusDetail |
string |
The status description of the deployed instance. |
deploy successfully |
| 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 instance managed by Alibaba Cloud Managed Services. |
si-d6ab3a63ccbb4b17**** |
| IsOperated |
boolean |
Specifies whether the managed O&M feature is enabled for the service instance. Valid values:
|
true |
| EnableInstanceOps |
boolean |
Specifies whether the service instance supports the managed O&M feature. Valid values:
|
true |
| Resources |
string |
The list of resources. |
[ { "StackId": "stack-xxx" } ] |
| NetworkConfig |
object |
[Deprecated] The network configuration information. |
|
| EndpointServiceId |
string |
[Deprecated] The endpoint service ID of the PrivateLink connection. |
epsrv-5ei07324541816bxxxx |
| EndpointId |
string |
[Deprecated] The endpoint ID of the PrivateLink connection. |
ep-m5ei37240541816b**** |
| PrivateVpcConnections |
array<object> |
The PrivateLink connection information. |
|
|
array<object> |
The PrivateLink connection information. |
||
| EndpointId |
string |
The endpoint ID of the PrivateLink connection. |
ep-m5ei37240541816b**** |
| EndpointServiceId |
string |
The endpoint service ID of the PrivateLink connection. |
epsrv-5ei07324541816bxxxx |
| PrivateZoneName |
string |
The custom domain name. |
test.computenest.aliyuncs.com |
| ConnectionConfigs |
array<object> |
The network configuration information. This is mainly used for PrivateLink connections. |
|
|
object |
The network configuration information. This is mainly used for PrivateLink connections. |
||
| VpcId |
string |
The VPC ID. |
vpc-bp1vwnn14rqpyiczj**** |
| SecurityGroups |
array |
The name of the security group. |
|
|
string |
The name of the security group. |
sg-m5ec4mvoq9egn7xxxxxx |
|
| VSwitches |
array |
The name of the vSwitch. |
|
|
string |
The name of the vSwitch. |
vsw-uf6iqwohr05dw4mxxxxxx |
|
| IngressEndpointStatus |
string |
The status of the IngressEndpoint. Valid values:
|
Ready |
| NetworkServiceStatus |
string |
The status of the NetworkServiceStatus. 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. |
example.com |
| ConnectBandwidth |
integer |
The bandwidth limit for the connection established by using Compute Nest internal network interconnection. |
1536Mbps |
| ReversePrivateVpcConnections |
array<object> |
The reverse PrivateLink connection information. |
|
|
object |
The reverse PrivateLink connection information. |
||
| EndpointId |
string |
The endpoint ID of the reverse PrivateLink connection. |
ep-m5ei42370541816b**** |
| EndpointServiceId |
string |
The endpoint service ID of the PrivateLink connection. |
epsrv-5ei07324541816bxxxx |
| Tags |
array<object> |
The user-defined tags. |
|
|
object |
The user-defined tags. |
||
| Key |
string |
The tag key. |
key1 |
| Value |
string |
The tag value. |
value1 |
| Outputs |
string |
The output fields returned when the service instance is created.
|
{ "InstanceIds": [ "i-hp38ofxl0dsyfi7z****" ] } |
| 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 |
| LicenseMetadata |
string |
The license metadata. |
{"renewType":"MONTHLY"} |
| Name |
string |
The name of the service instance. |
TestName |
| EnableUserPrometheus |
boolean |
Specifies whether Prometheus is enabled on the user side. |
true |
| RdAccountLoginUrl |
string |
The logon URL of the Resource Directory member user corresponding to the service instance. |
https://signin.aliyun.com/switchRole.htm?parentAlias=1307782318217247.onaliyun.com&roleName=ResourceDirectoryAccountAccessRole |
| PredefinedParameterName |
string |
The name of the plan. |
Plan 1 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aekzkt5buxxxxxx |
| BizStatus |
string |
The business status of the service instance. Valid values:
|
Normal |
| GrafanaDashBoardUrl |
string |
The URL of the Grafana dashboard. |
https://g.xxxxxx.aliyun.com/d/xxxxxxxx-cn-mariadb/mysql-xxxxxxxx-quickstart-and-dashboard?orgId=355401&refresh=10s |
| OperationExtraInfo |
string |
The additional information for managed O&M. |
6cc5ce3590ed7f5529e85fec |
| PolicyNames |
string |
The Policy Name of the authorization policy. Multiple names are separated by commas (,). |
policyName1, policyName2 |
| GrantedPermission |
object |
The granted permissions, including the authorization end time and policy names. |
|
| OperationEndTime |
string |
The end time of the managed O&M authorization. |
2022-01-28T06:48:56Z |
| PolicyNames |
string |
The Policy Name of the granted policy. Multiple names are separated by commas (,). |
policyName1, policyName2 |
Examples
Success response
JSON format
{
"Status": "Deployed",
"TemplateName": "Template 1",
"UpdateTime": "2021-05-20T00:00:00Z",
"RequestId": "\t\n4DB0F536-B3BE-4F0D-BD29-E83FB56D550C",
"ServiceInstanceId": "si-d6ab3a63ccbb4b17****",
"CreateTime": "2021-05-20T00:00:00Z",
"UserId": 1234567,
"SupplierUid": 1964460391538545,
"Service": {
"Status": "Online",
"PublishTime": "2021-05-21T00:00:00Z",
"Version": "1",
"DeployMetadata": "{\n \"EstimateTime\": null,\n \"SupplierDeployMetadata\": {\n \"DeployTimeout\": null\n },\n \"TemplateConfigs\": [\n {\n \"Name\": \" template1\",\n \"Url\": \"https://service-info-private.oss-cn-hangzhou.aliyuncs.com/130920852836****/template/af11ec5a-09a0-4aa7-970c-09b51e2a****.json\",\n \"PredefinedParameters\": [],\n \"AllowedRegions\": [\n \"cn-hangzhou\"\n ]\n }\n ]\n}",
"DeployType": "ros",
"ServiceId": "service-9c8a3522528b4fe8****",
"SupplierUrl": "http://example.com",
"ServiceProductUrl": "https://service-info-private.oss-cn-hangzhou.aliyuncs.com",
"ServiceDocUrl": "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": "B数据库",
"ShortDescription": "B is an open-source distributed relational database independently designed and developed by Company A."
}
],
"VersionName": "Version A",
"UpgradableServiceVersions": [
"1"
],
"UpgradableServiceInfos": [
{
"Version": "4",
"VersionName": "New parameter management feature"
}
]
},
"Parameters": "{\n \"param\": \"value\"\n}",
"Progress": 90,
"StatusDetail": "deploy successfully",
"OperationStartTime": "2021-12-29T06:48:56Z",
"OperationEndTime": "2022-01-28T06:48:56Z",
"OperatedServiceInstanceId": "si-d6ab3a63ccbb4b17****",
"IsOperated": true,
"EnableInstanceOps": true,
"Resources": "[\n {\n \"StackId\": \"stack-xxx\"\n }\n]",
"NetworkConfig": {
"EndpointServiceId": "epsrv-5ei07324541816bxxxx",
"EndpointId": "ep-m5ei37240541816b****",
"PrivateVpcConnections": [
{
"EndpointId": "ep-m5ei37240541816b****",
"EndpointServiceId": "epsrv-5ei07324541816bxxxx",
"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": "example.com",
"ConnectBandwidth": 0
}
]
}
],
"ReversePrivateVpcConnections": [
{
"EndpointId": "ep-m5ei42370541816b****",
"EndpointServiceId": "epsrv-5ei07324541816bxxxx"
}
]
},
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"Outputs": "{\n \"InstanceIds\": [\n \"i-hp38ofxl0dsyfi7z****\"\n ]\n}",
"EndTime": "2022-01-01T12:00:00",
"Source": "User",
"ServiceType": "private",
"PayType": "Subscription",
"LicenseMetadata": "{\"renewType\":\"MONTHLY\"}",
"Name": "Database B",
"EnableUserPrometheus": true,
"RdAccountLoginUrl": "https://signin.aliyun.com/switchRole.htm?parentAlias=1307782318217247.onaliyun.com&roleName=ResourceDirectoryAccountAccessRole",
"PredefinedParameterName": "Package 1",
"ResourceGroupId": "rg-aekzkt5buxxxxxx",
"BizStatus": "Normal",
"GrafanaDashBoardUrl": "https://g.xxxxxx.aliyun.com/d/xxxxxxxx-cn-mariadb/mysql-xxxxxxxx-quickstart-and-dashboard?orgId=355401&refresh=10s",
"OperationExtraInfo": "6cc5ce3590ed7f5529e85fec",
"PolicyNames": "policyName1, policyName2",
"GrantedPermission": {
"OperationEndTime": "2022-01-28T06:48:56Z",
"PolicyNames": "policyName1, policyName2"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.