From 039d788a42815a7abdc7234d60937bce0de77a01 Mon Sep 17 00:00:00 2001 From: Chris Martinelli <56095825+chris-martinelli@users.noreply.github.com> Date: Wed, 19 Feb 2025 12:45:02 -0600 Subject: [PATCH 1/3] Update setup.mdx added API command for Spectrum default_sni --- src/content/docs/byoip/address-maps/setup.mdx | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/content/docs/byoip/address-maps/setup.mdx b/src/content/docs/byoip/address-maps/setup.mdx index c4ea246f0cd92e4..f4c0b21fe182247 100644 --- a/src/content/docs/byoip/address-maps/setup.mdx +++ b/src/content/docs/byoip/address-maps/setup.mdx @@ -57,4 +57,26 @@ Setting up a default SNI is currently only supported via API. 1. If you have not already, create an address map. Refer to the [section above](#create-address-maps) or to the [Create Address Map](/api/resources/addressing/subresources/address_maps/methods/create/) API endpoint. 2. Take note of the address map `id`. If needed, you can use the [List Address Maps](/api/resources/addressing/subresources/address_maps/methods/list/) endpoint to get it. 3. Make sure you add the desired IPs to the address map. Cloudflare will respond with the default SNI on those IPs. Use the dashboard or refer to [Add An IP To An Address Map](/api/resources/addressing/subresources/address_maps/subresources/ips/methods/update/). -4. Configure the `default_sni` value on the address map created in step 1. Refer to the [Update Address Map](/api/resources/addressing/subresources/address_maps/methods/edit/) API endpoint for details. The default SNI can be any valid domain or subdomain owned by your account. \ No newline at end of file +4. Configure the `default_sni` value on the address map created in step 1. Refer to the [Update Address Map](/api/resources/addressing/subresources/address_maps/methods/edit/) API endpoint for details. The default SNI can be any valid domain or subdomain owned by your account. + +## Non-SNI support for Spectrum HTTPS applications + +Default SNI for Spectrum can only be created via API only using the [Create Address Map](/api/resources/addressing/subresources/address_maps/methods/create/) endpoint. + +The key is to not include any membership in your command. Your API command would resemble the following: + +```shell +curl --request POST \ + --url https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/address_maps \ + --header 'authorization: Bearer $CLOUDFLARE_API_TOKEN' \ + --header 'content-type: application/json' \ + --data '{ + "description": "default_sni", + "default_sni": "sni.example.com", + "enabled": false, + "ips": [ + "192.0.0.1" + ], + "memberships": [] +}' +``` From 9ed831eee8ebb93fc0d558a053457e2ac99c202b Mon Sep 17 00:00:00 2001 From: Chris Martinelli <56095825+chris-martinelli@users.noreply.github.com> Date: Wed, 19 Feb 2025 12:50:38 -0600 Subject: [PATCH 2/3] Update setup.mdx small typo fixed --- src/content/docs/byoip/address-maps/setup.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/byoip/address-maps/setup.mdx b/src/content/docs/byoip/address-maps/setup.mdx index f4c0b21fe182247..2da616bf58d4854 100644 --- a/src/content/docs/byoip/address-maps/setup.mdx +++ b/src/content/docs/byoip/address-maps/setup.mdx @@ -61,7 +61,7 @@ Setting up a default SNI is currently only supported via API. ## Non-SNI support for Spectrum HTTPS applications -Default SNI for Spectrum can only be created via API only using the [Create Address Map](/api/resources/addressing/subresources/address_maps/methods/create/) endpoint. +Default SNI for Spectrum can only be created via API using the [Create Address Map](/api/resources/addressing/subresources/address_maps/methods/create/) endpoint. The key is to not include any membership in your command. Your API command would resemble the following: From 0e6fbc4b9dcb986ae3ae28e31f4e1b26f6eed719 Mon Sep 17 00:00:00 2001 From: Rebecca Tamachiro Date: Fri, 21 Feb 2025 17:11:07 +0000 Subject: [PATCH 3/3] Make heading shorter and adjust to Style Guide cURL templates --- src/content/docs/byoip/address-maps/setup.mdx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/content/docs/byoip/address-maps/setup.mdx b/src/content/docs/byoip/address-maps/setup.mdx index 2da616bf58d4854..d0325eb7a0a4c79 100644 --- a/src/content/docs/byoip/address-maps/setup.mdx +++ b/src/content/docs/byoip/address-maps/setup.mdx @@ -59,17 +59,16 @@ Setting up a default SNI is currently only supported via API. 3. Make sure you add the desired IPs to the address map. Cloudflare will respond with the default SNI on those IPs. Use the dashboard or refer to [Add An IP To An Address Map](/api/resources/addressing/subresources/address_maps/subresources/ips/methods/update/). 4. Configure the `default_sni` value on the address map created in step 1. Refer to the [Update Address Map](/api/resources/addressing/subresources/address_maps/methods/edit/) API endpoint for details. The default SNI can be any valid domain or subdomain owned by your account. -## Non-SNI support for Spectrum HTTPS applications +### Spectrum HTTPS applications Default SNI for Spectrum can only be created via API using the [Create Address Map](/api/resources/addressing/subresources/address_maps/methods/create/) endpoint. -The key is to not include any membership in your command. Your API command would resemble the following: +Do not include any membership in your command. Your API command should resemble the following: -```shell -curl --request POST \ - --url https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/address_maps \ - --header 'authorization: Bearer $CLOUDFLARE_API_TOKEN' \ - --header 'content-type: application/json' \ +```bash +curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/address_maps \ + --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ + --header "Content-Type: application/json" \ --data '{ "description": "default_sni", "default_sni": "sni.example.com",