Skip to content

Commit ca05367

Browse files
[BYOIP] Add API command for Spectrum default_sni (#20100)
* Update setup.mdx added API command for Spectrum default_sni * Update setup.mdx small typo fixed * Make heading shorter and adjust to Style Guide cURL templates --------- Co-authored-by: Rebecca Tamachiro <[email protected]>
1 parent b136f2b commit ca05367

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/content/docs/byoip/address-maps/setup.mdx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,25 @@ Setting up a default SNI is currently only supported via API.
5757
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.
5858
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.
5959
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/).
60-
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.
60+
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.
61+
62+
### Spectrum HTTPS applications
63+
64+
Default SNI for Spectrum can only be created via API using the [Create Address Map](/api/resources/addressing/subresources/address_maps/methods/create/) endpoint.
65+
66+
Do not include any membership in your command. Your API command should resemble the following:
67+
68+
```bash
69+
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/address_maps \
70+
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
71+
--header "Content-Type: application/json" \
72+
--data '{
73+
"description": "default_sni",
74+
"default_sni": "sni.example.com",
75+
"enabled": false,
76+
"ips": [
77+
"192.0.0.1"
78+
],
79+
"memberships": []
80+
}'
81+
```

0 commit comments

Comments
 (0)