Skip to main content

ip_profiles

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

Overview

Nameip_profiles
TypeResource
Idcloudflare.zero_trust.ip_profiles

Fields

The following fields are returned by SELECT queries:

Get Device IP profile response.

NameDatatypeDescription
idstringThe ID of the Device IP profile. (example: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415)
namestringA user-friendly name for the Device IP profile. (example: IPv4 Cloudflare Source IPs)
subnet_idstringThe ID of the Subnet. (example: b70ff985-a4ef-4643-bbbc-4a0ed4fc8415)
created_atstringThe RFC3339Nano timestamp when the Device IP profile was created. (example: 2025-02-14T13:17:00.123456789Z)
descriptionstringAn optional description of the Device IP profile. (example: example comment)
enabledbooleanWhether the Device IP profile is enabled.
matchstringThe wirefilter expression to match registrations. Available values: "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.saml_attributes". (example: identity.email == "test@cloudflare.com")
precedenceintegerThe precedence of the Device IP profile. Lower values indicate higher precedence. Device IP profile will be evaluated in ascending order of this field.
updated_atstringThe RFC3339Nano timestamp when the Device IP profile was last updated. (example: 2025-02-14T13:17:00.123456789Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, profile_idFetches a single WARP Device IP profile.
listselectaccount_idper_pageLists WARP Device IP profiles.
createinsertaccount_id, name, subnet_id, precedence, matchCreates a WARP Device IP profile. Currently, only IPv4 Device subnets can be associated.
updateupdateaccount_id, profile_idUpdates a WARP Device IP profile. Currently, only IPv4 Device subnets can be associated.
deletedeleteaccount_id, profile_idDelete a WARP Device IP profile.

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.
profile_idstring
per_pageintegerThe number of IP profiles to return per page.

SELECT examples

Fetches a single WARP Device IP profile.

SELECT
id,
name,
subnet_id,
created_at,
description,
enabled,
match,
precedence,
updated_at
FROM cloudflare.zero_trust.ip_profiles
WHERE account_id = '{{ account_id }}' -- required
AND profile_id = '{{ profile_id }}' -- required
;

INSERT examples

Creates a WARP Device IP profile. Currently, only IPv4 Device subnets can be associated.

INSERT INTO cloudflare.zero_trust.ip_profiles (
description,
enabled,
match,
name,
precedence,
subnet_id,
account_id
)
SELECT
'{{ description }}',
{{ enabled }},
'{{ match }}' /* required */,
'{{ name }}' /* required */,
{{ precedence }} /* required */,
'{{ subnet_id }}' /* required */,
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

UPDATE examples

Updates a WARP Device IP profile. Currently, only IPv4 Device subnets can be associated.

UPDATE cloudflare.zero_trust.ip_profiles
SET
description = '{{ description }}',
enabled = {{ enabled }},
match = '{{ match }}',
name = '{{ name }}',
precedence = {{ precedence }},
subnet_id = '{{ subnet_id }}'
WHERE
account_id = '{{ account_id }}' --required
AND profile_id = '{{ profile_id }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Delete a WARP Device IP profile.

DELETE FROM cloudflare.zero_trust.ip_profiles
WHERE account_id = '{{ account_id }}' --required
AND profile_id = '{{ profile_id }}' --required
;