Create a ruleset
Creates a ruleset that consists of a set of rules.
Body Required
The specification for traffic filter ruleset.
-
Name of the ruleset
-
description string
Description of the ruleset
-
Type of the ruleset
-
Should the ruleset be automatically included in the new deployments
-
The ruleset can be attached only to deployments in the specific region
-
List of rules
POST /deployments/traffic-filter/rulesets
curl \
-X POST https://api.elastic-cloud.com/api/v1/deployments/traffic-filter/rulesets \
-d '{"name":"string","description":"string","type":"string","include_by_default":true,"region":"string","rules":[{"id":"string","remote_cluster_org_id":"string","remote_cluster_id":"string","description":"string","source":"string","azure_endpoint_name":"string","azure_endpoint_guid":"string","egress_rule":{"target":"string","ports":[42],"protocol":"all"}}]}'
Request examples
{
"name": "string",
"description": "string",
"type": "string",
"include_by_default": true,
"region": "string",
"rules": [
{
"id": "string",
"remote_cluster_org_id": "string",
"remote_cluster_id": "string",
"description": "string",
"source": "string",
"azure_endpoint_name": "string",
"azure_endpoint_guid": "string",
"egress_rule": {
"target": "string",
"ports": [
42
],
"protocol": "all"
}
}
]
}
Response examples (201)
{
"id": "string"
}
Response examples (500)
# Headers
x-cloud-error-codes: traffic_filter.request_execution_failed
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}