updateOrgGatewayTemplate
PUT https://{{host}}/api/v1/orgs/:org_id/gatewaytemplates/:gatewaytemplate_id
Request Body
{"name"=>"xxx", "type"=>"standalone", "port_config"=>{"ge-0/0/0"=>{"usage"=>"wan", "name"=>"wan0", "wan_type"=>"broadband", "ip_config"=>{"type"=>"dhcp", "pppoe_auth"=>"none", "pppoe_username"=>"u13534", "pppoe_password"=>"foryoureyesonly"}, "wan_ext_ip"=>"64.2.4.3", "wan_source_nat"=>{"nat_pool"=>"64.2.4.0/30", "disabled"=>false}, "vpn_paths"=>{"dc1-broadband.data-center"=>{"role"=>"spoke", "bfd_profile"=>"lte"}}, "traffic_shaping"=>{"enabled"=>true, "max_tx_kbps"=>3000}, "pci_address"=>"0000:02:00.0"}, "cl-1/0/0"=>{"usage"=>"wan", "name"=>"lte", "wan_type"=>"lte", "lte_apn"=>"5ginternet", "lte_auth"=>"none", "lte_username"=>"user1", "lte_password"=>"pass", "ip_config"=>{"type"=>"dhcp"}}, "at-1/0/0"=>{"usage"=>"wan", "name"=>"dsl", "wan_type"=>"dsl", "dsl_type"=>"pppoe", "dsl_config"=>{"pppoe_auth"=>"none", "pppoe_username"=>"u13534", "pppoe_password"=>"foryoureyesonly"}, "ip_config"=>{"type"=>"dhcp"}}, "ge-0/0/1-5"=>{"usage"=>"lan", "networks"=>["default", "guest", "pos"], "port_network"=>"default"}, "ge-0/0/0.5"=>{"usage"=>"wan", "name"=>"mpls", "vlan_id"=>5, "ip_config"=>{"type"=>"dhcp"}, "vpn_paths"=>{"dc1-mpls.data-center"=>{"role"=>"spoke"}}}}, "ip_configs"=>{"guest"=>{"ip"=>"192.168.70.1", "netmask"=>"/24"}}, "dhcpd_config"=>{"guest"=>{"type"=>"relay", "ip_start"=>"192.168.70.100", "ip_end"=>"192.168.70.200", "gateway"=>"192.168.70.1", "dns_servers"=>["8.8.8.8", "4.4.4.4"], "dns_suffix"=>[".mist.local", ".mist.com"], "servers"=>["11.2.3.4"]}}, "urlfilter_config"=>{"enabled"=>"true", "profile"=>"default", "blocked_categories"=>["adult", "gaming", "violance"], "networks"=>{"guest"=>{"profile"=>"default"}, "iot"=>{"profile"=>"strict"}}}, "path_preferences"=>{"dc_path"=>{"strategy"=>"ordered", "paths"=>[{"type"=>"vpn", "name"=>"dc1-broadband.data-center", "cost"=>10}, {"type"=>"vpn", "name"=>"dc1-mpls.data-center"}, {"type"=>"vpn", "name"=>"dc2-broadband.data-center"}]}, "local_path"=>{"strategy"=>"ecmp", "paths"=>[{"type"=>"wan", "name"=>"wan0"}, {"type"=>"wan", "name"=>"lte"}, {"type"=>"vpn", "name"=>"dc1-mpls.data-center", "internet_access"=>true}]}, "local_breakout"=>{"paths"=>[{"type"=>"tunnel", "name"=>"zscalar", "wan_name"=>"wan0"}, {"type"=>"wan", "name"=>"wan0"}]}, "customized"=>{"paths"=>[{"type"=>"local", "networks"=>["guest"], "gateway_ip"=>"192.168.30.5", "target_ips"=>["30.1.2.5"]}]}}, "tunnel_configs"=>{"zscalar"=>{"provider"=>"zscaler-ipsec", "local_id"=>"{{ SITE_LOCAL_ID }}", "psk"=>"{{ SITE_PRESHARED_KEY }}", "primary"=>{"hosts"=>["63.1.5.3"]}, "secondary"=>{"hosts"=>["63.1.5.3"]}}, "zscalar-gre"=>{"provider"=>"zscaler-gre", "primary"=>{"ips"=>["216.66.5.49"], "intern_ips"=>["172.18.58.121"], "probe_ips"=>["172.18.58.122"]}, "secondary"=>{"ips"=>["199.168.149.179"], "intern_ips"=>["172.18.58.125"], "probe_ips"=>["172.18.58.126"]}}, "amazon-tgw"=>{"provider"=>"amazon"}, "custom_ipsec"=>{"provider"=>"custom", "protocol"=>"ipsec", "local_id"=>"{{ SITE_LOCAL_ID }}", "psk"=>"{{ SITE_PRESHARED_KEY }}", "primary"=>{"hosts"=>["63.1.5.3"]}, "secondary"=>{"hosts"=>["63.1.5.3"]}, "version"=>"2", "ike_proposals"=>[{"auth_algo"=>"sha2", "enc_algo"=>"aes256", "dh_group"=>"2"}], "ike_lifetime"=>3600, "ipsec_proposals"=>[{"auth_algo"=>"sha2", "enc_algo"=>"aes256", "dh_group"=>"2"}], "ipsec_lifetime"=>1800, "probe"=>{"type"=>"icmp", "interval"=>120, "threshold"=>3, "timeout"=>20}}}, "service_policies"=>[{"name"=>"DC-APPs", "tenants"=>["pos.store", "camera.store"], "services"=>["dc-apps"], "action"=>"allow", "idp"=>{"enabled"=>true, "profile"=>"strict", "alert_only"=>false}, "path_preference"=>"dc_path"}, {"servicepolicy_id"=>"dbdf808a-5429-51b7-89ac-1b52d7a4b4b5", "name"=>"Cloud Apps", "tenants"=>["pos.store", "camera.store"], "services"=>["cloud-apps"], "path_preference"=>"local_path"}, {"name"=>"Guest", "tenants"=>["guest"], "service"=>["internet"], "path_preference"=>"local_breakout"}, {"name"=>"Mgmt from DC", "tenants"=>["it.datacenter"], "services"=>["store_servers"], "path_preference"=>"customized"}, {"name"=>"local routing", "tenants"=>["corp", "vendor"], "services"=>["ping"], "local_routing"=>true}], "bgp_config"=>{"local"=>{"type"=>"internal", "networks"=>["corp"], "local_as"=>65000, "auth_key"=>"auth-key", "export_policy"=>"export_policy", "import_policy"=>"import_policy"}, "attlink"=>{"type"=>"external", "via"=>"wan", "wan_name"=>"wan0", "networks"=>["corp"], "local_as"=>3000, "neighbor_as"=>3105, "auth_key"=>"auth-key", "bfd_minimum_interval"=>1000, "hold_time"=>120, "graceful_restart_time"=>240, "neighbors"=>{"63.1.56.3"=>{"neighbor_as"=>500, "multihop_ttl"=>64, "export_policy"=>"neighbor_specific_export_policy", "import_policy"=>"neighbor_specific_import_policy", "hold_time"=>120}}, "export_policy"=>"export_policy", "import_policy"=>"import_policy"}}, "routing_policies"=>{"sample_import_policy"=>{"terms"=>[{"matching"=>{"prefix"=>["192.168.0.0/16-30"], "as_path"=>["65001,65353"], "protocol"=>["direct"], "community"=>["65001:2"]}, "actions"=>{"accept"=>true, "local_preference"=>"50, // optional,local_preference can be changed"}}]}, "sample_export_policy"=>{"terms"=>[{"name"=>"export", "matching"=>{"prefix"=>["192.168.0.0/16-30"], "as_path"=>["65001", "65353"], "protocol"=>["direct"], "community"=>["65001:2"], "route_exists"=>{"route"=>"192.168.0.0/24", "vrf_name"=>"guest"}}, "actions"=>{"accept"=>true, "community"=>["65003:10"], "prepend_as_path"=>["65003"], "exclude_as_path"=>["65002"], "local_preference"=>"30"}}]}}, "extra_routes"=>{"it_mgmt"=>{"via"=>"10.2.1.1"}, "172.16.3.0/24"=>{"via"=>"10.2.1.1"}}, "gateway_matching"=>{"enable"=>true}, "snmp_config"=>{"contact"=>"\"cns@juniper.net\"", "client_list"=>[{"client_list_name"=>"clist-1", "clients"=>["151.140.101.218/32", "151.140.2.179/32"]}], "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"}, {"community_name"=>"abc1233", "client_list_name"=>"clist-1"}], "v3_config"=>{"remote-engine"=>{"engine-id"=>"00:00:00:0b:00:00:70:10:6f:08:b6:3f", "users"=>[{"m01620"=>{"authentication-sha"=>{"authentication-key"=>"\"$9$cBYSKMNdb4oGSr4aGU.mFn/9A0cylKvL69lKvW-d5Qz3tuhSrlM8IRclKvLXVwY4GD5QFCA0ZUuO1RleWLx-VY4aZDjq4oZjqmTQEcSr8XN-wJUjreoJ\""}, "privacy-aes128"=>{"privacy-key"=>"\"$9$bVw4aik.Qz6wYQF6/0OcylevLbs24oGre24oJHkIEhSM8VwY2aZN-b24oGUqmfQ69IEcKvLn/8X7-2gJGDHqfQFn9CuQz\""}}}]}}}, "additional_config_cmds"=>["set snmp community public2"]}