traceroute をリクエストする
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
sa |
Object |
リクエストの対象となるサービスアダプタ情報 (必須)
|
targetTime |
String |
実行予定日時 (必須)
|
targetAddress |
String |
tracerouteの送信先IPアドレス (必須) |
maxHop |
int |
最大ホップ数 (0 - 255) (必須) |
count |
int |
ホップ毎の送出パケット数 (1 - 10) (必須) |
201
Key |
Type |
Value |
---|---|---|
targetAddress |
String |
tracerouteの送信先IPアドレス |
maxHop |
int |
最大ホップ数 (0 - 255) |
count |
int |
ホップ毎の送出パケット数 (1 - 10) |
resultNodeInfo |
Array |
tracerouteの結果一覧
|
上記以外 |
共通パラメータ
|
POST https://*.sacm.jp/public-api/v1/user/tsa99990001/request/traceroute
Content-Type: application/json
{ "sa": { "code": "tss99990001" }, "targetTime": "2012/06/27 14:51:25", "targetAddress": "210.130.137.80", "maxHop": 100, "count": 5 }
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": "traceroute", "targetTime": "2012/06/27 14:51:25", "status": "initial", "proxyStatus": "none", "resultCode": "none", "requestCommands": [], "targetAddress": "210.130.137.80", "maxHop": 100, "count": 5, "resultNodeInfo": null }
リクエストされた traceroute の情報を取得する
パラメータ無し
Key |
Type |
Value |
---|---|---|
targetAddress |
String |
tracerouteの送信先IPアドレス |
maxHop |
int |
最大ホップ数 (0 - 255) |
count |
int |
ホップ毎の送出パケット数 (1 - 10) |
resultNodeInfo |
Array |
tracerouteの結果一覧 (リクエストが完了した場合のみ)
|
上記以外 |
共通パラメータ
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/request/traceroute/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": "traceroute", "targetTime": "2012/06/27 14:51:25", "status": "successed", "proxyStatus": "success", "resultCode": "success", "requestCommands": [], "targetAddress": "210.130.137.80", "maxHop": 100, "count": 5, "resultNodeInfo": [ { "hop": 1, "address": "192.168.0.1" }, { "hop": 2, "address": "210.149.34.69" }, { "hop": 3, "address": "210.149.34.133" }, { "hop": 4, "address": "210.149.34.97" }, { "hop": 5, "address": "58.138.100.213" }, { "hop": 6, "address": "58.138.80.45" }, { "hop": 7, "address": "58.138.80.242" }, { "hop": 8, "address": "58.138.104.30" }, { "hop": 9, "address": "210.130.137.80" } ] }
リクエストされた traceroute の情報を変更する (実行の中止、実行日時の変更)
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
status |
int |
リクエストの状態
|
targetTime |
String |
実行予定日時
|
Key |
Type |
Value |
---|---|---|
targetAddress |
String |
tracerouteの送信先IPアドレス |
maxHop |
int |
最大ホップ数 (0 - 255) |
count |
int |
ホップ毎の送出パケット数 (1 - 10) |
resultNodeInfo |
Array |
tracerouteの結果一覧
|
上記以外 |
共通パラメータ
|
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/request/traceroute/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": "traceroute", "targetTime": "2012/06/27 14:51:25", "status": "canceled", "proxyStatus": "none", "resultCode": "none", "requestCommands": [], "targetAddress": "210.130.137.80", "maxHop": 100, "count": 5, "resultNodeInfo": null }
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/request/traceroute/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": "traceroute", "targetTime": "2012/06/27 16:00:00", "status": "initial", "proxyStatus": "none", "resultCode": "none", "requestCommands": [], "targetAddress": "210.130.137.80", "maxHop": 100, "count": 5, "resultNodeInfo": null }
実行予定日時を変更すると id が変更される可能性がある
実行の中止と実行予定日時の変更の同時実行は不可