Queries the details of a distributed ApsaraDB for Redis instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeGlobalDistributeCache |
The operation that you want to perform. The operation that you want to perform. Set the value to DescribeGlobalDistributeCache. |
GlobalInstanceId | String | No | gr-bp14rkqrhac**** |
The ID of the distributed instance. |
PageNumber | String | No | 1 |
The number of the page to return. The value must be an integer that is greater than 0. Default value: 1. |
PageSize | String | No | 20 |
The number of entries to return each page. |
SubInstanceId | String | No | gr-bp1zcjlobkyrq**** |
The ID of the child instance that is attached to the distributed instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
PageSize | Integer | 20 |
The number of entries returned per page. |
RequestId | String | F3F44BE3-5419-4B61-9BAC-E66E295A**** |
The ID of the request. |
PageNumber | Integer | 1 |
The page number of the returned page. |
TotalRecordCount | Integer | 1 |
The total number of entries returned. |
GlobalDistributeCaches | Array of GlobalDistributeCache |
Details of the distributed instance. |
|
Status | String | Normal |
The state of the distributed instance. Valid values:
|
GlobalInstanceId | String | gr-bp14rkqrhac**** |
The ID of the distributed instance. |
SubInstances | Array of SubInstance |
Details of the child instances. |
|
InstanceStatus | String | Normal |
The state of the child instance. Valid values:
Note For more information about instance states, see Instance states and impacts.
|
InstanceID | String | r-bp1zxszhcgatnx**** |
The ID of the child instance. |
InstanceClass | String | redis.amber.logic.sharding.2g.2db.0rodb.6proxy.multithread |
The instance type of the child instance. For more information, see the following topics: |
GlobalInstanceId | String | gr-bp14rkqrhac**** |
The ID of the distributed instance. |
RegionId | String | cn-hangzhou |
The ID of the region. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=DescribeGlobalDistributeCache
&<Common request parameters>
Sample success response
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeGlobalDistributeCacheResponse>
<TotalRecordCount>1</TotalRecordCount>
<GlobalDistributeCaches>
<Status>Normal</Status>
<SubInstances>
<InstanceID>r-bp14of12k0f0lw****</InstanceID>
<InstanceStatus>Normal</InstanceStatus>
<GlobalInstanceId>gr-bp1zcjlobkyrq****</GlobalInstanceId>
<InstanceClass>redis.amber.logic.sharding.2g.2db.0rodb.6proxy.multithread</InstanceClass>
<RegionId>cn-hangzhou</RegionId>
</SubInstances>
<GlobalInstanceId>gr-bp1zcjlobkyrq****</GlobalInstanceId>
</GlobalDistributeCaches>
<RequestId>F3F44BE3-5419-4B61-9BAC-E66E295A****</RequestId>
<PageSize>20</PageSize>
<PageNumber>1</PageNumber>
</DescribeGlobalDistributeCacheResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"TotalRecordCount" : 1,
"GlobalDistributeCaches" : [ {
"Status" : "Normal",
"SubInstances" : [ {
"InstanceID" : "r-bp14of12k0f0lw****",
"InstanceStatus" : "Normal",
"GlobalInstanceId" : "gr-bp1zcjlobkyrq****",
"InstanceClass" : "redis.amber.logic.sharding.2g.2db.0rodb.6proxy.multithread",
"RegionId" : "cn-hangzhou"
} ],
"GlobalInstanceId" : "gr-bp1zcjlobkyrq****"
} ],
"RequestId" : "F3F44BE3-5419-4B61-9BAC-E66E295A****",
"PageSize" : 20,
"PageNumber" : 1
}
Error codes
For a list of error codes, visit the API Error Center.