Replace a Network Zone
PUT {{baseUrl}}/api/v1/zones/:zoneId
Replaces a network zone by zoneId
. The replaced network zone type must be the same as the existing type.
You may replace the usage (POLICY
, BLOCKLIST
) of a network zone by updating the usage
attribute.
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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
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":{}}}