Request ping
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
sa |
Object |
Requested service adaptor information
|
targetTime |
String |
Execute schedule date/time
|
targetAddress |
String |
Ping recipient IP address |
size |
int |
Packet size (0 - 65467) |
count |
int |
Number of attempts (1 - 128) |
201
Key |
Type |
Value |
---|---|---|
targetAddress |
String |
Ping recipient IP address |
size |
int |
Packet size |
count |
int |
Number of attempts |
resultSuccess |
int |
Number of times succeeded
|
resultFailure |
int |
Number of times failed
|
Other than the above |
Shared parameters
|
POST https://*.sacm.jp/public-api/v1/user/tsa99990001/request/ping
Content-Type: application/json
{ "sa": { "code": "tss99990001" }, "targetTime": "2012/06/27 14:51:25", "targetAddress": "210.130.137.80", "size": 60, "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": "ping", "targetTime": "2012/06/27 14:51:25", "status": "initial", "proxyStatus": "none", "resultCode": "none", "targetAddress": "210.130.137.80", "size": 60, "count": 5, "resultSuccess": null, "resultFailure": null }
Read information for requested ping
No Parameters
Key |
Type |
Value |
---|---|---|
targetAddress |
String |
Ping recipient IP address |
size |
int |
Packet size |
count |
int |
Number of attempts |
resultSuccess |
int |
Number of times succeeded |
resultFailure |
int |
Number of times failed |
Other than the above |
Shared parameters
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/request/ping/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": "ping", "targetTime": "2012/06/27 14:51:25", "status": "successed", "proxyStatus": "success", "resultCode": "success", "targetAddress": "210.130.137.80", "size": 60, "count": 5, "resultSuccess": 5, "resultFailure": 0 }
Update information of requested ping (stop execution, update execution schedule date/time)
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
status |
int |
Request status
|
targetTime |
String |
Execute schedule date/time
|
Key |
Type |
Value |
---|---|---|
targetAddress |
String |
Ping recipient IP address |
size |
int |
Packet size |
count |
int |
Number of attempts |
resultSuccess |
int |
Number of times succeeded
|
resultFailure |
int |
Number of times failed
|
Other than the above |
Shared parameters
|
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/request/ping/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": "ping", "targetTime": "2012/06/27 15:00:00", "status": "canceled", "proxyStatus": "none", "resultCode": "none", "targetAddress": "210.130.137.80", "size": 60, "count": 5, "resultSuccess": null, "resultFailure": null }
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/request/ping/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": "ping", "targetTime": "2012/06/27 16:00:00", "status": "initial", "proxyStatus": "none", "resultCode": "none", "targetAddress": "210.130.137.80", "size": 60, "count": 5, "resultSuccess": null, "resultFailure": null }
ID may be updated if the execution schedule date/time is updated
Simultaneous execution cancel and execution schedule date/time update not allowed