リクエストの一覧情報を取得する
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/?sacode=tss99990001&type=md-command&status=successed&status=failed&limit=50&offset=100
Content-Type: application/json
{ "results": [ { "id": "1:3", "sa": { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "configState": "initial", "up": true }, "type": "md-command", "targetTime": "2012/06/25 16:44:23", "status": "failed", "proxyStatus": "connection-timeout", "resultCode": "success" }, { "id": "1:1", "sa": { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "configState": "initial", "up": true }, "type": "md-command", "targetTime": "2012/06/25 16:42:56", "status": "successed", "proxyStatus": "success", "resultCode": "success", "requestCommands": ["show system"] } ], ... "totalCount": 1000, "offset": 100, "limit": 50 }
Key | Type | Value |
---|---|---|
id | String | リクエストのID |
sa | Object | サービスアダプタの情報
|
type | String | リクエスト種別
|
targetTime | String | 実行予定時間 |
status | String | リクエストの状態
|
proxyStatus | String | プロキシの状態
|
resultCode | String | 結果コード
|
requestCommands | Array | タスクに紐づくコマンド文字列
|
totalCount | int | リクエストの総件数 |
offset | int | リクエストの取得開始位置 |
limit | int | リクエストの取得件数 |
API(/user/:user_code/request/以下) | Ping | Traceroute | Read Storage | Reboot | Configure |
---|---|---|---|---|---|
POST :type | o | o | o | o | x |
GET :type/:id | o | o | o | o | o |
PUT :type/:id | o | o | o | o | o |
GET :type/:id/request/module/:module_id/:format | x | x | x | x | x |
GET :type/:id/result/module/:module_id/:format | x | x | o | x | x |
GET :type/:id/error/module/:module_id/:format | x | x | x | x | o |
GET :type/:id/error/sa/binary | x | x | x | x | o |
API(/user/:user_code/request/以下) | Read Status | Clear Status | Md Command |
---|---|---|---|
POST :type | o | o | o |
GET :type/:id | o | o | o |
PUT :type/:id | o | o | o |
GET :type/:id/request/module/:module_id/:format | o | o | o |
GET :type/:id/result/module/:module_id/:format | o | o | o |
GET :type/:id/error/module/:module_id/:format | x | x | x |
GET :type/:id/error/sa/binary | x | x | x |