All Products
Search
Document Center

ApsaraMQ for RabbitMQ:DeleteAccount

Last Updated:Nov 02, 2023

Deletes a pair of static username and password.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes DeleteAccount

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

UserName String Yes MjphbXFwLWNuLXVxbTJ6cjc2djAwMzpMVEFJNX*******ZNMWVSWnRFSjZ2Zm8=

The username that you want to delete.

CreateTimestamp Long Yes 1671175303522

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

You can call the ListAccounts operation to view the timestamp.

Response parameters

Parameter

Type

Example

Description

RequestId String 021788F6-E50C-4BD6-9F80-66B0A1******

The request ID.

Code Integer 200

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

Message String operation success

The returned message.

Data Boolean true

The returned data.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteAccount
&UserName=MjphbXFwLWNuLXVxbTJ6cjc2djAwMzpMVEFJNX*******ZNMWVSWnRFSjZ2Zm8=
&CreateTimestamp=1671175303522
&Common request parameters

Sample success responses

XML format

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

<DeleteAccountResponse>
    <RequestId>021788F6-E50C-4BD6-9F80-66B0A1******</RequestId>
    <Code>200</Code>
    <Message>operation success</Message>
    <Data>true</Data>
    <Success>true</Success>
</DeleteAccountResponse>

JSON format

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

{
  "RequestId" : "021788F6-E50C-4BD6-9F80-66B0A1******",
  "Code" : 200,
  "Message" : "operation success",
  "Data" : true,
  "Success" : true
}

Error codes

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