List IP restrictions
less than a minute
GET
Use this endpoint to get a list of existing IP rules in your CertCentral account.https://www.digicert.com/services/v2/container/{{container_id}}/ip/rules
Example requests and responses
cURL
curl --request GET 'https://www.digicert.com/services/v2/container/{{container_id}}/ip/rules' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json'
200 OK
{
"ip_rules": [
{
"id": 1233,
"date_created": "2023-08-17T18:13:44+00:00",
"account_id": "1234",
"container_id": 1234,
"user_id": 0,
"ip_address": "192.0.2.0",
"ip_address_end": "192.0.2.5"
},
{
"id": 1234,
"date_created": "2023-08-17T18:14:44+00:00",
"account_id": "1234",
"container_id": 1234,
"user_id": 0,
"api_key_id": 1234,
"ip_address": "192.0.2.29",
"ip_address_end": "192.0.2.29"
}
]
}
Path parameters
| Name | Type | Description |
|---|---|---|
| container_id | integer | ID of the top-level account container (division). To get the ID of the top-level container in your account, use the List containers API endpoint. The top-level container is the container with a parent_id value of 0. |
Response parameters
| Name | Type | Description |
|---|---|---|
| .. ip_address | string | Starting IP address in allowed address range. |
| .. ip_address_end | string | Ending IP address in allowed address range. Alternately, if the rule restricts access to a single address, both ip_address and ip_address_end contain the same value (the allowed address). |
| .. description | string | Custom rule description. |
Was this page helpful?
Provide feedback