commandStatus object

Storage Advisor Embedded User Guide

Version
93-07-2x
88-08-12
Audience
anonymous
Part Number
MK-97HM85022-25

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:

  • unexecuted: The API function has not been run.
  • processing: The API function is running.
  • completed: The API function has completed.

status

string

Status of the results of the API function.

The following values can be returned:

  • normal: The API function finished successfully.
  • error: The API function failed.

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:

  • SSB1 code
  • SSB2 code

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:

  • operationType (string)

    The type of the operation performed for the resource:

    • CREATE: The resource has been created.
    • UPDATE: The resource has been updated.
    • DELETE: The resource has been deleted.
  • resourceType (string)

    The resource type of a resource that was created, updated, or deleted:

    • CommandStatus: A resource related to status information about the API function that performs asynchronous processing
    • Pool: A resource related to pools
    • Port: A resource related to ports
    • Server: A resource related to servers
    • Snapshot: A resource related to snapshots
    • Volume: A resource related to volumes
    • VolumeServerConnection: A resource related to connections between volumes and servers
    • ExternalVolume: A resource related to external volumes
    • QuorumDisk: A resource related to quorum disk
  • resourceId (string)

    The resource ID of a resource that was created, updated, or deleted

Note:
  • 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"
    }
  ]
}