All Products
Search
Document Center

Container Registry:GetInstance

Last Updated:Sep 25, 2026

Queries instance information.

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

cr:GetInstance

get

*Instance

acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

cri-xkx6vujuhay0****

Response elements

Element

Type

Description

Example

object

ModifiedTime

integer

The modification time, in UNIX timestamp format. Unit: milliseconds.

1571926560000

RequestId

string

The request ID.

6EF34B18-4228-470C-860C-D28597CF010E

CreateTime

integer

The creation time, in UNIX timestamp format. Unit: milliseconds.

1571926439000

InstanceName

string

The instance name.

shanghai-instance1

InstanceSpecification

string

The instance specification. Valid values: Enterprise_Basic: basic instance. Enterprise_Standard: standard instance. Enterprise_Advanced: advanced instance.

Enterprise_Basic

Code

string

The return code.

success

InstanceStatus

string

The instance status. Valid values:

  • PENDING: Initializing.

  • INIT_ERROR: Initialization failed.

  • STARTING: Starting.

  • RUNNING: Running.

  • STOPPING: Stopping.

  • STOPPED: Stopped.

  • DELETING: Deleting.

  • DELETED: Deleted.

RUNNING

InstanceId

string

The instance ID.

cri-xkx6vujuhay0****

IsSuccess

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

ResourceGroupId

string

The resource group ID.

rg-acfmv36i4isx****

InstanceIssue

string

The instance issue.

The instance issue. Valid values: OSS_TOO_MANY_BUCKETS: The number of OSS buckets exceeds the limit. OSS_BUCKET_ALREADY_EXISTS: An OSS bucket with the same name already exists. OSS_SERVICE_ROLE_UNAUTHORIZED: OSS permissions are not authorized. USER_NOT_REGISTERED_BY_REAL_NAME: The China site account has not completed real-name verification when purchasing an OSS bucket on the China site

Tags

array<object>

The tag collection of the instance.

object

The instance tag.

TagKey

string

The tag key.

test_key

TagValue

string

The tag value.

test_value

Examples

Success response

JSON format

{
  "ModifiedTime": 1571926560000,
  "RequestId": "6EF34B18-4228-470C-860C-D28597CF010E",
  "CreateTime": 1571926439000,
  "InstanceName": "shanghai-instance1",
  "InstanceSpecification": "Enterprise_Basic",
  "Code": "success",
  "InstanceStatus": "RUNNING",
  "InstanceId": "cri-xkx6vujuhay0****",
  "IsSuccess": true,
  "ResourceGroupId": "rg-acfmv36i4isx****",
  "InstanceIssue": "The issue occurs on the instance. Valid values: OSS_TOO_MANY_BUCKETS: The number of Object Storage Service (OSS) buckets exceeds the upper limit. OSS_BUCKET_ALREADY_EXISTS: An OSS bucket that has the duplicate name already exists. OSS_SERVICE_ROLE_UNAUTHORIZED: The OSS service-linked role is not granted permissions. USER_NOT_REGISTERED_BY_REAL_NAME: The Alibaba Cloud account has not passed a real name verification.\n",
  "Tags": [
    {
      "TagKey": "test_key",
      "TagValue": "test_value"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

500 SystemError Unknown error.
403 NoPrivilege Access denied for this user.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.