Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

Querying ECS Operations by Request ID

Updated on 2022-09-23 GMT+08:00

Function

This API is used to query a request of an ECS.

URI

GET /v2.1/{project_id}/servers/{server_id}/os-instance-actions/{request_id}

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

For details about how to obtain the ID, see Obtaining a Project ID.

server_id

Yes

Specifies the ECS ID.

request_id

Yes

Specifies the request ID.

Request

None

Response

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

instanceAction

Object

Specifies an operation performed on the ECS. For details, see Table 3.

Table 3 instanceAction field description

Parameter

Mandatory

Type

Description

action

Yes

String

Specifies the action name.

instance_uuid

Yes

String

Specifies the ECS ID in UUID format.

message

Yes

String

Specifies the result status of the action.

project_id

Yes

String

Specifies the project ID.

request_id

Yes

String

Specifies the request ID.

start_time

Yes

String

Specifies the time when the action was started.

user_id

Yes

String

Specifies the user ID.

events

Yes

Array of objects

Describes events. For details, see Table 4.

Table 4 events field description

Parameter

Mandatory

Type

Description

event

Yes

String

Specifies the action name.

result

Yes

String

Specifies the execution result.

traceback

Yes

String

Specifies the error message.

start_time

Yes

String

Specifies the time when the event was started.

finish_time

Yes

String

Specifies the time when the event was completed.

Example Request

GET https://{endpoint}/v2.1/89655fe61c4c4a08b9f3e7f9095441b8/servers/e723eb40-f56e-40f9-8c8c-caa517fe06ba/os-instance-actions/req-5a429946-c9cc-45cc-b5bd-68864209e5c

Example Response

{
    "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"
            }
        ]
    }
}
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback