Create ruleset association
Applies the ruleset to the specified deployment.
Path parameters
-
ruleset_id
string Required The mandatory ruleset ID.
Body
Required
Mandatory ruleset association description
-
entity_type
string Required Type of the traffic filter ruleset association, such as 'deployment', 'cluster'
-
id
string Required ID of the entity, such as the deployment ID or Elasticsearch cluster ID.
Responses
-
200 application/json
Create association request was valid and the association already exists
-
201 application/json
Create association request was valid and the association has been created
-
404 application/json
The traffic filter ruleset specified by {ruleset_id} cannot be found. (code:
traffic_filter.not_found
) -
500 application/json
Creation failed. (code:
traffic_filter.request_execution_failed
)
POST
/deployments/traffic-filter/rulesets/{ruleset_id}/associations
curl \
--request POST 'https://api.elastic-cloud.com/api/v1/deployments/traffic-filter/rulesets/{ruleset_id}/associations' \
--header "Content-Type: application/json" \
--data '{"entity_type":"string","id":"string"}'