CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployments · 56 of 65

corestack_enterprise_variables_list

CoreStack Enterprise build variables.

Scope readNo secrets returned
On this page

When to use it

Read a CoreStack Enterprise environment's build variables, as its environment page's Environment Variables editor keeps them: every deployment of the environment receives each one as CF_<name>. Each variable comes with its name, its masked value (the mask, and the last four characters of a value of 16 characters or more), used_in (the pipeline stages whose commands read $CF_<name>; empty when none does), replaces_platform, tool_credential and updated_at. The answer also gives count and limit, the most variables the environment can hold.

A variable named as a build tool's credential (COMPOSER_AUTH, NPM_TOKEN, NODE_AUTH_TOKEN, YARN_NPM_AUTH_TOKEN, GITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKEN) that no stage reads as $CF_<name> carries tool_credential, a sentence to show the person: builds see it as CF_<name>, so the tool never reads it. It is null for every other variable.

It never carries a value, not even for a variable once marked to be shown in deployment output (one kept from when the environment ran a CoreStack site): that one is masked too. corestack_enterprise_variable_reveal shows a value. For a CoreStack or CoreCluster site, use corestack_deployments_variables_list by site_id instead.

The public API's GET /api/environments/{environment}/variables answers the same.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_enterprise_variables_list with enterprise_env_id 1530. (CoreStack Enterprise build variables.) Tell me what it returned.

Inputs

enterprise_env_idintegerRequired

A CoreStack Enterprise environment's id; for CoreStack or CoreCluster use the corestack_deployment_* tools. At least 1.

Example call

tools/call
{
  "name": "corestack_enterprise_variables_list",
  "arguments": {
    "enterprise_env_id": 1530
  }
}

If it is refused

ReasonWhat to do
invalid_argumentsA CoreStack or CoreCluster environment; use the corestack_deployments_* tools by site_id.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
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.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
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.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT