psm stack operation-status
このコマンドは、
psm stack create
コマンドから実行されたスタック作成リクエストのステータスを追跡するために使用します。構文
psm stack operation-status -j|--jobId jobID
[-of|--output-format json|html|short]
パラメータ
特に示されていないかぎり、すべてのパラメータは必須です。
パラメータ | 説明 |
---|---|
-j|--job-id jobID |
操作を識別する番号。 この操作番号は、psm stack create コマンドによって生成されるレスポンス・メッセージに示されます。
|
-of|--output-format json|html|short |
(オプション)出力形式。
許容値: デフォルトの出力形式は、 |
例
$ psm stack operation-status -j 101004 -of json
{
"activityLogId":50374,
"serviceName":"AnotherDevStack",
"serviceType":"cloudstack",
"identityDomain":"stackdoc",
"serviceId":2305,
"jobId":101004,
"startDate":"2016-08-25T22:52:04.201+0000",
"endDate":"2016-08-25T22:52:06.922+0000",
"status":"SUCCEED",
"operationId":2305,
"operationType":"CREATE_SERVICE",
"summaryMessage":"CREATE_SERVICE",
"authDomain":"stackdoc",
"initiatedBy":"USER",
"messages":[
{
"activityDate":"2016-08-25T22:52:04.201+0000",
"message":"Stack creation request accepted"
},
{
"activityDate":"2016-08-25T22:52:04.205+0000",
"message":"Initializing stack AnotherDevStack"
},
{
"activityDate":"2016-08-25T22:52:06.548+0000",
"message":"Initiating cleanup of Stack Service [AnotherDevStack] due to failure"
},
{
"activityDate":"2016-08-25T22:52:06.551+0000",
"message":"Initiating cleanup of Stack Service [AnotherDevStack] due to failure"
},
{
"activityDate":"2016-08-25T22:52:06.600+0000",
"message":"Deleting stack AnotherDevStack"
},
{
"activityDate":"2016-08-25T22:52:06.815+0000",
"message":"Successfully cleaned up resources for stack stackdoc : AnotherDevStack"
},
{
"activityDate":"2016-08-25T22:52:06.922+0000",
"message":"Stack AnotherDevStack terminated"
}
]
}