Skip to main content

ips

Creates, updates, deletes, gets or lists an ips resource.

Overview

Nameips
TypeResource
Idcloudflare.zero_trust.ips

Fields

The following fields are returned by SELECT queries:

Get tunnel route by IP response

NameDatatypeDescription
idstringUUID of the route. (example: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415)
tunnel_idstring (uuid)UUID of the tunnel. (example: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415)
virtual_network_idstring (uuid)UUID of the virtual network. (example: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415, x-stainless-terraform-configurability: computed_optional)
tunnel_namestringA user-friendly name for a tunnel. (example: blog)
virtual_network_namestringA user-friendly name for the virtual network. (example: us-east-1-vpc)
commentstringOptional remark describing the route. (default: , example: Example comment for this route.)
created_atstring (date-time)Timestamp of when the resource was created. (example: 2021-01-25T18:22:34.317854Z)
deleted_atstring (date-time)Timestamp of when the resource was deleted. If null, the resource has not been deleted. (example: 2009-11-10T23:00:00.000000Z)
networkstringThe private IPv4 or IPv6 range connected by the route, in CIDR notation. (example: 172.16.0.0/16)
tun_typestringThe type of tunnel. (cfd_tunnel, warp_connector, warp, magic, ip_sec, gre, cni) (example: cfd_tunnel)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectip, account_idvirtual_network_id, default_virtual_network_fallbackFetches routes that contain the given IP address.

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.
ipstring
default_virtual_network_fallbackbooleanWhen the virtual_network_id parameter is not provided the request filter will default search routes that are in the default virtual network for the account. If this parameter is set to false, the search will include routes that do not have a virtual network.
virtual_network_idstring (uuid)

SELECT examples

Fetches routes that contain the given IP address.

SELECT
id,
tunnel_id,
virtual_network_id,
tunnel_name,
virtual_network_name,
comment,
created_at,
deleted_at,
network,
tun_type
FROM cloudflare.zero_trust.ips
WHERE ip = '{{ ip }}' -- required
AND account_id = '{{ account_id }}' -- required
AND virtual_network_id = '{{ virtual_network_id }}'
AND default_virtual_network_fallback = '{{ default_virtual_network_fallback }}'
;