/rest/networkconf - Add VPN
POST {{url}}/proxy/network/api/s/{{site}}/rest/networkconf
Returns a list of all the project entities associated with your company.
Note:
- officeLocationId
will only be present if the project is associated with an Office Location.
- modelIds
will contain an array of the Model entities currently associated with the project. These can be retrieved with the GET /models/{id}
action discussed later.
- pins
contains a url which can be used with the GET /projects/{id}/pins
action to retrieve the library and channel ids for the sources that are pinned to the Project.
Output:
```json
{
type
: object
,
properties
: {
projectId
: {
type
: string
},
name
: {
type
: string
},
analytics
: {
type
: boolean
},
officeLocationId
: {
type
: string
},
phase
: {
type
: string
,
enum
: [Active
, On Hold
, Archived
]
},
designPhase
: {
type
: string
,
enum
: [",
SD,
DD,
CD,
CA]
},
modelIds: {
type:
array,
items: {
type:
string
}
},
pins: {
type:
object,
properties: {
href: {
type:
string
}
}
}
},
required: [
name,
analytics,
phase,
designPhase"]
}
Request Body
{"enabled"=>true, "name"=>"asdf", "purpose"=>"site-vpn", "remote_vpn_subnets"=>["1.1.1.0/24"], "route_distance"=>30, "vpn_type"=>"ipsec-vpn", "ipsec_dh_group"=>14, "ipsec_dynamic_routing"=>true, "ipsec_encryption"=>"aes128", "ipsec_esp_dh_group"=>14, "ipsec_hash"=>"sha1", "ipsec_interface"=>"wan", "ipsec_ike_dh_group"=>14, "ipsec_key_exchange"=>"ikev1", "ipsec_local_ip"=>"1.1.1.1", "ipsec_peer_ip"=>"2.2.2.2", "ipsec_pfs"=>true, "ipsec_profile"=>"customized", "x_ipsec_pre_shared_key"=>"iYfQhbRwV+Zdjt/xg//e7Gi5KXLtOw/t"}