All Products
Search
Document Center

ApsaraMQ for MQTT:ListDeviceCredentialClientId

更新時間:Oct 30, 2024
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries clients that have applied for access credentials in unique-certificate-per-device authentication mode in an ApsaraMQ for MQTT instance.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the Cloud Message Queue MQTT version instance, which must match the actual instance ID used by the client. You can obtain this ID from the Instance Details page in the console.

mqtt-xxxxxxxx
GroupIdstringYes

Group ID of the MQTT version of the micro message queue.

GID_xxx
PageNostringYes

Indicates the page number of the returned results. The starting page is counted from 1.

1
PageSizestringYes

The maximum number of query records to display per page. Value range: 1 to 100.

100
NextTokenstringNo

Token for starting the next page query.

FFdXXXXXWa

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

Public parameters, each request ID is unique and can be used for troubleshooting and problem localization.

020F6A43-19E6-4B6E-B846-44EB31DF****
DeviceCredentialClientIdListobject

Returns the information list.

Totalstring

Total number of query results.

10
ClientIdListarray

Client list.

ClientIdListstring

Client ID.

GID_test@@@pub-1
PageNostring

The current page number of the returned query records.

1
PageSizestring

The maximum number of results to display per page.

100
NextTokenstring

Indicates whether there is a token (Token) for the next query. Values:

  • For the first query and when there is no next query, this field does not need to be filled.
  • If there is a next query, the value should be the NextToken returned from the previous API call.
634dxxxxx75b5f

Examples

Sample success responses

JSONformat

{
  "RequestId": "020F6A43-19E6-4B6E-B846-44EB31DF****",
  "DeviceCredentialClientIdList": {
    "Total": "10",
    "ClientIdList": [
      "GID_test@@@pub-1"
    ],
    "PageNo": "1",
    "PageSize": "100",
    "NextToken": "634dxxxxx75b5f"
  }
}

Error codes

HTTP status codeError codeError message
400ApplyTokenOverFlowYou have applied for tokens too many times. Please try again later.
400CheckAccountInfoFailedAn error occurred while checking the account information by the STS token.
400InstancePermissionCheckFailedAn error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings.
400ParameterCheckFailedAn error occurred while validating the parameters. The parameters may be missing or invalid.
400PermissionCheckFailedAn error occurred while validating the resource permissions. Please check the account that created the instance, topic, and GroupId, and check their permission settings.
400InvalidParameter.%sAn error occurred while validating the parameter. The parameter may be missing or invalid.
404ApiNotSupportThe specified API is not supported.
500InternalErrorAn error occurred while processing your request. Try again later.
500SystemOverFlowAn error occurred while processing your request. Please try again.

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

Change history

Change timeSummary of changesOperation
No change history