Post PING

Create ping to UE IP from Edge

post

The ping function sends a request to the specified IP address from the edge and returns the ping output along with its status. “ipAddress” The destination IP address to be pinged.“TTL” Time to Live, which defines the maximum number of network hops the ping request can take before being discarded, default value for "ttl" is 64.“timeout” The duration, in seconds, to wait for a response before timing out, maximum value for "timeout" is 5 sec and default value is 3 sec.“repetition” The number of ping requests sent to the target, maximum value for "repetition" is 10 and default value is 5.“dataSize” The size, in bytes, of the data included in each ping request, maximum dataSize is 1400 and default value is 64.

Authorizations
Path parameters
edgeIpstring · enumRequired

The IP address of the edge

Possible values:
Body
ipAddressstringRequiredExample: 8.8.8.8
timeoutinteger · max: 5OptionalDefault: 3Example: 2
ttlintegerOptionalDefault: 64Example: 64
repetitioninteger · max: 10OptionalDefault: 5Example: 5
dataSizeinteger · max: 1400OptionalDefault: 64Example: 64
Responses
200
sample response body
application/json
post
POST /api/v1/edge/{edgeIp}/ping HTTP/1.1
Host: api.monogoto.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 108

"{\n\"ipAddress\": \"8.8.8.8\",\n\"timeout\": 2,\n\"ttl\": 64, \n\"repetition\": 5, \n\"dataSize\": 64\n}\n"
{
  "output": [
    "PING 192.168.101.3 (192.168.101.3) 1400(1428) bytes of data.",
    "1408 bytes from 192.168.101.3: icmp_seq=1 ttl=62 time=12.6 ms",
    "1408 bytes from 192.168.101.3: icmp_seq=2 ttl=62 time=13.0 ms",
    "1408 bytes from 192.168.101.3: icmp_seq=3 ttl=62 time=12.6 ms",
    "1408 bytes from 192.168.101.3: icmp_seq=4 ttl=62 time=12.8 ms",
    "1408 bytes from 192.168.101.3: icmp_seq=5 ttl=62 time=13.0 ms",
    "",
    "--- 192.168.101.3 ping statistics ---",
    "5 packets transmitted, 5 received, 0% packet loss, time 4006ms",
    "rtt min/avg/max/mdev = 12.556/12.776/12.979/0.174 ms"
    ],
  "status": "ok"
}

Last updated

Was this helpful?