Skip to content

Activate a network zone

Request

OAuth 2.0 scope:
  • okta.networkZones.manage

Activates a Network Zone by zoneId

Path
zoneIdstringrequired

id of the Network Zone

Example:nzowc1U5Jh5xuAK0o0g3
curl -i -X POST \
  https://subdomain.okta.com/api/v1/zones/nzowc1U5Jh5xuAK0o0g3/lifecycle/activate

Responses

Success

Bodyapplication/json
createdstring, (date-time)read-only

Timestamp when the object was created

idstringread-only

Unique identifier for the Network Zone

lastUpdatedstring, (date-time)read-only

Timestamp when the object was last modified

namestring, <= 128 charactersrequired

Unique name for this Network Zone

statusstring(NetworkZoneStatus)

Network Zone status

Enum:"ACTIVE""INACTIVE"
systembooleanread-only

Indicates a system Network Zone:

  • true for system Network Zones
  • false for custom Network Zones

The Okta org provides the following default system Network Zones:

  • LegacyIpZone
  • BlockedIpZone
  • DefaultEnhancedDynamicZone
  • DefaultExemptIpZone

Admins can modify the name of the default system Network Zone and add up to 5000 gateway or proxy IP entries.

typestring(NetworkZoneType)required

The type of Network Zone

Enum:"DYNAMIC""IP""DYNAMIC_V2"
Discriminator
usagestring(NetworkZoneUsage)

The usage of the Network Zone

Enum:"BLOCKLIST""POLICY"
useAsExemptListboolean

You can only use this parameter when making a request to the Replace the network zone endpoint (/api/v1/zones/{zoneId}). Set this parameter to true in your request when you update the DefaultExemptIpZone to allow IPs through the blocklist.

gatewaysArray of objects(NetworkZoneAddress)

The IP addresses (range or CIDR form) for an IP Network Zone. The maximum array length is 150 entries for admin-created IP zones, 1000 entries for IP blocklist zones, and 5000 entries for the default system IP Zone.

proxiesArray of objects or null(NetworkZoneAddress)

The IP addresses (range or CIDR form) that are allowed to forward a request from gateway addresses for an IP Network Zone. These proxies are automatically trusted by Threat Insights and used to identify the client IP of a request. The maximum array length is 150 entries for admin-created zones and 5000 entries for the default system IP Zone.

Response
{ "type": "IP", "id": "nzowc1U5Jh5xuAK0o0g3", "name": "MyIpZone", "status": "ACTIVE", "usage": "POLICY", "created": "2021-06-24T20:37:32.000Z", "lastUpdated": "2021-06-24T20:37:32.000Z", "system": false, "gateways": [ { … } ], "proxies": [ { … } ], "_links": { "self": { … }, "deactivate": { … } } }