用於查詢指定執行個體下有哪些裝置申請了裝置訪問憑證(一機一密)。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
mq:MqttInstanceAccess |
list |
*Instance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InstanceId |
string |
是 |
雲Message QueueTT 版執行個體的 ID,一定要和用戶端實際使用的執行個體 ID 匹配。您可以在控制台執行個體詳情頁面擷取該 ID。 |
mqtt-xxxxxxxx |
| GroupId |
string |
是 |
微Message QueueTT 版的 Group ID。 |
GID_xxx |
| PageNo |
string |
否 |
查詢第幾頁的返回結果。起始頁從第 1 頁開始計算。 |
1 |
| PageSize |
string |
是 |
每頁最多顯示幾條查詢記錄。 取值範圍:1~100。 |
100 |
| NextToken |
string |
否 |
下一頁查詢開始的 Token。 |
FFdXXXXXWa |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
公用參數,每個請求的 ID 都是唯一的,可用於排查和定位問題。 |
020F6A43-19E6-4B6E-B846-44EB31DF**** |
| DeviceCredentialClientIdList |
object |
返回資訊列表。 |
|
| Total |
string |
查詢結果總數。 |
10 |
| ClientIdList |
array |
用戶端列表。 |
|
|
string |
用戶端識別碼。 |
GID_test@@@pub-1 |
|
| PageNo |
string |
當前返回的查詢記錄是第幾頁。 |
1 |
| PageSize |
string |
每頁顯示的最大結果數。 |
100 |
| NextToken |
string |
是否擁有下一次查詢的令牌(Token)。取值:
|
634dxxxxx75b5f |
樣本
正常返回樣本
JSON格式
{
"RequestId": "020F6A43-19E6-4B6E-B846-44EB31DF****",
"DeviceCredentialClientIdList": {
"Total": "10",
"ClientIdList": [
"GID_test@@@pub-1"
],
"PageNo": "1",
"PageSize": "100",
"NextToken": "634dxxxxx75b5f"
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ApplyTokenOverFlow | You have applied for tokens too many times. Please try again later. | 申請Token頻率過高,系統限流,請重試。 |
| 400 | CheckAccountInfoFailed | An error occurred while checking the account information by the STS token. | 解析STS Token帳號資訊失敗。 |
| 400 | InstancePermissionCheckFailed | An error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings. | 執行個體許可權校正失敗,請確認MQTT執行個體的所屬關係以及授權策略。 |
| 400 | ParameterCheckFailed | An error occurred while validating the parameters. The parameters may be missing or invalid. | 參數校正失敗,可能缺失或者傳入值非法。 |
| 400 | PermissionCheckFailed | An error occurred while validating the resource permissions. Please check the account that created the instance, topic, and GroupId, and check their permission settings. | 資源許可權校正失敗,請檢查執行個體、Topic和Group ID的所屬許可權和授權策略。 |
| 400 | InvalidParameter.%s | An error occurred while validating the parameter. The parameter may be missing or invalid. | 參數校正失敗,可能缺失或者傳入值非法。 |
| 500 | InternalError | An error occurred while processing your request. Try again later. | MQTT後端服務異常,請重試。 |
| 500 | SystemOverFlow | An error occurred while processing your request. Please try again. | 系統限流,請重試。 |
| 404 | ApiNotSupport | The specified API is not supported. | 當前介面不支援,請檢查。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。