Get IP restriction
curl --request GET \
--url https://{your-subdomain}.neetoform.com/api/external/v2/ip_restriction \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/ip_restriction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/ip_restriction"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"is_ip_restriction_enabled": true,
"allowed_ip_ranges": [
{
"id": "9e2c5b1a-3d4f-4a6b-8c7d-0e1f2a3b4c5d",
"address_type": "ipv4",
"ip_start": "10.0.0.1",
"ip_end": "10.0.0.255"
}
]
}IP restriction
Get IP restriction
Get whether IP restriction is on and the allowed IP ranges, most recently changed first.
GET
/
ip_restriction
Get IP restriction
curl --request GET \
--url https://{your-subdomain}.neetoform.com/api/external/v2/ip_restriction \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/ip_restriction', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/ip_restriction"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"is_ip_restriction_enabled": true,
"allowed_ip_ranges": [
{
"id": "9e2c5b1a-3d4f-4a6b-8c7d-0e1f2a3b4c5d",
"address_type": "ipv4",
"ip_start": "10.0.0.1",
"ip_end": "10.0.0.255"
}
]
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Response
200 - application/json
OK - Request succeeded
Whether the workspace only accepts traffic from the allowed IP ranges.
Example:
true
Allowed IP ranges, most recently changed first.