Add Rule In Section
Adds a new firewall rule in existing firewall section. Adding firewall rule to a section modifies parent section entity and simultaneous update (modify) operations on same section are not allowed to prevent overwriting stale content to firewall section. If a concurrent update is performed, HTTP response code 409 will be returned to the client operating on stale data. That client should retrieve the firewall section again and re-apply its update.
section-id
Identifier of the anchor rule or section. This is a required field in case operation like 'insert_before' and 'insert_after'.
Operation
{
"_self": {
"action": "string",
"href": "string",
"rel": "string"
},
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_revision": 0,
"_owner": {
"action": "string",
"href": "string",
"rel": "string"
},
"display_name": "string",
"id": "string",
"resource_type": "string",
"description": "string",
"is_default": false,
"direction": "string",
"rule_tag": "string",
"ip_protocol": "string",
"notes": "string",
"applied_tos": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string"
}
],
"logged": false,
"disabled": false,
"sources": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string"
}
],
"services": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string",
"service": {
"resource_type": "string"
}
}
],
"action": "string",
"sources_excluded": false,
"destinations_excluded": false,
"destinations": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string"
}
],
"section_id": "string"
}
OK
{
"_self": {
"action": "string",
"href": "string",
"rel": "string"
},
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"_revision": 0,
"_owner": {
"action": "string",
"href": "string",
"rel": "string"
},
"display_name": "string",
"id": "string",
"resource_type": "string",
"description": "string",
"is_default": false,
"direction": "string",
"rule_tag": "string",
"ip_protocol": "string",
"notes": "string",
"applied_tos": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string"
}
],
"logged": false,
"disabled": false,
"sources": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string"
}
],
"services": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string",
"service": {
"resource_type": "string"
}
}
],
"action": "string",
"sources_excluded": false,
"destinations_excluded": false,
"destinations": [
{
"target_display_name": "string",
"is_valid": false,
"target_id": "string",
"target_type": "string"
}
],
"section_id": "string"
}
Bad Request
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string",
"related_errors": [
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string"
}
]
}
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string",
"related_errors": [
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string"
}
]
}
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string",
"related_errors": [
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string"
}
]
}
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string",
"related_errors": [
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string"
}
]
}
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string",
"related_errors": [
{
"module_name": "string",
"error_message": "string",
"error_code": 0,
"details": "string"
}
]
}