Policy > Security > East West Security > Distributed Firewall > Settings > Drafts

Publish a draft

Read a draft and publish it by applying changes onto current configuration.
If there are additional changes on top of draft configuration, pass it as a
request body, in form of Infra object. Otherwise, if there are no additional
changes, then pass empty Infra object as a request body.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/drafts/<draft-id>?action=publish
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
Infra+

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/drafts/test_draft?action=publish 1. Request body if there are additional changes on top of draft configuration. { "resource_type": "Infra", "id": "infra", "display_name": "infra", "path": "/infra", "children": [ { "children": [ { "SecurityPolicy": { "logging_enabled": false, "resource_type": "SecurityPolicy", "id": "app-section-1", "display_name": "app-section-1", "path": "/infra/domains/default/security-policies/app-section-1", "children": [ { "Rule": { "action": "ALLOW", "resource_type": "Rule", "id": "rule_1", "display_name": "rule_1", "path": "/infra/domains/default/security-policies/app-section-1/rules/rule_1", "marked_for_delete": true, "overridden": false, "sequence_number": 1, "sources_excluded": false, "destinations_excluded": false, "source_groups": [ "/infra/domains/default/groups/d1" ], "destination_groups": [ "/infra/domains/default/groups/d2" ], "services": [ "ANY" ], "profiles": [ "ANY" ], "logged": true, "scope": [ "ANY" ], "disabled": false, "notes": "", "direction": "IN_OUT", "ip_protocol": "IPV4_IPV6", "is_default": false, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }, "resource_type": "ChildRule", "marked_for_delete": true, "mark_for_override": false, "_protection": "NOT_PROTECTED" } ], "marked_for_delete": true, "overridden": false, "sequence_number": 0, "category": "Application", "stateful": true, "tcp_strict": true, "locked": false, "scope": [ "ANY" ], "rule_count": 200, "is_default": false, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }, "resource_type": "ChildSecurityPolicy", "marked_for_delete": true, "mark_for_override": false, "_protection": "NOT_PROTECTED" } ], "target_type": "Domain", "resource_type": "ChildResourceReference", "id": "default", "marked_for_delete": false, "mark_for_override": false, "_protection": "NOT_PROTECTED" } ], "marked_for_delete": false, "overridden": false, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 } 2. Request body if there are no additional changes on top of draft configuration. { }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

policy_dfw

Additional Errors: