再起動をリクエストする
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
sa |
Object |
リクエストの対象となるサービスアダプタ情報
|
targetTime |
String |
実行予定時刻
|
201
レスポンス情報 を参照
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": "reboot", "targetTime": "2012/06/27 14:51:25", "status": "initial", "proxyStatus": "none", "resultCode": "none", "requestCommands": [] }
リクエストした再起動の情報を取得する
パラメータ無し
レスポンス情報 を参照
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": "reboot", "targetTime": "2012/06/27 14:51:25", "status": "successed", "proxyStatus": "success", "resultCode": "success", "requestCommands": [] }
リクエストされた再起動の情報を変更する (実行の中止、実行予定日時の変更)
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
status |
int |
リクエストの状態
|
targetTime |
String |
実行予定日時
|
レスポンス情報 を参照
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", "requestCommands": [] }
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", "requestCommands": [] }
実行予定日時を変更すると id が変更される可能性がある
実行の中止と実行予定日時の変更の同時実行は不可