All Products
Search
Document Center

ApsaraMQ for RabbitMQ:ListAccounts

Last Updated:Nov 02, 2023

Queries all static usernames and passwords that are created for an ApsaraMQ for RabbitMQ instance.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes ListAccounts

The operation that you want to perform. Set this parameter to ListAccounts.

InstanceId String No amqp-cn-20p****04

The ID of the ApsaraMQ for RabbitMQ instance for which you want to query all static usernames and passwords.

Response parameters

Parameter

Type

Example

Description

RequestId String 549A5A97-FE61-5A23-8126-3A1192*****

The request ID.

Success Boolean true

Indicates whether the request was successful.

Data Map

The returned data.

Array

The returned information about the usernames and passwords.

masterUid Long 1565*******973901

The Alibaba Cloud account ID or Resource Access Management (RAM) user to which the AccessKey pair that is used to create the static username and password belongs.

cInstanceId String amqp-cn-uqm******03

The ID of the ApsaraMQ for RabbitMQ instance.

accessKey String LTAI5***********eRZtEJ6vfo

The AccessKey ID that is used to create the pair of static username and password.

userName String MjphbXFwLWNuLXVxbTJ6cjc2djAwMzpMVEFJNX*******ZNMWVSWnRFSjZ2Zm8=

The static username.

password String OUYwQzM2QjZBRkUxNDRFM***************MzZCNzdDQzoxNjcxNDMwMzkyODI1

The static password.

deleted Long 0

The timestamp that indicates when the pair of static username and password was deleted. Unit: milliseconds.

createTimestamp Long 1671175303522

The timestamp that indicates when the pair of static username and password was created. Unit: milliseconds.

Code Integer 200

The HTTP status code. The status code 200 indicates that the request was successful.

Message String operation success

The returned message.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListAccounts
&InstanceId=amqp-cn-20p****04
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListAccountsResponse>
    <RequestId>549A5A97-FE61-5A23-8126-3A1192*****</RequestId>
    <Success>true</Success>
    <Data>
        <cInstanceId>amqp-cn-uqm******03</cInstanceId>
        <accessKey>LTAI5***********eRZtEJ6vfo</accessKey>
        <userName>MjphbXFwLWNuLXVxbTJ6cjc2djAwMzpMVEFJNX*******ZNMWVSWnRFSjZ2Zm8=</userName>
        <password>OUYwQzM2QjZBRkUxNDRFM***************MzZCNzdDQzoxNjcxNDMwMzkyODI1</password>
        <deleted>0</deleted>
        <createTimestamp>1671175303522</createTimestamp>
    </Data>
    <Code>200</Code>
    <Message>operation success</Message>
</ListAccountsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "549A5A97-FE61-5A23-8126-3A1192*****",
  "Success" : true,
  "Data" : [ {
    "cInstanceId" : "amqp-cn-uqm******03",
    "accessKey" : "LTAI5***********eRZtEJ6vfo",
    "userName" : "MjphbXFwLWNuLXVxbTJ6cjc2djAwMzpMVEFJNX*******ZNMWVSWnRFSjZ2Zm8=",
    "password" : "OUYwQzM2QjZBRkUxNDRFM***************MzZCNzdDQzoxNjcxNDMwMzkyODI1",
    "deleted" : 0,
    "createTimestamp" : 1671175303522
  } ],
  "Code" : 200,
  "Message" : "operation success"
}

Error codes

For a list of error codes, see Service error codes.