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

Cancel a running import task

This operation cancels an import task. Task needs to be in running state.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/settings/firewall/import?action=cancel
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/settings/firewall/import?action=cancel

Successful Response:

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

Example Response:

{ "id": "import_task", "status": "canceled", "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: