Create a Network Zone

POST {{baseUrl}}/api/v1/zones

Creates a new network zone. * At least one of either the gateways attribute or proxies attribute must be defined when creating a Network Zone. * At least one of the following attributes must be defined: proxyType, locations, or asns.

Request Body

{"asns"=>["aliqua nostrud quis culpa", "sed amet ut nisi"], "gateways"=>[{"type"=>"CIDR", "value"=>"dol"}, {"type"=>"CIDR", "value"=>"officia dolor"}], "locations"=>[{"country"=>"US", "region"=>"US-CA"}, {"country"=>"US", "region"=>"US-CA"}], "name"=>"newNetworkZone", "proxies"=>[{"type"=>"CIDR", "value"=>"reprehenderit qui labore"}, {"type"=>"CIDR", "value"=>"sunt cupidatat pariatur dolor"}], "proxyType"=>"ANY", "status"=>"ACTIVE", "system"=>true, "type"=>"IP", "usage"=>"BLOCKLIST"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"asns":["fugiat","elit laboris ut nisi adipisicing"],"created":"1996-08-11T21:00:29.376Z","gateways":[{"type":"CIDR","value":"est mollit do exercitation"},{"type":"CIDR","value":"minim"}],"id":"ut cupidatat","lastUpdated":"1963-10-22T21:38:21.928Z","locations":[{"country":"US","region":"US-CA"},{"country":"US","region":"US-CA"}],"name":"newNetworkZone","proxies":[{"type":"CIDR","value":"Ut ut aliqua in ea"},{"type":"CIDR","value":"sint"}],"proxyType":"ANY","status":"ACTIVE","system":true,"type":"IP","usage":"BLOCKLIST","_links":{"eiusmod_9":{},"in_5":{},"velit_26":{}}}