Show server action details
Method | URI | Description |
---|---|---|
GET | /v2/{tenant_id}/servers/{server_id}/os-instance-actions/{action_id} | 指定されたサーバのaction実行結果詳細を表示します。 |
Normal response codes: 200
Request
下表は、action実行結果詳細を表示リクエストのURIパラメーターの一覧です。
Name | Type | Description |
---|---|---|
{tenant_id} | String | プロジェクトID |
{server_id} | UUID | 対象とする仮想サーバの仮想サーバID |
{action_id} | String |
アクションID 対象とするactionの実行時に生成されたIDです。 |
本操作はリクエストボディ部の指定は不要です。
Response
以下にレスポンスの例を記載します。
注意:
通常、同名eventに対する結果が一つずつ出力されますが、内部処理でエラーが発生し、リトライした場合、同名event結果が複数出力される場合があります。
リトライにより処理が成功した場合、複数出力された結果の内一つのresultがSuccessになります。
Example. Show Server Action Details: Action reboot: JSON response
{
"instanceAction": {
"action": "reboot",
"events": [
{
"event": "compute_reboot_instance",
"finish_time": "2016-11-30T01:15:02.000000",
"result": "Success",
"start_time": "2016-11-30T01:14:53.000000",
"traceback": null
}
],
"instance_uuid": "e39b684e-7da7-461e-8d21-37670b472b17",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-6526fc56-b172-4f48-ae81-0cad0c60c82b",
"start_time": "2016-11-30T01:14:52.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action rebuild: JSON response
{
"instanceAction": {
"action": "rebuild",
"events": [
{
"event": "compute_stop_instance",
"finish_time": "2016-12-12T05:02:37.000000",
"result": "Success",
"start_time": "2016-12-12T05:02:35.000000",
"traceback": null
},
{
"event": "compute_rebuild_instance",
"finish_time": "2016-12-12T05:02:37.000000",
"result": "Success",
"start_time": "2016-12-12T05:02:25.000000",
"traceback": null
}
],
"instance_uuid": "fee86478-a120-488f-8359-97d200564b90",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-73190894-7461-4b1e-abf9-dc31b9a64ced",
"start_time": "2016-12-12T05:02:23.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action resize: JSON response
{
"instanceAction": {
"action": "resize",
"events": [
{
"event": "compute_finish_resize",
"finish_time": "2016-12-02T05:55:28.000000",
"result": "Success",
"start_time": "2016-12-02T05:55:17.000000",
"traceback": null
},
{
"event": "compute_resize_instance",
"finish_time": "2016-12-02T05:55:17.000000",
"result": "Success",
"start_time": "2016-12-02T05:55:10.000000",
"traceback": null
},
{
"event": "compute_prep_resize",
"finish_time": "2016-12-02T05:55:10.000000",
"result": "Success",
"start_time": "2016-12-02T05:55:09.000000",
"traceback": null
},
{
"event": "cold_migrate",
"finish_time": "2016-12-02T05:55:09.000000",
"result": "Success",
"start_time": "2016-12-02T05:55:06.000000",
"traceback": null
}
],
"instance_uuid": "fee86478-a120-488f-8359-97d200564b90",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-695e2d33-988f-4ba1-b02d-1f92ea95fba4",
"start_time": "2016-12-02T05:55:06.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action confirmResize: JSON response
{
"instanceAction": {
"action": "confirmResize",
"events": [
{
"event": "compute_confirm_resize",
"finish_time": "2016-12-02T06:05:08.000000",
"result": "Success",
"start_time": "2016-12-02T06:05:02.000000",
"traceback": null
}
],
"instance_uuid": "fee86478-a120-488f-8359-97d200564b90",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-17fd6031-d176-42fe-8a20-a3318fb04507",
"start_time": "2016-12-02T06:05:02.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action revertResize: JSON response
{
"instanceAction": {
"action": "revertResize",
"events": [
{
"event": "compute_stop_instance",
"finish_time": "2016-12-02T06:23:46.000000",
"result": "Success",
"start_time": "2016-12-02T06:23:45.000000",
"traceback": null
},
{
"event": "compute_finish_revert_resize",
"finish_time": "2016-12-02T06:23:46.000000",
"result": "Success",
"start_time": "2016-12-02T06:23:38.000000",
"traceback": null
},
{
"event": "compute_revert_resize",
"finish_time": "2016-12-02T06:23:38.000000",
"result": "Success",
"start_time": "2016-12-02T06:23:33.000000",
"traceback": null
}
],
"instance_uuid": "fee86478-a120-488f-8359-97d200564b90",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-8498580f-81fe-43c1-b392-cfd10b805ed4",
"start_time": "2016-12-02T06:23:32.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action shelve: JSON response
{
"instanceAction": {
"action": "shelve",
"events": [
{
"event": "compute_shelve_offload_instance",
"finish_time": "2017-02-15T08:50:31.000000",
"result": "Success",
"start_time": "2017-02-15T08:50:20.000000",
"traceback": null
}
],
"instance_uuid": "609bedee-3c28-4d52-a4d6-3aca039a24d1",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-6c0a3251-c2ab-4c06-b85b-acf719e0d41a",
"start_time": "2017-02-15T08:50:20.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action unshelve: JSON response
{
"instanceAction": {
"action": "unshelve",
"events": [
{
"event": "compute_unshelve_instance",
"finish_time": "2016-11-14T08:05:25.000000",
"result": "Success",
"start_time": "2016-11-14T08:05:17.000000",
"traceback": null
},
{
"event": "schedule_instances",
"finish_time": "2016-11-14T08:05:17.000000",
"result": "Success",
"start_time": "2016-11-14T08:05:16.000000",
"traceback": null
}
],
"instance_uuid": "e39b684e-7da7-461e-8d21-37670b472b17",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-c13e5267-6afe-4370-a167-1862e8db703d",
"start_time": "2016-11-14T08:05:15.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action start: JSON response
{
"instanceAction": {
"action": "start",
"events": [
{
"event": "compute_start_instance",
"finish_time": "2016-11-30T01:13:12.000000",
"result": "Success",
"start_time": "2016-11-30T01:13:07.000000",
"traceback": null
}
],
"instance_uuid": "e39b684e-7da7-461e-8d21-37670b472b17",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-7a76e310-e0e7-46ec-80d4-da36161d254e",
"start_time": "2016-11-30T01:13:06.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action stop: JSON response
{
"instanceAction": {
"action": "stop",
"events": [
{
"event": "compute_stop_instance",
"finish_time": "2016-11-15T04:56:22.000000",
"result": "Success",
"start_time": "2016-11-15T04:56:20.000000",
"traceback": null
}
],
"instance_uuid": "e39b684e-7da7-461e-8d21-37670b472b17",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-f6d67e87-9b29-47f4-b3b7-8f1ebecebbbf",
"start_time": "2016-11-15T04:56:20.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}