Python-SDK sample code for network zones

Hi,

I’m struggling to find sample documentation of how to list all network zones, get information about a network zone and create a new network zone. I’m specifically interested in the feature where I can add ASN’s to a network zone object to be blocked. Can someone please provide some sample code that I can expand upon?

TIA

HI,

Can you try out the list_network_zones to see if you are able to fetch the list of all network zones. You can find out the related methods regarding Network zones in this file - okta-sdk-python/okta/resource_clients/network_zone_client.py at e9764a4b24d998b6240c4a1bb5cb2d577a03252e · okta/okta-sdk-python · GitHub