origins
Creates, updates, deletes, gets or lists an origins resource.
Overview
| Name | origins |
| Type | Resource |
| Id | cloudflare.radar.origins |
Fields
The following fields are returned by SELECT queries:
- get
- list
Successful response.
| Name | Datatype | Description |
|---|---|---|
origin | object |
Successful response.
| Name | Datatype | Description |
|---|---|---|
regions | array | |
slug | string | The origin slug. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | slug | format | Retrieves the requested origin information with its regions. |
list | select | limit, offset, format | Retrieves a list of origins with their regions. |
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 |
|---|---|---|
slug | string | Origin slug. |
format | string | Format in which results will be returned. |
limit | integer | Limits the number of objects returned in the response. |
offset | integer | Skips the specified number of objects before fetching the results. |
SELECT examples
- get
- list
Retrieves the requested origin information with its regions.
SELECT
origin
FROM cloudflare.radar.origins
WHERE slug = '{{ slug }}' -- required
AND format = '{{ format }}'
;
Retrieves a list of origins with their regions.
SELECT
regions,
slug
FROM cloudflare.radar.origins
WHERE limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND format = '{{ format }}'
;