トレイルのステータスをクエリします。
操作説明
このトピックでは、trail-test という名前のサンプルシングルアカウントトレイルのステータスをクエリする方法について説明します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
actiontrail:GetTrailStatus |
get |
*Trail
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
必須 |
トレイルの名前です。 名前の長さは 6~36 文字である必要があります。名前は小文字で始まり、小文字、数字、ハイフン (-)、アンダースコア (_) を含めることができます。 説明
名前はご利用の Alibaba Cloud アカウント内で一意である必要があります。 |
trail-test |
| IsOrganizationTrail |
boolean |
任意 |
マルチアカウントトレイルのステータスをクエリするかどうかを指定します。有効な値は次のとおりです。
|
false |
共通リクエストパラメーターの詳細については、「共通パラメーター」をご参照ください。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| IsLogging |
boolean |
トレイルのログ記録が有効かどうかを示します。有効な値は次のとおりです。
|
true |
| LatestDeliveryError |
string |
最後に失敗した配信のログです。 |
write sls failed, exception: the parent of sub user must be project owner, itemscount: 1 |
| LatestDeliveryLogServiceError |
string |
Log Service への最後の配信失敗時のログです。 |
write sls failed, exception: the parent of sub user must be project owner, itemscount: 1 |
| LatestDeliveryLogServiceTime |
string |
イベントが Log Service に最後に配信された時刻です。 |
2021-02-26T09:19:44Z |
| LatestDeliveryTime |
string |
トレイルによってイベントが最後に配信された時刻です。 |
2021-02-26T09:19:44Z |
| OssBucketStatus |
boolean |
送信先の Object Storage Service (OSS) バケットが利用可能かどうかを示します。有効な値は次のとおりです。
|
true |
| RequestId |
string |
リクエスト ID です。 |
8067369B-B923-4D26-85BC-61BF33922505 |
| SlsLogStoreStatus |
boolean |
送信先の Log Service Logstore が利用可能かどうかを示します。有効な値は次のとおりです。
|
true |
| StartLoggingTime |
string |
トレイルのログ記録が最後に有効になった時刻です。 |
2021-02-24T09:19:44Z |
| StopLoggingTime |
string |
トレイルのログ記録が最後に無効になった時刻です。 |
2021-02-25T09:19:44Z |
例
成功レスポンス
JSONJSON
{
"IsLogging": true,
"LatestDeliveryError": "write sls failed, exception: the parent of sub user must be project owner, itemscount: 1",
"LatestDeliveryLogServiceError": "write sls failed, exception: the parent of sub user must be project owner, itemscount: 1",
"LatestDeliveryLogServiceTime": "2021-02-26T09:19:44Z",
"LatestDeliveryTime": "2021-02-26T09:19:44Z",
"OssBucketStatus": true,
"RequestId": "8067369B-B923-4D26-85BC-61BF33922505",
"SlsLogStoreStatus": true,
"StartLoggingTime": "2021-02-24T09:19:44Z",
"StopLoggingTime": "2021-02-25T09:19:44Z"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 404 | TrailNotFoundException | The specified Trail does not exist. | The specified Trail is not existed. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。