Queries the quota usage of an instance.

Debugging

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.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetInstanceUsage
&InstanceId=cri-xkx6vujuhay0tasd
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

JSON format

{
    "IsSuccess":true,
    "RepoQuota":1000,
    "RequestId":"A726E801-7FCF-43F9-AF1C-51B3E65D3E7A",
    "RepoUsage":2,
    "NamespaceQuota":100,
    "NamespaceUsage":4,
    "Code":"success"
}

XML format

<IsSuccess>true</IsSuccess>
<RepoQuota>1000</RepoQuota>
<RequestId>A726E801-7FCF-43F9-AF1C-51B3E65D3E7A</RequestId>
<RepoUsage>2</RepoUsage>
<NamespaceQuota>100</NamespaceQuota>
<NamespaceUsage>4</NamespaceUsage>
<Code>success</Code>

Error codes

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