Queries the quota usage of an instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetInstanceUsage

The operation that you want to perform. Set the value to GetInstanceUsage.

InstanceId String Yes cri-xkx6vujuhay0tasd

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

RequestId String A726E801-7FCF-43F9-AF1C-51B3E65D3E7A

The ID of the request.

NamespaceQuota String 100

The quota of namespaces for the instance.

NamespaceUsage String 4

The number of namespaces created in the instance.

RepoQuota String 1000

The quota of repositories for the instance.

RepoUsage String 2

The number of repositories created in the instance.


Sample requests

http(s)://[Endpoint]/? Action=GetInstanceUsage
&<Common request parameters>

Sample success responses

JSON format


XML format


Error codes

For a list of error codes, visit the API Error Center.