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>"
}
}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>"
}
}The ID of the Shield Zone to which the Custom Access List will be associated.
Request model for creating a new custom access list.
The display name for the new access list.
0, 1, 2, 3 The initial content for the access list with entries separated by newlines.
Optional description of the access list's purpose or contents.
SHA-256 checksum of the content for integrity verification. If null, it will be automatically calculated.
Was this page helpful?