psm stack operation-status
Use this command to track the status of a stack creation request submitted from the
psm stack create
command.Syntax
psm stack operation-status -j|--jobId jobID
[-of|--output-format json|html|short]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-j|--job-id jobID |
Number that identifies the operation. This operation number is in the response message generated by the psm stack create command.
|
-of|--output-format json|html|short |
(Optional) Desired output format.
Accepted values: The default output format is the one you specified when using the |
Example
$ 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"
}
]
}