GetServiceInstance

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

computenestsupplier:GetServiceInstance

get

*ServiceInstance

acs:computenestsupplier:{#regionId}:{#accountId}:serviceinstance/{#ServiceInstanceId}

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:

  • Created: The instance is created.

  • Deploying: The instance is being deployed.

  • DeployedFailed: The deployment failed.

  • Deployed: The instance is deployed.

  • Upgrading: The instance is being upgraded.

  • Deleting: The instance is being deleted.

  • Deleted: The instance is deleted.

  • DeletedFailed: The deletion failed.

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:

  • Draft: The registration is pending submission.

  • Submited: The registration is submitted.

  • Approved: The registration is approved.

  • Online: The service is online.

  • Offline: The service is offline.

  • Deleted: The service is deleted.

  • Launching: The service is going online.

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: Deployed by using ROS.

  • terraform: Deployed by using Terraform.

  • ack: Deployed by using ACK.

  • spi: Deployed by using SPI to invoke.

  • operation: Deployed by using Alibaba Cloud Managed Services.

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: Deployment in the user account.

  • managed: Deployment in the service provider account.

  • operation: Alibaba Cloud Managed Services.

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: The managed O&M feature is enabled for the service instance.

  • false: The managed O&M feature is disabled for the service instance.

true

EnableInstanceOps

boolean

Specifies whether the service instance supports the managed O&M feature. Valid values:

  • true: The service instance supports the managed O&M feature.

  • false: The service instance does not support the managed O&M feature.

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: The endpoint is connected.

  • Pending: The endpoint is connecting.

  • Failed: The connection failed.

  • Deleted: The endpoint is deleted.

  • Deleting: The endpoint is being deleted.

Ready

NetworkServiceStatus

string

The status of the NetworkServiceStatus. Valid values:

  • Ready: The service is connected.

  • Pending: The service is connecting.

  • Failed: The connection failed.

  • Deleted: The service is deleted.

  • Deleting: The service is being deleted.

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.

  • In ROS mode, all output fields of the template are returned.

  • In SPI mode, the output fields of the ISV and the output fields of the additional Compute Nest features are returned.

{ "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: Compute Nest user

  • Market: Alibaba Cloud Marketplace

  • Supplier: Compute Nest service provider

User

ServiceType

string

The service type. Valid values:

  • private: deployment of service instances in the user account.

  • managed: service instances hosted in the service provider account.

  • operation: Alibaba Cloud Managed Services instances.

  • poc: trial service instances.

private

PayType

string

The billing method. Valid values:

  • Permanent: permanent purchase

  • Subscription: subscription in Alibaba Cloud Marketplace

  • PayAsYouGo: pay-as-you-go in Alibaba Cloud Marketplace

  • CustomFixTime: custom fixed duration specified by the merchant

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: normal

  • Renewing: renewing

  • RenewFoiled: renewal failed

  • Expired: expired

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.