infrastructure
Creates, updates, deletes, gets or lists an infrastructure resource.
Overview
| Name | infrastructure |
| Type | Resource |
| Id | cloudflare.zero_trust.infrastructure |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_targets | exec | account_id, hostname, ip |
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. |
Lifecycle Methods
- create_targets
Successfully created the target
EXEC cloudflare.zero_trust.infrastructure.create_targets
@account_id='{{ account_id }}' --required
@@json=
'{
"hostname": "{{ hostname }}",
"ip": "{{ ip }}"
}'
;