Dynamic Rules
Get all Dynamic Rules in a configuration
Path parameters
configstringRequired
Responses
200
Dynamic Rules retrieved successfully
application/json
400
Input Error
application/json
500
Internal Server Error
application/json
get
/api/v4.0/conf/{config}/dynamic-rulesGET /api/v4.0/conf/{config}/dynamic-rules HTTP/1.1
Host:
Accept: */*
{
"total": 1,
"items": [
{
"action": "text",
"active": true,
"description": "",
"id": "text",
"include": {
"relation": "OR",
"tags": [
"text"
]
},
"exclude": {
"relation": "OR",
"tags": [
"text"
]
},
"name": "text",
"offload_ip_filtering": true,
"tags": [
"text"
],
"target": "text",
"threshold": 1,
"timeframe": 1,
"ttl": 1
}
]
}Get a Dynamic Rule from the specified configuration
Path parameters
configstringRequired
entry_idstringRequired
Responses
200
Dynamic Rule retrieved successfully
application/json
400
Input Error
application/json
422
Validation Error
application/json
500
Internal Server Error
application/json
get
/api/v4.0/conf/{config}/dynamic-rules/{entry_id}GET /api/v4.0/conf/{config}/dynamic-rules/{entry_id} HTTP/1.1
Host:
Accept: */*
{
"action": "text",
"active": true,
"description": "",
"id": "text",
"include": {
"relation": "OR",
"tags": [
"text"
]
},
"exclude": {
"relation": "OR",
"tags": [
"text"
]
},
"name": "text",
"offload_ip_filtering": true,
"tags": [
"text"
],
"target": "text",
"threshold": 1,
"timeframe": 1,
"ttl": 1
}Update an individual Dynamic Rule within a configuration
Path parameters
configstringRequired
entry_idstringRequired
Body
actionstringRequired
activebooleanRequired
descriptionstringOptionalDefault:
""idstringRequiredPattern:
Unique id
^[A-Za-z0-9\-\_]*$namestringRequired
offload_ip_filteringbooleanRequired
tagsstring[]Optional
targetstringRequired
thresholdintegerRequired
timeframeintegerRequired
ttlintegerRequired
Responses
200
Dynamic Rule updated successfully
application/json
400
Input Error
application/json
422
Validation Error
application/json
500
Internal Server Error
application/json
put
/api/v4.0/conf/{config}/dynamic-rules/{entry_id}PUT /api/v4.0/conf/{config}/dynamic-rules/{entry_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 258
{
"action": "text",
"active": true,
"description": "",
"id": "text",
"include": {
"relation": "OR",
"tags": [
"text"
]
},
"exclude": {
"relation": "OR",
"tags": [
"text"
]
},
"name": "text",
"offload_ip_filtering": true,
"tags": [
"text"
],
"target": "text",
"threshold": 1,
"timeframe": 1,
"ttl": 1
}{
"message": "Successfully updated entry"
}Create an individual Dynamic Rule within a configuration
Path parameters
configstringRequired
entry_idstringRequiredPattern:
^[A-Za-z0-9\-\_]*$Body
actionstringRequired
activebooleanRequired
descriptionstringOptionalDefault:
""idstringRequiredPattern:
Unique id
^[A-Za-z0-9\-\_]*$namestringRequired
offload_ip_filteringbooleanRequired
tagsstring[]Optional
targetstringRequired
thresholdintegerRequired
timeframeintegerRequired
ttlintegerRequired
Responses
201
Dynamic Rule created successfully
application/json
400
Input Error
application/json
422
Validation Error
application/json
500
Internal Server Error
application/json
post
/api/v4.0/conf/{config}/dynamic-rules/{entry_id}POST /api/v4.0/conf/{config}/dynamic-rules/{entry_id} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 258
{
"action": "text",
"active": true,
"description": "",
"id": "text",
"include": {
"relation": "OR",
"tags": [
"text"
]
},
"exclude": {
"relation": "OR",
"tags": [
"text"
]
},
"name": "text",
"offload_ip_filtering": true,
"tags": [
"text"
],
"target": "text",
"threshold": 1,
"timeframe": 1,
"ttl": 1
}{
"message": "Successfully created entry"
}Delete an individual Dynamic Rule from the specified configuration
Path parameters
configstringRequired
entry_idstringRequired
Responses
200
Dynamic Rule deleted successfully
application/json
400
Input Error
application/json
422
Validation Error
application/json
500
Internal Server Error
application/json
delete
/api/v4.0/conf/{config}/dynamic-rules/{entry_id}DELETE /api/v4.0/conf/{config}/dynamic-rules/{entry_id} HTTP/1.1
Host:
Accept: */*
{
"message": "Successfully deleted entry"
}Last updated
Was this helpful?