IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Updates a ruleset
editUpdates a ruleset
editDEPRECATED: Updates the ruleset with the definition. Deprecated in favor of traffic-filter endpoints.
Request
editPUT /api/v1/deployments/ip-filtering/rulesets/{ruleset_id}
Path parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
The mandatory ruleset ID |
Request body
edit(IpFilterRuleset
) (required) The ruleset definition
Responses
edit-
200
-
The ruleset definition was valid and the update has started
-
400
-
The ruleset definition contains errors (code: 'ip_filtering.ruleset_invalid')
-
449
-
elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"')
-
500
-
The request execution failed (code: 'ip_filtering.request_execution_failed')
Request example
editcurl -XPUT https://{{hostname}}/api/v1/deployments/ip-filtering/rulesets/{ruleset_id} \ -H "Authorization: ApiKey $ECE_API_KEY" \ -d ' { "associations" : [ { "entity_type" : "string", "id" : "string" } ], "description" : "string", "id" : "string", "name" : "string", "rules" : [ { "description" : "string", "id" : "string", "source" : "string" } ], "total_associations" : 0 } '