target_environments
Creates, updates, deletes, gets or lists a target_environments resource.
Overview
| Name | target_environments |
| Type | Resource |
| Id | cloudflare.zero_trust.target_environments |
Fields
The following fields are returned by SELECT queries:
- list
List target environments response.
| Name | Datatype | Description |
|---|---|---|
display_name | string | A human-readable name for the target environment. (example: Windows) |
target_environment | string | The target environment identifier. (example: windows) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Retrieves a list of all available target environments with their display names. This endpoint is in Beta. |
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. |
SELECT examples
- list
Retrieves a list of all available target environments with their display names. This endpoint is in Beta.
SELECT
display_name,
target_environment
FROM cloudflare.zero_trust.target_environments
WHERE account_id = '{{ account_id }}' -- required
;