This API is used to query asynchronous operation results.
GET /v1.0/plasconnector/connectors/{connector_id}/operations/{operation_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
connector_id |
Yes |
String |
Indicates the PLAS connector ID. The value is a string of 1 to 36 characters. |
operation_id |
Yes |
String |
Indicates the operation ID. The value is a string of 1 to 36 characters. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
operationId |
Yes |
String |
Indicates the operation ID. The value is a string of 1 to 36 characters. |
operationType |
Yes |
String |
Indicates the operation type. Value range:
|
finished |
Yes |
boolean |
Specifies whether the operation is successful. Value range:
|
operateAt |
No |
String |
Indicates the operation time in UNIX time format. The value is a string of 1 to 36 characters. |
finishedAt |
No |
String |
Indicates the completion time in UNIX time format. The value is a string of 1 to 36 characters. |
result |
No |
Result object |
Indicates the operation result. |
The Result object has the following attributes.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
result |
No |
String |
Indicates the operation result. Value range:
|
reason |
No |
String |
Indicates the reason. The value is a string of 0 to 255 characters. |
HTTP/1.1 200 OK
Content-Type:application/json
Cache-Control:no-cache
{
"operationId": "95a44e38-5d61-44ca-a5c4-f241812fbd51",
"operationType": "create",
"operateAt": "1517274000",
"finishedAt": "1517274020"
"finished": true,
"result": {
"result": "success",
"reason": ""
}
}
Returned Value |
Description |
---|---|
200 OK |
The operation is successfully returned. |
Returned Value |
Description |
---|---|
400 Bad Request |
The server failed to process the request. |
500 Internal Server Error |
The server encountered an unexpected condition which prevented it from fulfilling the request. |