Time Restricted Access
The Time Restricted Access Policy is used to allow access to an API only during certain times. The policy can be configured to apply different time restrictions to different API resources.
Configuration Options
Option | Type | Description | Possible Values | Default | |
---|---|---|---|---|---|
Allow all requests matching URI | String | A regular expression used to match the request’s resource path/destination. The time restriction will be applied only when the request’s resource matches this pattern. | - | - | |
From time in the day | Time | Indicates the time of day (UTC) to begin allowing access. | 08:00 | ||
To time in the day | Time | Indicates the time of day (UTC) to stop allowing access. | 16:00 | ||
From day of the week | Integer | Indicates the day of week (1= Monday, 2=Tuesday etc.) to begin allowing access. | 1 2 3 4 5 6 7 | 1 (Mon) | |
To day of the week | Integer | Indicates the day of week (1= Monday, 2=Tuesday etc.) to stop allowing access. | 1 | 5 (Fri) |
Related Pages: