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": "2017-04-12T06:59:39.000000",
"result": "Success",
"start_time": "2017-04-12T06:59:36.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "31ceb599e8ff48aeb66f2fd748988960",
"request_id": "req-76508c6a-856c-4522-a3bb-11290806eb02",
"start_time": "2017-04-12T06:59:35.000000",
"user_id": "cea368aa07164c4d89b2e1ad57b18151"
}
}
Example. Show Server Action Details: Action rebuild: JSON response
{
"instanceAction": {
"action": "rebuild",
"events": [
{
"event": "compute_rebuild_instance",
"finish_time": "2017-04-12T07:19:15.000000",
"result": "Success",
"start_time": "2017-04-12T07:19:08.000000",
"traceback": null
},
{
"event": "rebuild_server",
"finish_time": "2017-04-12T07:19:08.000000",
"result": "Success",
"start_time": "2017-04-12T07:19:08.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-619e6456-74e7-4697-93af-e0a3e54f4a74",
"start_time": "2017-04-12T07:19:07.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action resize: JSON response
{
"instanceAction": {
"action": "resize",
"events": [
{
"event": "compute_finish_resize",
"finish_time": "2017-04-12T07:10:06.000000",
"result": "Success",
"start_time": "2017-04-12T07:10:02.000000",
"traceback": null
},
{
"event": "compute_resize_instance",
"finish_time": "2017-04-12T07:10:02.000000",
"result": "Success",
"start_time": "2017-04-12T07:09:56.000000",
"traceback": null
},
{
"event": "compute_prep_resize",
"finish_time": "2017-04-12T07:09:56.000000",
"result": "Success",
"start_time": "2017-04-12T07:09:55.000000",
"traceback": null
},
{
"event": "cold_migrate",
"finish_time": "2017-04-12T07:09:55.000000",
"result": "Success",
"start_time": "2017-04-12T07:09:54.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-e7c7a105-cada-4eec-b4fb-94ca157c597a",
"start_time": "2017-04-12T07:09:54.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action confirmResize: JSON response
{
"instanceAction": {
"action": "confirmResize",
"events": [
{
"event": "compute_confirm_resize",
"finish_time": "2017-04-12T07:13:38.000000",
"result": "Success",
"start_time": "2017-04-12T07:13:36.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-bf95198c-c2f8-4a47-a9a1-7525ddeca0b7",
"start_time": "2017-04-12T07:13:36.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action revertResize: JSON response
{
"instanceAction": {
"action": "revertResize",
"events": [
{
"event": "compute_finish_revert_resize",
"finish_time": "2017-04-12T07:12:18.000000",
"result": "Success",
"start_time": "2017-04-12T07:12:15.000000",
"traceback": null
},
{
"event": "compute_revert_resize",
"finish_time": "2017-04-12T07:12:15.000000",
"result": "Success",
"start_time": "2017-04-12T07:12:13.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-035bcabc-7d99-46fb-963d-d350b8574328",
"start_time": "2017-04-12T07:12:12.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-04-17T02:25:32.000000",
"result": "Success",
"start_time": "2017-04-17T02:25:29.000000",
"traceback": null
}
],
"instance_uuid": "4a792f19-7f16-4109-80f3-790a3640e1f1",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-636a2c3f-94e9-464c-9441-9b5d1c1d59f1",
"start_time": "2017-04-17T02:25:29.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action unshelve: JSON response
{
"instanceAction": {
"action": "unshelve",
"events": [
{
"event": "compute_unshelve_instance",
"finish_time": "2017-04-12T06:57:18.000000",
"result": "Success",
"start_time": "2017-04-12T06:57:05.000000",
"traceback": null
},
{
"event": "schedule_instances",
"finish_time": "2017-04-12T06:57:05.000000",
"result": "Success",
"start_time": "2017-04-12T06:57:05.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "31ceb599e8ff48aeb66f2fd748988960",
"request_id": "req-c70945b6-a4c6-4f6e-89fc-7a5ed74d8dc7",
"start_time": "2017-04-12T06:57:04.000000",
"user_id": "cea368aa07164c4d89b2e1ad57b18151"
}
}
Example. Show Server Action Details: Action start: JSON response
{
"instanceAction": {
"action": "start",
"events": [
{
"event": "compute_start_instance",
"finish_time": "2017-04-12T07:22:36.000000",
"result": "Success",
"start_time": "2017-04-12T07:22:34.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-19c978d8-ce4d-4ae0-baf7-e6d445b0477b",
"start_time": "2017-04-12T07:22:34.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}
Example. Show Server Action Details: Action stop: JSON response
{
"instanceAction": {
"action": "stop",
"events": [
{
"event": "compute_stop_instance",
"finish_time": "2017-04-12T07:22:24.000000",
"result": "Success",
"start_time": "2017-04-12T07:22:23.000000",
"traceback": null
}
],
"instance_uuid": "606a8771-4559-45ea-a20a-c76055710dd2",
"message": null,
"project_id": "bb46ff7286ed4e418958c2a5e06cd4a2",
"request_id": "req-809f2a33-f8a4-476d-b9bd-5b3955da17ce",
"start_time": "2017-04-12T07:22:22.000000",
"user_id": "1f708e1376784e529a7b09eb5ff1a5fc"
}
}