Skip to main content

target_environments

Creates, updates, deletes, gets or lists a target_environments resource.

Overview

Nametarget_environments
TypeResource
Idcloudflare.zero_trust.target_environments

Fields

The following fields are returned by SELECT queries:

List target environments response.

NameDatatypeDescription
display_namestringA human-readable name for the target environment. (example: Windows)
target_environmentstringThe target environment identifier. (example: windows)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idRetrieves 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

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
;