nova/doc/api_samples/os-instance-actions/v2.21/instance-actions-list-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

22 lines
771 B
JSON

{
"instanceActions": [
{
"action": "stop",
"instance_uuid": "07cacdbb-2e7f-4048-b69c-95cbdc47af6f",
"message": null,
"project_id": "6f70656e737461636b20342065766572",
"request_id": "req-c022e6dc-d962-426e-b623-1cdbac0da64b",
"start_time": "2018-04-25T01:26:28.752049",
"user_id": "admin"
},
{
"action": "create",
"instance_uuid": "07cacdbb-2e7f-4048-b69c-95cbdc47af6f",
"message": null,
"project_id": "6f70656e737461636b20342065766572",
"request_id": "req-862ef1ff-da4f-4b3b-9a29-6d621442c76c",
"start_time": "2018-04-25T01:26:25.595858",
"user_id": "admin"
}
]
}