nova/doc/api_samples/os-instance-actions/v2.58/instance-action-get-non-admin-resp.json
Yikun Jiang 577cb4b2f4 ServerActionsSampleJsonTest refactor
Change the instance action sample to a real world action.

In Setup, we create an instance and then stop it. That would
be 2 actions(create and stop), and the stop action should have
a "compute_stop_instance" event. And then we do 2.1/2.21/2.51
test case based on these actions, like we have done in 2.58.

Change-Id: Iac23a574a05e62a99aab20ffce4265f4fb5a44d9
2018-04-26 09:26:35 +08:00

20 lines
669 B
JSON

{
"instanceAction": {
"action": "stop",
"events": [
{
"event": "compute_stop_instance",
"finish_time": "2018-04-25T01:26:30.518082",
"result": "Success",
"start_time": "2018-04-25T01:26:30.261571"
}
],
"instance_uuid": "ee4c91a6-f214-486d-8e2a-efa29ad91ecd",
"message": null,
"project_id": "6f70656e737461636b20342065766572",
"request_id": "req-ada57283-2dd7-4703-9781-d287aaa4eb95",
"start_time": "2018-04-25T01:26:30.041225",
"updated_at": "2018-04-25T01:26:30.518082",
"user_id": "fake"
}
}