GET
/
waap
/
v1
/
domains
/
{domain_id}
/
rule-sets
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
waap_rule_sets = client.waap.domains.list_rule_sets(
    0,
)
print(waap_rule_sets)
[
  {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "is_active": true,
    "tags": [
      {
        "id": 123,
        "name": "<string>",
        "description": "<string>"
      }
    ],
    "resource_slug": "<string>",
    "rules": []
  }
]

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

domain_id
integer
required

The domain ID

Response

200
application/json

Successful Response

The response is of type RuleSet · object[].

GET
/
waap
/
v1
/
domains
/
{domain_id}
/
rule-sets
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
waap_rule_sets = client.waap.domains.list_rule_sets(
    0,
)
print(waap_rule_sets)
[
  {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "is_active": true,
    "tags": [
      {
        "id": 123,
        "name": "<string>",
        "description": "<string>"
      }
    ],
    "resource_slug": "<string>",
    "rules": []
  }
]

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

domain_id
integer
required

The domain ID

Response

200
application/json

Successful Response

The response is of type RuleSet · object[].