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

Create or Update PolicyFirewallScheduler

Updates a PolicyFirewallScheduler, which can be set at security policy.
Note that at least one property out of "days", "start_date",
"time_interval", "end_date" is required if "recurring" field is true. Also
"start_time" and "end_time" should not be present. And if "recurring"
field is false then "start_date" and "end_date" is mandatory, "start_time"
and "end_time" is optional. Also the fields "days" and "time_interval"
should not be present.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/firewall-schedulers/<firewall-scheduler-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
PolicyFirewallScheduler+

Example Request:

PUT https://<policy-mgr>/api/v1/infra/firewall-schedulers/testPolicyFirewallScheduler { "resource_type":"PolicyFirewallScheduler", "display_name":"testPolicyFirewallScheduler", "description":"Test Policy Firewall Scheduler", "days": [ "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY" ], "time_interval": [{ "start_interval":"09:00", "end_interval":"17:00" }], "start_date": "2/22/2019", "end_date": "12/22/2019", "timezone": "LOCAL", "recurring": true }

Successful Response:

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

Required Permissions:

crud

Feature:

policy_firewall_scheduler

Additional Errors: