A commandStatus object is the object of API status information that is returned when an API request for asynchronous processing is issued.
The following table explains the schema of a commandStatus object.
Attribute |
Data type |
Description |
---|---|---|
id |
int |
ID used for inquiry when the API function for asynchronous processing was run. |
progress |
string |
Progress of the API function: The following values can be returned:
|
status |
string |
Status of the results of the API function. The following values can be returned:
This attribute appears only if the execution of the API function has completed. |
affectedResources |
string[] |
URL used to access the resource targeted by the operation. If one API function request performs operations on multiple resources, the URLs of all those resources are returned. If an API function failed, only the URLs of the resources for which processing is confirmed as completed are returned. If the resource is deleted successfully, the URL of the deleted resource is returned. A 404 error occurs if this URL is accessed. This confirms that the resource was deleted successfully. This attribute appears if the execution of the API function finished successfully. |
errorResource |
string |
URL where the error occurs. This attribute appears if the execution of the API function failed. |
errorCode |
object |
Error code from the storage system. A value is returned only if an error occurs in the storage system. The error codes are as follows:
Storage system error codes are required for maintenance of the storage system. This attribute appears if the execution of the API function failed. |
errorMessage |
string |
Content of the error message. This attribute appears if the execution of the API function failed. |
operationDetails |
object[] |
Details about a resource targeted by the operation. This information appears when an operation is performed for the resource indicated by the resource type:
|
- A maximum of 65,280 items of object information can be retained. If the number of items of API information exceeds 65,280, delete the object information by running the API that deletes the API status information in asynchronous processing.
- The object information is deleted even if the user logs out from the session.
Example of a commandStatus object when the API function starts running:
{ "id": 1, "progress": "processing" }
Example of a commandStatus object when the API function ends successfully:
{ "id": 2, "progress": "completed", "status": "normal", "affectedResources": [ "/ConfigurationManager/simple/v1/objects/volumes/100" ], "operationDetails": [ { "operationType": "CREATE", "resourceType": "Volume", "resourceId": "100" } ] }
Example of a commandStatus object when the API function failed:
{ "id": 3, "progress": "completed", "status": "error", "errorResource": "/ConfigurationManager/simple/v1/objects/pools/63", "errorCode": { "SSB1": "2e11", "SSB2": "001f" }, "errorMessage": "Snapshot or volume exists. Operation could not be completed.", "operationDetails": [ { "operationType": "DELETE", "resourceType": "Pool", "resourceId": "63" } ] }