Create ruleset association
Applies the ruleset to the specified deployment.
Path parameters
-
The mandatory ruleset ID.
Body Required
Mandatory ruleset association description
-
Type of the traffic filter ruleset association, such as 'deployment', 'cluster'
-
ID of the entity, such as the deployment ID or Elasticsearch cluster ID.
Responses
-
Create association request was valid and the association already exists
Additional properties are allowed.
-
Create association request was valid and the association has been created
Additional properties are allowed.
-
The traffic filter ruleset specified by {ruleset_id} cannot be found. (code:
traffic_filter.not_found
) -
Creation failed. (code:
traffic_filter.request_execution_failed
)
POST /deployments/traffic-filter/rulesets/{ruleset_id}/associations
curl \
-X POST https://{{hostname}}/api/v1/deployments/traffic-filter/rulesets/{ruleset_id}/associations \
-d '{"entity_type":"string","id":"string"}'
Request examples
{
"entity_type": "string",
"id": "string"
}
Response examples (200)
{}
Response examples (201)
{}
Response examples (404)
# Headers
x-cloud-error-codes: traffic_filter.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (500)
# Headers
x-cloud-error-codes: traffic_filter.request_execution_failed
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}