getSiteGatewayTemplateDerived
GET htttps://{{host}}/api/v1/sites/:site_id/gatewaytemplates/derived
Parameters
Name | Type | Description |
---|---|---|
resolve | boolean | whether resolve the site variables |
RESPONSES
status: OK
"{\n \"name\": \"corp-a135\",\n\n // gateways use/share `networks` that switches uses \n \"networks\": {\n // see Gateway Template\n },\n\n \"port_config\": {\n // see Gateway Template\n },\n\n \"ip_configs\": {\n \"corp\": {\n \"type\": \"static\",\n \"ip\": \"192.168.10.1\"\n }\n },\n\n \"dhcpd_config\": {\n \"enabled\": true,\n \"corp\": {\n \"type\": \"local\", // default\n \"ip_start\": \"192.168.70.100\",\n \"ip_end\": \"192.168.70.200\", \n \"gateway\": \"192.168.70.1\",\n\n // optional, system one will be used\n \"dns_servers\": [ \"8.8.8.8\", \"4.4.4.4\" ],\n \"dns_suffix\": [ \".mist.local\", \".mist.com\" ],\n\n // fixed binding\n \"fixed_bindings\": {\n \"5684dae9ac8b\": {\n \"name\": \"John\",\n \"ip\": \"192.168.70.35\"\n }\n },\n\n // server_options\n \"options\": {\n \"80\": {\n \"type\": \"string\", // string / boolean / ip / hex / int16 / int32 / uint16 / uint32\n\n \"value\": \"string\", // string\n \"value\": \"686578\", // hex\n \"value\": \"true\", // single boolean\n \"value\": \"1.1.1.1,2.2.2.2\" // list of ip addresses, comma-separated\n } \n },\n \"vendor_encapsulated\": {\n // \u003centerprise number\u003e:\u003csub option code\u003e \n // enterprise number\": 25300, // 1-65535 (https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers)\n // sub option code\": 8, // 1-255, sub-option code\n \"25300:8\": {\n \"type\": \"string\", // string / boolean / ip / hex / int16 / int32 / uint16 / uint32\n \"value\": ... // see above\n }\n },\n\n //\n // if using DHCP relay\n //\n \"type\": \"relay\",\n \"servers\": [\"11.2.3.4\"],\n\n // server_id_override\n // Default is false.\n // True means the device, when acts as DHCP relay and forwards DHCP responses from DHCP server to clients, \n // should overwrite the Sever Identifier option (i.e. DHCP option 54) in DHCP responses with its own IP address.\n \"server_id_override\": true\n }\n },\n\n \"extra_routes\": {\n \"0.0.0.0/0\": {\n \"via\": \"10.2.1.1\"\n } \n },\n\n \"oob_ip_config\": {\n // fxp0 IP config\n\n \"type\": \"static\",\n \"ip\": \"192.168.50.3\",\n \"netmask\": \"255.255.255.0\",\n\n // when there are 2 routing engines, re1 mgmt IP has to be set separately (if desired)\n \"re1\": {\n // same payload as `ip_config` except dns / dns_suffix / gateway\n },\n\n // if supported on the platform, whether to place OOB port into it's own RI (mgmt_junos)\n // https://www.juniper.net/documentation/us/en/software/junos/junos-getting-started/topics/topic-map/management-interface-in-non-default-instance.html\n \"use_mgmt_vrf\": false // false (default) / true\n },\n\n \"ntp_servers\": [\n \"pool.ntp.org\",\n \"time.google.com\"\n ],\n\n // for an adopted gateway/switches, this can be enabled to make it fully-managed by mist\n \"managed\": false,\n\n // additional CLI commands to append to the generated config\n // NOTE: no check is done\n \"additional_config_cmds\": [\n \"set snmp community public\"\n ],\n\n \"vars\": {\n \"RADIUS_SECRET\": \"11s64632d\",\n \"RADIUS_IP1\": \"172.31.2.5\"\n },\n \"deviceprofile_id\": \"6f4bf402-45f9-2a56-6c8b-7f83d3bc98e9\",\n \"image1_url\": \"https://url/to/image.png\"\n}"