Policy > Security > East West Security > Distributed Firewall > Task

Invoke export task

Invoke export task. There can be only one export task run at any point of
time. Hence invocation of another export task will be discarded, when there
exist an already running export task.
Exported configuration will be in a CSV format. This CSV file will be zipped
into a ZIP file, that can be downloaded after the completion of export task.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/settings/firewall/export
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ExportRequestParameter+

Example Request:

1. Export of current firewall configuration, POST https://<policy-mgr>/policy/api/v1/infra/settings/firewall/export { "passphrase": "AA12!@bb" } 2. Export of the draft, POST https://<policy-mgr>/policy/api/v1/infra/settings/firewall/export { "passphrase": "AA12!@bb", "draft_path": "/infra/drafts/draft1" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ExportTask+

Example Response:

1. Export of current firewall configuration, { "id": "export_task", "status": "running", "description": "Export of the current firewall configuration.", "exported_file": "fw_config_apr2020.zip", "failure_msg": null, "user": "admin", "start_time": 1587491995996 } 2. Export of the draft, { "id": "export_task", "status": "running", "description": "Export of the draft /infra/drafts/draft1", "exported_file": "draft1.zip", "failure_msg": null, "user": "admin", "start_time": 1587491995996 }

Required Permissions:

read

Feature:

policy_dfw

Additional Errors: