SitesSynthetic Tests

triggerSiteDeviceSyntheticTest

POST
/api/v1/sites/{site_id}/devices/{device_id}/synthetic_test

Trigger Device Synthetic Test

Authorization

Authorization<token>

Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.

Format: Authorization: Token {apitoken}

Notes:

  • An API token generated for a specific admin has the same privileges as that admin
  • An API token is automatically removed if it is not used for more than 90 days
  • SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.

In: header

Path Parameters

site_id*string
Formatuuid
device_id*string
Formatuuid

Request Body

application/json

Request body for triggering a synthetic test on a device

host?string

If type==lan_connectivity. Hostname or IP address to probe for LAN connectivity testing

hostname?string

If type==dns. Hostname to resolve during the DNS synthetic test

ip?string

If type==arp. IP address to resolve through ARP during the synthetic test

password?string

If type==radius. Password used for RADIUS authentication testing

Formatpassword
ping_count?integer

If type==lan_connectivity. Number of ping probes to send during the LAN connectivity test

Range10 <= value <= 60
Default10
ping_details?boolean

If type==lan_connectivity. Whether to include per-ping results in the LAN connectivity test output

Defaultfalse
ping_size?integer

If type==lan_connectivity. Payload size, in bytes, for each ping probe

Range56 <= value <= 65535
Default56
port_id?string

If type==speedtest, required for ssr

protocol?synthetictest_device_protocol

If type==lan_connectivity. Protocol or protocol combination used for the connectivity test. enum: ping, ping+traceroute, traceroute.

Default"ping+traceroute"

Value in

  • "ping"
  • "ping+traceroute"
  • "traceroute"
tenant?string

If type==curl or type==lan_connectivity

timeout?integer

If type==curl. Timeout, in seconds, for the HTTP request

Range30 <= value <= 120
Default60
traceroute_udp_port?integer

SRX only, traceroute udp port

Range0 <= value <= 65535
Default33434
type*synthetictest_type

Synthetic test type to run against the target. enum: arp, curl, dhcp, dhcp6, dns, lan_connectivity, radius, speedtest.

Value in

  • "arp"
  • "curl"
  • "dhcp"
  • "dhcp6"
  • "dns"
  • "lan_connectivity"
  • "radius"
  • "speedtest"
url?string

If type==curl. URL requested during the HTTP synthetic test

username?string

If type==radius. Username used for RADIUS authentication testing

vlan_id?|

Required for AP. VLAN ID used by the synthetic test when the target device is an AP

Response Body

curl -X POST "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/devices/000000ab-00ab-00ab-00ab-0000000000ab/synthetic_test" \  -H "Content-Type: application/json" \  -d '{    "type": "arp"  }'
Empty