Access hours to API Proxy can be determined by defining access days or a time interval with the Time Restriction policy.
Apinizer ensures that access to the Backend API is made only within the given time interval(s), it prevents access outside of this interval.
The picture below shows the policy settings:
The policy fields are shown in the table below.
Field
Description
Name
The name can be written to facilitate the use and management of the policy. You will need this name during the management and selection of policies.
Description
A description can be written to facilitate the use and management of the policy.
Name
The name to be given to the rule, for example New Year's Eve, Eid Holiday..etc.
Zone ID
Timezone information of when the rule will executed. For example +03:00.
Week Days
The day(s) on which the start and end times will be applied are selected.
Custom Day
If the rule to be applied will be executed only for a special day, the relevant day information
Whole Day
If selected, it specifies that the rule is valid for all day on the selected day, otherwise the specific time period must be entered.
From
The start time to be applied on the selected days is entered in the hour, minute and second fields.
To
The end time to be applied on the selected days is entered in the hour, minute and second fields.
Action Type
Rule information to apply to the request during the selected time period. If this value is "Allow", the request can continue its path only if it complies with these time rules. If this value is "Restrict", the request can only continue its path outside this time period.
You can visit thePoliciespage for the details of theConditionsandError Message Customizationpanels.