PATCH
/
waap
/
v1
/
domains
/
{domain_id}
/
advanced-rules
/
{rule_id}
/
{action}
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
client.waap.domains.advanced_rules.toggle(
    action="enable",
    domain_id=0,
    rule_id=0,
)
This response does not have an example.

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

domain_id
integer
required

The domain ID

action
enum<string>
required

Enable or disable an advanced rule

Available options:
enable,
disable
rule_id
integer
required

The advanced rule ID

Response

204

Successful Response