From b0c12e59c5d22971125c6914900cc29e16f178c1 Mon Sep 17 00:00:00 2001 From: Max Phillips Date: Tue, 11 Feb 2025 16:56:10 -0600 Subject: [PATCH 1/2] Update API call variables --- src/content/partials/cloudflare-one/gateway/lists.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/partials/cloudflare-one/gateway/lists.mdx b/src/content/partials/cloudflare-one/gateway/lists.mdx index 610a30da0509c4..7e7308196ff8db 100644 --- a/src/content/partials/cloudflare-one/gateway/lists.mdx +++ b/src/content/partials/cloudflare-one/gateway/lists.mdx @@ -48,9 +48,9 @@ You can now use this list in the policy builder by choosing the _in list_ operat ```bash -curl https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/lists \ +curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/lists \ --header "Content-Type: application/json" \ ---header "Authorization: Bearer " \ +--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ --data '{ "description": "Private application IPs", "items": [{"value": "10.226.0.177/32"},{"value": "10.226.1.177/32"}], From af05c63cbbc3c5cb82e1e83160cd9eb0da720e60 Mon Sep 17 00:00:00 2001 From: Max Phillips Date: Tue, 11 Feb 2025 16:58:10 -0600 Subject: [PATCH 2/2] Add support for domain names --- src/content/docs/cloudflare-one/policies/gateway/lists.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/cloudflare-one/policies/gateway/lists.mdx b/src/content/docs/cloudflare-one/policies/gateway/lists.mdx index 1a4b90bdb4b901..29cb325e58869f 100644 --- a/src/content/docs/cloudflare-one/policies/gateway/lists.mdx +++ b/src/content/docs/cloudflare-one/policies/gateway/lists.mdx @@ -16,7 +16,7 @@ Before creating a list, make note of the [limitations](#limitations). Lists can contain a single type of data each. Supported data types include: - URLs -- Hostnames +- Hostnames or domains - Serial numbers - User email addresses - IP addresses