Skip to main content

proxy_endpoints

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

Overview

Nameproxy_endpoints
TypeResource
Idcloudflare.zero_trust.proxy_endpoints

Fields

The following fields are returned by SELECT queries:

Returns a proxy endpoint response.

NameDatatypeDescription
idstring (example: ed35569b41ce4d1facfe683550f54086)
namestringSpecify the name of the proxy endpoint. (example: Devops team)
created_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
ipsarraySpecify the list of CIDRs to restrict ingress connections.
kindstringThe proxy endpoint kind (ip) (example: ip)
subdomainstringSpecify the subdomain to use as the destination in the proxy client. (example: oli3n9zkz5.proxy.cloudflare-gateway.com)
updated_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproxy_endpoint_id, account_idGet a single Zero Trust Gateway proxy endpoint.
listselectaccount_idList all Zero Trust Gateway proxy endpoints for an account.
createinsertaccount_id, nameCreate a new Zero Trust Gateway proxy endpoint.
editupdateproxy_endpoint_id, account_idUpdate a configured Zero Trust Gateway proxy endpoint.
deletedeleteproxy_endpoint_id, account_idDelete a configured Zero Trust Gateway proxy endpoint.

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.
proxy_endpoint_idstring

SELECT examples

Get a single Zero Trust Gateway proxy endpoint.

SELECT
id,
name,
created_at,
ips,
kind,
subdomain,
updated_at
FROM cloudflare.zero_trust.proxy_endpoints
WHERE proxy_endpoint_id = '{{ proxy_endpoint_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;

INSERT examples

Create a new Zero Trust Gateway proxy endpoint.

INSERT INTO cloudflare.zero_trust.proxy_endpoints (
kind,
name,
account_id
)
SELECT
'{{ kind }}',
'{{ name }}' /* required */,
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

UPDATE examples

Update a configured Zero Trust Gateway proxy endpoint.

UPDATE cloudflare.zero_trust.proxy_endpoints
SET
ips = '{{ ips }}',
name = '{{ name }}'
WHERE
proxy_endpoint_id = '{{ proxy_endpoint_id }}' --required
AND account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Delete a configured Zero Trust Gateway proxy endpoint.

DELETE FROM cloudflare.zero_trust.proxy_endpoints
WHERE proxy_endpoint_id = '{{ proxy_endpoint_id }}' --required
AND account_id = '{{ account_id }}' --required
;