Client Reference
Lockdown
Lockdown endpoint reference.
List
Fetches Zone Lockdown rules. You can filter the results using several optional parameters.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. | |
params | array | No | [] | Query Parameters |
php
$response = $client->lockdown()->list('ZONE_ID', []);
Create
Creates a new Zone Lockdown rule.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. | |
value | string | Yes | The IP address/range to match. You can only use prefix lengths /16 and /24. This address/range will be compared to the IP address of incoming requests. | |
urls | array | Yes | The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. |
php
$response = $client->lockdown()->create('ZONE_ID', 'VALUE', []);
Get
Fetches the details of a Zone Lockdown rule.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. | |
lockdownId | string | Yes | Lockdown identifie |
php
$response = $client->lockdown()->get('ZONE_ID', 'LOCKDOWN_ID');
Update
Updates an existing Zone Lockdown rule.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. | |
lockdownId | string | Yes | Lockdown identifier | |
value | string | Yes | The IP address/range to match. You can only use prefix lengths /16 and /24. This address/range will be compared to the IP address of incoming requests. | |
urls | array | Yes | The URLs to include in the current WAF override. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns. |
php
$response = $client->lockdown()->update('ZONE_ID', 'LOCKDOWN_ID', 'VALUE', []);
Delete
Deletes an existing Zone Lockdown rule.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
zoneId | string | Yes | Zone Identifier. | |
lockdownId | string | Yes | Lockdown identifier |
php
$response = $client->lockdown()->delete('ZONE_ID', 'LOCKDOWN_ID');

