IP Allowlist
Use these operations to interact with the IP allowlist in Cortex.
Required permissions
Your API key must have the Configure IP allowlist permission.
Operations
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Number of results to return per page, between 1 and 1000. Default 250.
250Page number to return, 0-indexed. Default 0.
0Successfully retrieved IP allowlist
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/ip-allowlist?pageSize=250&page=0 HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": [
{
"address": "10.0.0.1",
"description": "text"
}
],
"page": 1,
"total": 1,
"totalPages": 1
}All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Successfully validated allowlist
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/ip-allowlist/validate HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"entries": [
{
"address": "10.0.0.1",
"description": "text"
}
]
}{
"address": "10.0.0.1",
"description": "text",
"valid": true
}All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
When true, entries will be updated even if the list doesn't contain the requestor's IP address
Successfully replaced allowlist
Bad Request
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
PUT /api/v1/ip-allowlist HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"entries": [
{
"address": "10.0.0.1",
"description": "text"
}
]
}{
"entries": [
{
"address": "10.0.0.1",
"description": "text"
}
],
"page": 1,
"total": 1,
"totalPages": 1
}Last updated
Was this helpful?