Skip to Content

ListURocketMQToken - ListURocketMQToken

Overview

List token

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListURocketMQToken.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Availability Zone List Yes
ProjectIdstringProject ID. Leave empty for the default project; sub-accounts must fill this in. Please refer to the GetProjectList API Yes
ServiceIdstringService IDYes
LimitintReturn data length, default is 20, maximum is 100No
OffsetintStarting position offset of the list, default is 0No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TokenListarray[TokenDetail]Token Configuration ArrayYes
TotalCountintTotal TokensYes

Data Model

TokenDetail

Field NameTypeDescription InformationRequired
AKSKAKSKKeyYes
TokenIdstringToken IDYes
TopicProducePermstringTopic Production PermissionYes
TopicConsumePermstringTopic Consumption PermissionsYes
ServiceIdstringService IDYes
NamestringToken NameYes
TypestringToken TypeYes
CreateTimeintCreation TimeYes
ModifyTimeintModification TimeYes

AKSK

Field NameTypeDescription InformationRequired
AccessKeystringPublic KeyYes
SecretKeystringPrivate KeyYes

Example

Request Example

https://api.ucloud-global.com/?Action=ListURocketMQToken &Region=cn-zj &ProjectId=hzcDQprq &ServiceId=iTPdUcqm &Limit=1 &Offset=8

Response Example

{ "Action": "ListURocketMQTokenResponse", "Message": "OdLGlqYH", "RetCode": 0, "TokenList": [ { "AKSK": {}, "CreateTime": 6, "ModifyTime": 7, "Name": "CjZnNgAO", "ServiceId": "buJzEhNa", "TokenId": "VwFKblMj", "TopicConsumePerm": "lzYGFXsI", "TopicProducePerm": "VDjCndCl", "Type": "Default" } ], "TotalCount": 6 }