Queries instance metadata.

Request parameters

Parameter Type Required Example Description
Action String Yes GetMetadataAmount

The operation that you want to perform.

Set the value to GetMetadataAmount.

RegionId String No cn-hangzhou

The ID of the region.

InstanceId String No amqp-cn-v0h1kb9n***

The ID of the instance.

Response parameters

Parameter Type Example Description
Data Struct

The returned data.

CurrentExchanges Integer 7

The number of created exchanges.

CurrentQueues Integer 1

The number of created queues.

CurrentVirtualHosts Integer 1

The number of created vhosts.

MaxExchanges Integer 20

The maximum number of exchanges that can be created.

MaxQueues Integer 20

The maximum number of queues that can be created.

MaxVirtualHosts Integer 10

The maximum number of vhosts that can be created.

RequestId String B75ACF23-2BEB-44AC-A0B6-AE14EDCA***

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "B75ACF23-2BEB-44AC-A0B6-AE14EDCA***",
    "Data": {
        "MaxExchanges": 20,
        "MaxVirtualHosts": 10,
        "CurrentExchanges": 7,
        "MaxQueues": 20,
        "CurrentVirtualHosts": 1,
        "CurrentQueues": 1

Error codes

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