Skip to main content
POST
/
shield
/
shield-zone
/
{shieldZoneId}
/
access-lists
cURL
curl --request POST \
  --url https://api.bunny.net/shield/shield-zone/{shieldZoneId}/access-lists \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": 0,
  "content": "<string>",
  "description": "<string>",
  "checksum": "<string>"
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "type": 0,
    "content": "<string>",
    "checksum": "<string>",
    "entryCount": 123,
    "lastModified": "2023-11-07T05:31:56Z"
  },
  "error": {
    "statusCode": 100,
    "success": true,
    "message": "<string>",
    "errorKey": "<string>"
  }
}

Path Parameters

shieldZoneId
integer<int32>
required

The ID of the Shield Zone to which the Custom Access List will be associated.

Body

Request model for creating a new custom access list.

name
string | null
required

The display name for the new access list.

type
enum<integer>
required
Available options:
0,
1,
2,
3
content
string | null
required

The initial content for the access list with entries separated by newlines.

description
string | null

Optional description of the access list's purpose or contents.

checksum
string | null

SHA-256 checksum of the content for integrity verification. If null, it will be automatically calculated.

Response

OK

Response containing custom access list data or error information.

data
object

Represents a custom access list associated with a shield zone.

error
object

Generic response object containing status information for API operations.