Delete Waiting Room Rule
waiting_rooms.rules.delete(strrule_id, RuleDeleteParams**kwargs) -> SyncSinglePage[WaitingRoomRule]
DELETE/zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules/{rule_id}
Deletes a rule for a waiting room.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Delete Waiting Room Rule
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
page = client.waiting_rooms.rules.delete(
rule_id="25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
page = page.result[0]
print(page.id){
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"id": "25756b2dfe6e378a06b033b670413757",
"action": "bypass_waiting_room",
"description": "allow all traffic from 10.20.30.40",
"enabled": true,
"expression": "ip.src in {10.20.30.40}",
"last_updated": "2014-01-01T05:20:00.12345Z",
"version": "1"
}
],
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"id": "25756b2dfe6e378a06b033b670413757",
"action": "bypass_waiting_room",
"description": "allow all traffic from 10.20.30.40",
"enabled": true,
"expression": "ip.src in {10.20.30.40}",
"last_updated": "2014-01-01T05:20:00.12345Z",
"version": "1"
}
],
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}