All Products
Search
Document Center

ApsaraMQ for RabbitMQ:ListAccounts

Last Updated:Nov 25, 2024

Queries the static username and password of an ApsaraMQ for RabbitMQ.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
amqp:ListStaticAccountslist
*Instance
acs:amqp:{#regionId}:{#accountId}:/instances/{#instanceId}
    none
  • amqp:GetInstance

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringNo

The ID of the ApsaraMQ for RabbitMQ instance for which you want to query the static username and password.

amqp-cn-20p****04

Response parameters

ParameterTypeDescriptionExample
object

The returned information.

RequestIdstring

The request ID.

549A5A97-FE61-5A23-8126-3A11929C1EC4
Successboolean

Indicates whether the call is successful.

True
Dataobject

The returned data.

array<object>

The returned information about the username and password.

dataobject

object

masterUidlong

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.

1565*******973901
cInstanceIdstring

The ID of the ApsaraMQ for RabbitMQ instance.

amqp-cn-uqm******03
accessKeystring

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

LTAI5***********eRZtEJ6vfo
userNamestring

The static username.

MjphbXFwLWNuLXVxbTJ6cjc2djAwMzpMVEFJNX*******ZNMWVSWnRFSjZ2Zm8=
passwordstring

The static password.

OUYwQzM2QjZBRkUxNDRFM***************MzZCNzdDQzoxNjcxNDMwMzkyODI1
deletedlong

The timestamp that indicates when the static username and password were deleted. Unit: milliseconds.

1671175303522
createTimestamplong

The timestamp that indicates when the static username and password were created. Unit: milliseconds.

1671175303522
Codeinteger

The HTTP status code. The status code 200 indicates that the call is successful.

200
Messagestring

The returned message.

operation success

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history