The following operation is the initial step to modify the status of a Storage I/O control configuration task.
Execution permission
Admin, StorageOps, Modify
Request line
GET baseURL/v1/services/IoControlHistory/actions/updateStatus
Request body
Not applicable.
Response body
The structure of the response body and the object attributes is as follows:Action
{ "name":"...", "href":"...", "method":"...", "type":"...", "parameters":["...", ...] }
Action (Type: Action)
Attribute |
Type |
Description |
---|---|---|
name |
string |
Name of the action. |
href |
string |
URL for the action. |
method |
string |
Name of the method. |
type |
string |
Data format for the object. |
parameters |
anyType[] |
A list of IoControlHistoryUpdateStatusParam objects necessary to execute an operation. For details, see the table below. |
IoControlHistoryUpdateStatusParam
{ "ioControlTaskIDs":["...", ...] }
IoControlHistoryUpdateStatusParam (Type: IoControlHistoryUpdateStatusParam)
Attribute |
Type |
Description |
---|---|---|
ioControlTaskIDs |
string[] |
IDs of the I/O control settings tasks whose statuses are to be updated. If no IDs are specified, the statuses of all tasks will be updated. |
Status codes
Status code |
Reason phrase |
Description |
---|---|---|
200 |
OK |
Success. |
401 |
Unauthorized |
No login privilege. |
403 |
Forbidden |
No reference privilege. |
412 |
Precondition Failed |
The server is not available. |
500 |
Internal Server Error |
Server processing error. |
Example code
[Request Header] GET http://localhost:22015/Analytics/v1/services/IoControlHistory/actions/updateStatus HTTP/1.1 Host: localhost:22015 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: null Accept-Encoding: gzip, deflate Content-Type: application/json Authorization: Basic c3lzdGVtOm1hbmFnZXI= Cookie: JSESSIONID=00A8DFD2B38317A0C74369F0866CF67C Proxy-Authorization: Basic NzA2MzMwOTI6aGl0YWNoaW5va2kyMTE= Connection: keep-alive [Response Header] HTTP/1.1 200 OK Date: Mon, 05 Sep 2016 03:16:35 GMT Server: Cosminexus HTTP Server Cache-Control: no-cache WWW-Authenticate: HSSO f789a859ef16ba7f58d80f03318163682136b2f_Vlo8Y30Idn8EY0BdB3IEfwgabiA=_V0810 X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Content-Type: application/json [Response Body] { "name" : "updateStatus", "href" : "http://localhost:22015/Analytics/v1/services/IoControlHistory/actions/updateStatus/invoke", "method" : "POST", "type" : "application/json", "parameters" : [ { "ioControlTaskIDs" : [ "0" ] } ] }