Request Reboot
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
sa |
Object |
Requested service adaptor information
|
targetTime |
String |
Execution schedule time
|
201
See “ Request information “
POST https://*.sacm.jp/public-api/v1/user/tsa99990001/request/reboot
Content-Type: application/json
{ "sa": { "code": "tss99990001" }, "targetTime": "2012/06/27 14:51:25" }
Content-Type: application/json
{ "id": "1:1", "sa": { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true }, "type": "read-storage", "targetTime": "2012/06/27 14:51:25", "status": "initial", "proxyStatus": "none", "resultCode": "none" }
Read information for requested Reboot
No Parameters
See “ Request information “
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/request/reboot/1:1
Content-Type: application/json
{ "id": "1:1", "sa": { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true }, "type": "read-storage", "targetTime": "2012/06/27 14:51:25", "status": "successed", "proxyStatus": "success", "resultCode": "success" }
Update information of requested Reboot (stop execution, update execution schedule date/time)
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
status |
int |
Request status
|
targetTime |
String |
Execute schedule date/time
|
See “ Request information “
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/request/reboot/1:1
Content-Type: application/json
{"status": 3}
Content-Type: application/json
{ "id": "1:1", "sa": { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true }, "type": "reboot", "targetTime": "2012/06/27 14:51:25", "status": "canceled", "proxyStatus": "none", "resultCode": "none" }
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/request/reboot/1:1
Content-Type: application/json
{"targetTime": "2012/06/27 16:00:00"}
Content-Type: application/json
{ "id": "1:1", "sa": { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true }, "type": "reboot", "targetTime": "2012/06/27 16:00:00", "status": "initial", "proxyStatus": "none", "resultCode": "none" }
ID may be updated if the execution schedule date/time is updated
Simultaneous execution cancel and execution schedule date/time update not allowed