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

Invoke import task

Invoke import task. There can be only one import task run at any point of
time. Hence invocation of another import task will be discarded, when there
exist an already running import task.

Request:

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

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/settings/firewall/import with form-data: "file" = "/exported_fw_configs/fw_config_apr2020.zip" "draft_display_name" = "imported_fw_config_apr2020" "draft_description" = "Import of fw_config_apr2020.zip" "passphrase" = "AA12!@bb"

Successful Response:

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

Example Response:

{ "id": "import_task", "status": "running", "description": "Import of fw_config_apr2020.zip", "draft_path": "/infra/drafts/imported_fw_config_apr2020" "failure_msg": null, "user": "admin", "start_time": 1587491995996 }

Required Permissions:

crud

Feature:

policy_dfw

Additional Errors: