slots
Creates, updates, deletes, gets or lists a slots resource.
Overview
| Name | slots |
| Type | Resource |
| Id | cloudflare.network_interconnects.slots |
Fields
The following fields are returned by SELECT queries:
- get
- list
Information about the specified slot
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Slot ID |
account | string | Customer account tag |
facility | object | |
occupied | boolean | Whether the slot is occupied or not |
site | string | |
speed | string |
List of matching slots
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Slot ID |
account | string | Customer account tag |
facility | object | |
occupied | boolean | Whether the slot is occupied or not |
site | string | |
speed | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | slot, account_id | ||
list | select | account_id | address_contains, site, speed, occupied, cursor, limit |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
slot | string (uuid) | |
address_contains | string | If specified, only show slots with the given text in their address field |
cursor | integer (int32) | |
limit | integer | |
occupied | boolean | If specified, only show slots with a specific occupied/unoccupied state |
site | string | If specified, only show slots located at the given site |
speed | string | If specified, only show slots that support the given speed |
SELECT examples
- get
- list
Information about the specified slot
SELECT
id,
account,
facility,
occupied,
site,
speed
FROM cloudflare.network_interconnects.slots
WHERE slot = '{{ slot }}' -- required
AND account_id = '{{ account_id }}' -- required
;
List of matching slots
SELECT
id,
account,
facility,
occupied,
site,
speed
FROM cloudflare.network_interconnects.slots
WHERE account_id = '{{ account_id }}' -- required
AND address_contains = '{{ address_contains }}'
AND site = '{{ site }}'
AND speed = '{{ speed }}'
AND occupied = '{{ occupied }}'
AND cursor = '{{ cursor }}'
AND limit = '{{ limit }}'
;