GetMqConsumerTag

更新时间:
复制 MD 格式

Retrieves the tag for a ticket's RocketMQ message listener.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Parameter

Type

Description

Example

object

AccessDeniedDetail

string

The details of the permission error. An empty string is returned if you have the required permissions.

{\"AuthAction\":\"ram:GetMqConsumerTag\",\"AuthPrincipalDisplayName\":\"2146216584788xxxxx\",\"AuthPrincipalOwnerId\":\"1135850448xxxxx\",\"AuthPrincipalType\":\"SubUser\",\"NoPermissionType\":\"ImplicitDeny\",\"PolicyType\":\"AccountLevelIdentityBasedPolicy\"}

Code

integer

The return code of the API request.

200

Message

string

The error message. This parameter is returned when `success` is `false`.

success

Data

string

The return value. This is the unique tag for your Message Queue (MQ) consumer.

46434030

RequestId

string

The unique identifier of the request.

CA6204AC-6AA9-4CFA-9310-7DFD20C19EBC

Success

boolean

Indicates whether the call was successful. A value of `true` indicates success. A value of `false` indicates failure.

true

Examples

Success response

JSON format

{
  "AccessDeniedDetail": "{\\\"AuthAction\\\":\\\"ram:GetMqConsumerTag\\\",\\\"AuthPrincipalDisplayName\\\":\\\"2146216584788xxxxx\\\",\\\"AuthPrincipalOwnerId\\\":\\\"1135850448xxxxx\\\",\\\"AuthPrincipalType\\\":\\\"SubUser\\\",\\\"NoPermissionType\\\":\\\"ImplicitDeny\\\",\\\"PolicyType\\\":\\\"AccountLevelIdentityBasedPolicy\\\"}",
  "Code": 200,
  "Message": "success",
  "Data": "46434030",
  "RequestId": "CA6204AC-6AA9-4CFA-9310-7DFD20C19EBC",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 param.illegal Params illegal.
401 illegal.auth You are not authorized to perform the operation. You are not authorized to perform this operation.
500 System.error An error occurred while processing your request. An error occurred while processing your request. Please try again.
403 No permissions No permissions to access. RAM authentication does not have permission

See for a complete list.

Release notes

See Release Notes for a complete list.