MQTT クライアントの実行ステータスを照会します。照会結果に基づいて問題をトラブルシューティングできます。MQTT クライアントの ID を入力して、デバイスの接続状態と IP アドレスを確認できます。
操作説明
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
mq:MqttInstanceAccess |
get |
*Instance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ClientId |
string |
必須 |
照会対象の MQTT クライアントの ID です。 |
GID_test@@@test |
| InstanceId |
string |
必須 |
ApsaraMQ for MQTT インスタンスの ID です。この ID は、MQTT クライアントが使用するインスタンスの ID と一致している必要があります。インスタンス ID は、ApsaraMQ for MQTT コンソールの [インスタンスの詳細] ページで取得できます。 |
post-cn-0pp12gl**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| OnlineStatus |
boolean |
MQTT クライアントが ApsaraMQ for MQTT ブローカーに接続されているかどうかを示します。有効な値:
|
true |
| RequestId |
string |
リクエスト ID です。このパラメーターは共通パラメーターです。 |
E4581CCF-62AF-44D9-B5B4-D1DBBC0E**** |
例
成功レスポンス
JSONJSON
{
"OnlineStatus": true,
"RequestId": "E4581CCF-62AF-44D9-B5B4-D1DBBC0E****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | CheckAccountInfoFailed | An error occurred while checking the account information by the 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. | |
| 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. | |
| 400 | InvalidParameter.%s | An error occurred while validating the parameter. The parameter may be missing or invalid. | |
| 403 | SystemOverFlow | An error occurred while processing your request. Please try again. | |
| 404 | ApiNotSupport | The specified API is not supported. | |
| 417 | InternalError | An error occurred while processing your request. Try again later. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。