List network zones
Retrieves a paginated list of network zones across all types (IP and regional). Each item is discriminated by its type field. Optional query parameters may be used to search, filter, and sort the results.
API-KeyX-API-KEY<token>MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>
The page number to retrieve.
int321 <= value1The number of zones to return per page.
int321 <= value <= 5010Optional Lucene-style filter expression used to search by attributes.
Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - name, category, operator, type, creation_time and last_updated
Response Headers
200
Returns the x-Pagination header
Number of items returned per page.
int32The current page number.
int32Total number of items available.
int32Indicates whether a previous page exists.
Indicates whether a next page exists.
Response Body
application/json
The network zones were retrieved successfully
TypeScript Definitions
Use the response body type in TypeScript.
Returns an array. Each item has the fields below.
Network Zone Response: Represents a Network Zone (IP or Regional).
IP Network Zone Response: Represents a IP Network Zone.
Errors
curl -X GET "https://your-domain.us.monocloud.com/api/network_zones?page=1&size=10&filter=api&sort=creation_time%3A1" \ -H "X-API-KEY: <token>"[ { "id": "uSkOCE9ZEmYdWS7Kv223S", "enabled": true, "name": "Designation", "description": "Location of the Company Headquarters", "category": "trusted", "creation_time": 1640975400, "last_updated": 1640975400, "operator": "in", "type": "ip", "ip_ranges": [ "156.3.59.5", "2001:db8::/32" ] }]