云服务器内容精选

  • 响应示例 { "instanceActions": [ { "instance_uuid": "e723eb40-f56e-40f9-8c8c-caa517fe06ba", "user_id": "752be40780484291a9cc7ae50fff3e6d", "start_time": "2014-12-16T10:58:14.000000", "request_id": "req-ee56c2b5-d33b-4749-ae83-09281dbbb716", "action": "resize", "message": "Error", "project_id": "89655fe61c4c4a08b9f3e7f9095441b8" }, { "instance_uuid": "e723eb40-f56e-40f9-8c8c-caa517fe06ba", "user_id": "752be40780484291a9cc7ae50fff3e6d", "start_time": "2014-12-16T10:57:56.000000", "request_id": "req-23cfd57f-c58a-45cd-86a6-eab3e38f3753", "action": "resize", "message": "Error", "project_id": "89655fe61c4c4a08b9f3e7f9095441b8" }, ] }
  • 响应消息 响应参数如表3所示。 表3 响应参数 参数 参数类型 描述 instanceActions Array of Object 云服务器操作行为列表,详情请参见表4。 表4 instanceActions字段数据结构说明 参数 是否必选 参数类型 描述 action 是 String 行为动作 取值范围: create , delete , evacuate , restore , stop , start , reboot , rebuild , revertResize , confirmResize , detach_volume , attach_volume , attach_interface , detach_interface , lock , unlock , resize , migrate , pause , unpause , rescue , unrescue , changePassword , shelve ,unshelve , live-migration , trigger_crash_dump, extend_volume instance_uuid 是 String 弹性云服务器ID,UUID格式 message 是 String 行为完成状态信息 project_id 是 String 项目ID request_id 是 String 请求ID start_time 是 String 行为开始时间 user_id 是 String 用户ID
  • 响应消息 响应参数如表2所示。 表2 响应参数 参数 参数类型 描述 instanceAction Object 云服务器操作行为,详情请参见表3。 表3 instanceAction字段数据结构说明 参数 是否必选 参数类型 描述 action 是 String 行为动作 instance_uuid 是 String 弹性云服务器ID,UUID格式 message 是 String 行为完成状态信息 project_id 是 String 项目ID request_id 是 String 请求ID start_time 是 String 行为开始时间 user_id 是 String 用户ID events 是 Array of objects 事件信息,详情参见表4 表4 events字段数据结构说明 参数 是否必选 参数类型 描述 event 是 String 行为动作名称 result 是 String 执行结果 traceback 是 String 异常信息 start_time 是 String 事件开始时间 finish_time 是 String 事件结束时间
  • 响应示例 { "instanceAction": { "instance_uuid": "e723eb40-f56e-40f9-8c8c-caa517fe06ba", "user_id": "752be40780484291a9cc7ae50fff3e6d", "start_time": "2014-12-11T02:17:49.000000", "request_id": "req-5a429946-c9cc-45cc-b5bd-68864209e5cc", "action": "create", "message": null, "project_id": "89655fe61c4c4a08b9f3e7f9095441b8", "events": [ { "finish_time": "2014-12-11T02:17:58.000000", "start_time": "2014-12-11T02:17:50.000000", "traceback": null, "event": "compute_build_and_run_instance", "result": "Success" } ] }}