createOrgNetworkTemplate

POST https://{{host}}/api/v1/orgs/:org_id/networktemplates

Body Parameters

ParameterTypeDescription
namestringThe name of the RF template
country_codestringoptional, country code to use. If specified, this gets applied to all sites using the RF Template
model_specificobjectoverwrites for a specific model. If a band is specified, it will shadow the default.
channelslistlist of channels, null or empty array means auto
bandwidthintchannel width for the band, 20 / 40 / 80, 80 is only applicable for band_5
powerinttx power of the radio, 0 mean auto
power_minintwhen power=0, min tx power to use, HW-specific values will be used if not set
power_maxintwhen power=0, max tx power to use, HW-specific values will be used if not set
preamblestringshort / long / auto, default is short

Request Body

{"name"=>"xxx", "networks"=>{"default"=>{"vlan_id"=>1}, "corp"=>{"vlan_id"=>600}, "guest"=>{"vlan_id"=>700}, "mgmt"=>{"vlan_id"=>500}}, "import_org_networks"=>["ap", "iot"], "mist_nac"=>{"enabled"=>true, "network"=>"default"}, "radius_config"=>{"auth_servers_timeout"=>5, "auth_servers_retries"=>3, "auth_servers"=>[{"host"=>"1.2.3.4", "port"=>1812, "secret"=>"testing123"}, {"host"=>"radius.internal", "port"=>1812, "secret"=>"testing123"}], "acct_servers"=>[{"host"=>"1.2.3.4", "port"=>1812, "secret"=>"testing123"}], "acct_interim_interval"=>0, "coa_enabled"=>true, "coa_port"=>3799, "network"=>"default", "source_ip"=>"192.168.3.5"}, "dns_servers"=>["8.8.8.8", "4.4.4.4"], "dns_suffix"=>[".mist.local", ".mist.com"], "port_usages"=>{"ap"=>{"mode"=>"trunk", "all_networks"=>false, "stp_edge"=>true, "port_network"=>"mgmt", "mtu"=>9192, "networks"=>["guest", "corp"], "disabled"=>true, "description"=>"WAP"}, "uplink"=>{"mode"=>"trunk", "all_networks"=>true, "stp_edge"=>false, "port_network"=>nil, "enable_qos"=>false}, "iot"=>{"mode"=>"access", "stp_edge"=>true, "port_network"=>"default", "allow_dhcpd"=>true}, "default"=>{"mode"=>"access", "stp_edge"=>false, "port_network"=>"default"}, "disabled"=>{"disabled"=>true}, "dynamic"=>{"mode"=>"dynamic", "reset_default_when"=>"none", "rules"=>[{"src"=>"lldp_system_name", "expression"=>"[0:3]", "equals"=>"SENSOR", "usage"=>"iot"}, {"src"=>"lldp_chassis_id", "expression"=>"[0:17]", "equals_any"=>["00:11:22:33:44:55", "00:11:22:33:44:66", "00:11:22:33:44:77"], "usage"=>"iot"}, {"src"=>"radius_username", "expression"=>"[0:3]", "equals"=>"SENSOR", "usage"=>"iot"}]}, "user"=>{"mode"=>"access", "stp_edge"=>true, "port_auth"=>"dot1x", "enable_mac_auth"=>false, "mac_auth_protocol"=>"eap-md5", "guest_network"=>nil, "bypass_auth_when_server_down"=>false}}, "switch_matching"=>{"enable"=>true, "rules"=>[{"name"=>"match by name", "match_name"=>{"0:3"=>"abc"}, "match_model"=>"EX4300", "port_config"=>{"ge-0/0/0"=>{"usage"=>"uplink"}, "ge-0/0/8-16,ge-1/0/0-47"=>{"usage"=>"ap"}, "*"=>{"usage"=>"default"}}, "additional_config_cmds"=>["set snmp community public"], "port_mirroring"=>{"port_mirror"=>{"input_port_ids_ingress"=>["ge-0/0/4"], "input_networks_ingress"=>["test"], "input_port_ids_egress"=>["ge-0/0/5", "ge-0/0/6"], "output_port_id"=>"ge-0/0/3"}, "port_mirror_test"=>{"input_port_ids_ingress"=>["ge-0/0/3"], "input_networks_ingress"=>["iot"], "input_port_ids_egress"=>["ge-0/0/22", "ge-0/0/21"], "output_port_id"=>"ge-0/0/4"}}, "switch_mgmt"=>{"config_revert_timer"=>5, "dhcp_option_fqdn"=>false, "use_mxedge_proxy"=>true, "mxedge_proxy_host"=>"1.1.1.1", "mxedge_proxy_port"=>2222, "ap_affinity_threshold"=>10, "cli_idle_timeout"=>20, "cli_banner"=>"\t\tW A R N I N G !!!!!!!", "local_accounts"=>{"user1"=>{"role"=>"admin", "password"=>"Juniper123"}}}}, {"name"=>"match by role", "match_role"=>"access", "port_config"=>{"ge-0/0/0"=>{"usage"=>"uplink"}}, "additional_config_cmds"=>["set snmp community public2"]}]}, "snmp_config"=>{"enabled"=>true, "name"=>"TGH-1K-QFX10K", "location"=>"Las Vegas, NV", "description"=>"Juniper QFX Series Switch - 1K_5LA", "contact"=>"cns@juniper.net", "network"=>"default", "client_list"=>[{"client_list_name"=>"clist-1", "clients"=>["151.140.101.218/32", "151.140.2.179/32"]}], "views"=>[{"view_name"=>"all", "oid"=>"1.3.6.1", "include"=>true}], "engine_id"=>"local engine-id-suffix | use-default-ip-address | use-mac-address", "trap_groups"=>[{"group_name"=>"profiler", "categories"=>["link", "authentication"], "targets"=>["172.29.158.19", "172.29.146.73"], "version"=>"v2"}], "v2c_config"=>[{"community_name"=>"abc123", "authorization"=>"read-only", "view"=>"all"}, {"community_name"=>"abc1233", "client_list_name"=>"clist-1"}], "v3_config"=>{"usm"=>[{"engine_type"=>"remote_engine | local_engine", "remote_engine_id"=>"00:00:00:0b:00:00:70:10:6f:08:b6:3f <remote engine required only>", "users"=>[{"name"=>"m01620", "authentication_type"=>"authentication-md5 | authentication-sha | authentication-sha224 | authentication-sha256 | authentication-sha384 | authentication-sha512 | authentication-none", "authentication_password"=>"at least eight characters long, include alphabetic, numeric, and special characters, but it cannot include control characters. <Don't require if type is none>", "encryption_type"=>"privacy-aes128 | privacy-des | privacy-3des | privacy-none", "encryption_password"=>"at least eight characters long, include alphabetic, numeric, and special characters, but it cannot include control characters. <Don't require if type is none>"}]}], "vacm"=>{"access"=>[{"group_name"=>"group_name", "prefix_list"=>[{"type"=>"default_context_prefix | context_prefix", "context_prefix"=>"iil <needed only type is context_prefix>", "security_model"=>"any | usm | v1 | v2c", "security_level"=>"privacy | authentication | none", "notify_view"=>"all <refer to above view name>", "read_view"=>"all <refer to above view name>", "write_view"=>"all <refer to above view name>"}]}], "security_to_group"=>{"security_model"=>"usm | v1 | v2c", "content"=>[{"security_name"=>"security_name", "group"=>"group_name, <refer to above group_name under access>"}]}}, "notify"=>[{"name"=>"notify_name", "tag"=>"tag_name", "type"=>"trap | inform"}], "notify_filter"=>[{"profile_name"=>"notify_name", "contents"=>[{"oid"=>"1.3.6.1.4.1", "include"=>true}]}], "target_parameters"=>[{"name"=>"target_parameters_name", "notify_filter"=>"profile_name <refer to profile-name in notify-filter above>", "message_processing_model"=>"v1 | v2c | v3", "security_level"=>"authentication | none | privacy", "security_model"=>"usm | v1 | v2c", "security_name"=>"m01620 <refer to security_name in usm>"}], "target_address"=>[{"target_address_name"=>"target_address_name", "address"=>"address", "address_mask"=>"address_mask", "port"=>161, "tag_list"=>"tag name <refer to notify tag above, can be multiple with blank>", "target_parameters"=>"target_parameters <refer to notify target parameters name above>"}]}}}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring