CorefinityCorefinityDocs
Open the Control PanelControl Panel
Integrations · 22 of 39

corestack_site_cloudflare_ssl_rule_set

Set SSL for some of a site's domains in Cloudflare.

Scope writeNo secrets returnedCoreCluster
On this page

When to use it

Set the SSL/TLS mode for some domains of a row only, without changing the mode of the whole Cloudflare zone. The Control Panel adds one Cloudflare Configuration Rule that sets SSL to Full, or Full (strict), for exactly the domains named; every other name in the zone keeps the zone's own mode. Use it when one site needs Full while the zone serves other names that need something else; use corestack_site_cloudflare_ssl_set to change the whole zone instead.

The domains must be the row's own (as corestack_site_cloudflare_ssl_rules_list lists them) and all in one connected zone: set one rule for each zone. The rule acts only on traffic Cloudflare proxies. Asking for the same rule again answers the one already set. Every rule written counts against the company's Cloudflare budget of 60 changes an hour.

Needs the write scope.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_site_cloudflare_ssl_rule_set with site_id 4211, hosts ["shop.example.co.uk","www.shop.example.co.uk"], ssl full. (Set SSL for some of a site's domains in Cloudflare.) Tell me what it returned.

Inputs

hostsarray of stringsRequired

Domains of the row, all in one zone Up to 50 items.

site_idintegerRequired

At least 1.

sslstringRequired
fullstrict

Example call

tools/call
{
  "name": "corestack_site_cloudflare_ssl_rule_set",
  "arguments": {
    "site_id": 4211,
    "hosts": ["shop.example.co.uk", "www.shop.example.co.uk"],
    "ssl": "full"
  }
}

If it is refused

ReasonWhat to do
invalid_argumentsA name is not one of the row's domains, is not in a connected Cloudflare zone, or the names are in two zones; or Cloudflare refused the rule (its words are in the message). Nothing was set.
rules_not_allowedThe Cloudflare token may not change the zone's Configuration Rules, or Cloudflare did not say whether it may (the Control Panel asks Cloudflare before every new rule, writing nothing). Allow Zone > Config Rules > Edit on the token, then try again. Nothing was set.
no_zoneThe row's domain is not in a connected Cloudflare zone, or Cloudflare is switched off for it.
not_connectedConnect Cloudflare for the company first, or the stored token could not be read.
rate_limitedThe company's Cloudflare budget for this hour is spent; retry_after_seconds says when to try again.
unavailableCloudflare did not answer. When it did not confirm the rule, the answer carries it as setting, and the Control Panel checks it again; ask again to get it confirmed. When a rule asked for earlier could not be checked, nothing new is written beside it.
busyThe same rule is being set by another request; try again in a moment.
deletedprovisioning: the row is being deleted, or is still being created.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. Nothing was done.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

Answer

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT