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.

Global API Key Authentication
Retrieve an IP ACL by Id
GET/api/ip-acl/{ipAccessControlListId}
OpenAPI Spec

Path Parameters#

ipAccessControlListId
  • Type: UUID
  • Required

The unique Id of the IP ACL to retrieve.

Response#

Response Codes
CodeDescription
200The request succeeded. The response contains a JSON body.
400The 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.
401FusionAuth 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.
404The object you requested doesn't exist. The response is empty.
500FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is empty.

Response Body#

ipAccessControlLists
  • Type: Array

The list of all IP ACLs

ipAccessControlList.entries
  • Type: Array

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
  • Type: String

The action to take for this IP Range.

ipAccessControlList.entries[x].endIPAddress
  • Type: String

The ending IP (IPv4) for this range.

ipAccessControlList.entries[x].startIPAddress
  • Type: String

The starting IP (IPv4) for this range.

ipAccessControlList.name
  • Type: String

The unique name of this IP ACL.

Example IP ACL response JSON
{
  "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
  }
}