Queries the ApsaraMQ for RocketMQ instances in a specified region.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ListInstances |
list |
*Instance
|
None | None |
Request syntax
GET /instances HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| filter |
string |
No |
The filter condition. If you do not specify this parameter, all instances are queried. |
rmq-cn-7e22ody**** |
| pageNumber |
integer |
No |
The page number. Valid values: 1 to 100,000,000. If you specify a value less than 1, the system uses 1. If you specify a value greater than 100,000,000, the system uses 100,000,000. |
1 |
| pageSize |
integer |
No |
The number of entries to return on each page. Valid values: 10 to 200. If you specify a value less than 10, the system uses 10. If you specify a value greater than 200, the system uses 200. |
10 |
| resourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs. |
rg-acfmx7caj****** |
| tags |
string |
No |
A list of resource tags used to filter instances. |
[{"key": "rmq-test", "value": "test"}] |
| seriesCodes |
array |
No |
The primary series codes of the instances. Valid values:
|
|
|
string |
No |
The primary series code of the instance. |
standard |
|
| storageSecretKey |
string |
No |
The storage encryption key. |
xxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result<MyPage<InstanceDto>> |
||
| requestId |
string |
The request ID. This ID is unique to each request. Use this ID to troubleshoot issues. |
84445A20-2B50-5306-A3C0-AF99FC1833C6 |
| success |
boolean |
Indicates whether the call was successful. |
true |
| data |
object |
The returned data. |
|
| pageNumber |
integer |
The page number. |
1 |
| pageSize |
integer |
The number of entries per page. |
10 |
| totalCount |
integer |
The total number of entries. |
100 |
| list |
array<object> |
The paginated data. |
|
|
array<object> |
|||
| regionId |
string |
The ID of the region where the instance resides. |
cn-hangzhou |
| instanceId |
string |
The instance ID. |
rmq-cn-7e22ody**** |
| instanceName |
string |
The instance name. |
test instance |
| status |
string |
The instance status. Valid values:
Valid values:
|
RUNNING |
| startTime |
string |
The time when the instance was created. |
2022-08-01 00:00:00 |
| expireTime |
string |
The time when the instance expires. |
2022-09-01 00:00:00 |
| releaseTime |
string |
The time when the instance was released. |
2022-09-07 00:00:00 |
| userId |
string |
The ID of the user to which the instance belongs. |
6W0xz2uPfiwp**** |
| commodityCode |
string |
The commodity code of the ApsaraMQ for RocketMQ 5.x series instance, such as ons_rmqsub_public_cn. |
ons_rmqsub_public_cn |
| serviceCode |
string |
The service code of the instance. The service code for ApsaraMQ for RocketMQ is rmq. |
rmq |
| seriesCode |
string |
The primary series code of the instance. Valid values:
Valid values:
|
standard |
| subSeriesCode |
string |
The sub-series code of the instance. Valid values:
Valid values:
|
cluster_ha |
| paymentType |
string |
The billing method of the instance. Valid values:
Valid values:
|
Subscription |
| remark |
string |
The remarks on the instance. |
This is remark for instance. |
| topicCount |
integer |
The number of topics created in the instance. |
20 |
| groupCount |
integer |
The number of consumer groups created in the instance. |
10 |
| createTime |
string |
The update time of the instance version. |
2022-08-01 00:00:00 |
| updateTime |
string |
The time when the instance was last modified. |
2022-08-02 00:00:00 |
| resourceGroupId |
string |
The ID of the resource group to which the instance belongs. |
rg-acfmx7caj****** |
| tags |
array<object> |
The list of resource tags. |
|
|
object |
The resource tag. |
||
| key |
string |
The key of the resource tag. |
key |
| value |
string |
The value of the resource tag. |
value |
| productInfo |
object |
The product information. |
|
| traceOn |
boolean |
Indicates whether the message trace feature is enabled.
This parameter is not yet in effect. The message trace feature is supported by default regardless of whether this parameter is enabled. |
true |
| capacityType |
string |
The capacity mode:
|
provisioned |
| code |
string |
The error code. |
MissingPageNumber |
| message |
string |
The error message. |
Parameter pageNumber is mandatory for this action . |
| httpStatusCode |
integer |
The HTTP status code. |
400 |
| dynamicCode |
string |
The dynamic error code. |
PageNumber |
| dynamicMessage |
string |
The dynamic error message. |
pageNumber |
Examples
Success response
JSON format
{
"requestId": "84445A20-2B50-5306-A3C0-AF99FC1833C6",
"success": true,
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalCount": 100,
"list": [
{
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"instanceName": "test instance",
"status": "RUNNING",
"startTime": "2022-08-01 00:00:00",
"expireTime": "2022-09-01 00:00:00",
"releaseTime": "2022-09-07 00:00:00",
"userId": "6W0xz2uPfiwp****",
"commodityCode": "ons_rmqsub_public_cn",
"serviceCode": "rmq",
"seriesCode": "standard",
"subSeriesCode": "cluster_ha",
"paymentType": "Subscription",
"remark": "This is remark for instance.",
"topicCount": 20,
"groupCount": 10,
"createTime": "2022-08-01 00:00:00",
"updateTime": "2022-08-02 00:00:00",
"resourceGroupId": "rg-acfmx7caj******",
"tags": [
{
"key": "key",
"value": "value"
}
],
"productInfo": {
"traceOn": true,
"capacityType": "provisioned"
}
}
]
},
"code": "MissingPageNumber",
"message": "Parameter pageNumber is mandatory for this action .",
"httpStatusCode": 400,
"dynamicCode": "PageNumber",
"dynamicMessage": "pageNumber"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.