corestack_ enterprise_ variables_ list
CoreStack Enterprise build variables.
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 / answers the same.
Ask for it
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
A CoreStack Enterprise environment's id; for CoreStack or CoreCluster use the corestack_deployment_* tools. At least 1.
Example call
{
"name": "corestack_enterprise_variables_list",
"arguments": {
"enterprise_env_id": 1530
}
}If it is refused
| Reason | What to do |
|---|---|
invalid_arguments | A CoreStack or CoreCluster environment; use the corestack_deployments_* tools by site_id. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
pin_refused | The 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_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |