Skip to main content

Ping a remote server

POST 

/node/:hostname/network/ping

Send a ping to a remote server to verify network connectivity.

Request

Path Parameters

    hostname stringrequired

    Possible values: non-empty

    Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).

Body

required

The server to ping.

    address stringrequired

    The IP address of the server to ping. Supports both IPv4 and IPv6. Also accepts @fact. references that are resolved agent-side.

Responses

Successful ping response.

Schema

    job_id uuid

    The job ID used to process this request.

    results

    object[]

    required

  • Array [

  • hostname stringrequired

    The hostname of the agent that executed the ping.

    packets_sent integer

    Number of packets sent.

    packets_received integer

    Number of packets received.

    packet_loss double

    Percentage of packet loss.

    min_rtt string

    Minimum round-trip time in Go time.Duration format.

    avg_rtt string

    Average round-trip time in Go time.Duration format.

    max_rtt string

    Maximum round-trip time in Go time.Duration format.

    changed boolean

    Whether the operation modified system state.

    error string

    Error message if the agent failed.

  • ]

Loading...