Retrieve an IP ACL API
On this page
This API is used to retrieve a single IP ACL by unique Id.
Request#
Provide the IP ACL Id on the URI to retrieve that IP ACL.
OpenAPI Spec
Path Parameters#
ipAccessControlListIdThe unique Id of the IP ACL to retrieve.
Response#
| Code | Description |
|---|---|
| 200 | The request succeeded. The response contains a JSON body. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 404 | The object you requested doesn't exist. The response is empty. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is empty. |
Response Body#
ipAccessControlListsThe list of all IP ACLs
ipAccessControlList.entries A list of IP ranges and the action to apply for each. One and only one entry will have a startIPAddress of * to indicate the default action of the IP ACL.
ipAccessControlList.entries[x].action The action to take for this IP Range.
ipAccessControlList.entries[x].endIPAddress The ending IP (IPv4) for this range.
ipAccessControlList.entries[x].startIPAddress The starting IP (IPv4) for this range.
ipAccessControlList.name The unique name of this IP ACL.
{
"ipAccessControlList": {
"name": "Block two specific ranges",
"entries": [
{
"action": "Allow",
"startIPAddress": "*"
},
{
"action": "Block",
"startIPAddress": "76.104.0.0",
"endIPAddress": "76.104.255.255"
},
{
"action": "Block",
"startIPAddress": "71.205.0.0",
"endIPAddress": "71.205.255.255"
}
],
"id": "2d9f1c45-725a-4718-b631-b40b7180dbf5",
"insertInstant": 1628887035851,
"lastUpdateInstant": 1628887035851
}
}Related
API documentation for the FusionAuth Create an IP ACL API.
API documentation for the FusionAuth Delete an IP ACL API.
Learn about the APIs for creating, retrieving, updating and deleting IP Access Control Lists.
API documentation for the FusionAuth Search for IP ACLs API.