ConstantsModels

getGatewayDefaultConfig

GET
/api/v1/const/default_gateway_config

Generate the default gateway configuration for the requested model and HA mode.

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

Query Parameters

model*string

Device model for which to generate the default gateway config.

ha?string

Whether the config is intended for HA

Response Body

curl -X GET "https://example.com/api/v1/const/default_gateway_config?model=srx550"
{  "dhcpd_config": {    "lan": {      "ip_end": "192.168.1.254",      "ip_start": "192.168.1.2"    }  },  "ip_configs": {    "lan": {      "ip": "192.168.1.1",      "type": "static"    }  },  "networks": {    "lan": {      "name": "lan",      "subnet": "192.168.1.0/24",      "vlan_id": 1    }  },  "path_preferences": {    "wan": {      "paths": [        {          "name": "wan",          "type": "wan"        }      ]    }  },  "port_config": {    "cl-1/0/0": {      "ip_config": {        "type": "dhcp"      },      "name": "lte",      "usage": "wan",      "wan_type": "lte"    },    "ge-0/0/0,ge-0/0/7": {      "ip_config": {        "type": "dhcp"      },      "name": "wan",      "usage": "wan"    },    "ge-0/0/1-6": {      "port_network": "lan",      "usage": "lan"    }  },  "service_policies": [    {      "action": "allow",      "name": "Internet",      "path_preference": "wan",      "services": [        "any"      ],      "tenants": [        "lan"      ]    }  ]}