corestack_ site_ target_ facts_ get
Read a migration target's facts.
When to use it
Read what a migration needs to know about its target, without running anything on it: paths, PHP, Node.js and MariaDB versions, the database name and user (never the password), environment variable names, configuration conventions, services, the built-in cron, SSH, hosts, the fixed outbound addresses, limits and the copy hold — and, given the source application and version, whether it fits and what to upgrade first. Before the target exists, pass placement instead of site_id for the create lists and the verdict.
A custom PHP application (application: php, while PHP is offered) has no version to check: leave application_version out, in either form. Its verdict is null — pick the PHP and MariaDB from php and mariadb (the create lists before the create, the row's own after it; before the create php.create holds only the versions a new site can be created on, and while none is open php.wait ({message}) says a create waits for php.default) — unless the target cannot take a PHP site: then it is unsupported, and its reason says why.
Ask for it
Using the Corefinity MCP server, call corestack_site_target_facts_get with site_id 4211, application magento2, application_version 2.4.7-p3. (Read a migration target's facts.) Tell me what it returned.Inputs
The source's application.
wordpressmagento2laravelshopware5Its version, e.g. 6.8.3, 2.4.7-p3, 12.x or 6.6.10.8. Up to 40 characters.
Magento2 only; left out, the default edition for the version. For another application leave it out (invalid_arguments).
open_sourceA target still to be made: where it will be created. Requires application and application_version.
Fields
kind cluster: the CoreCluster the site will be created in. At least 1.
clusterplatformkind platform: the region of a standalone site.
ukusnlausAn existing target: the production row or an environment's row. At least 1.
The source's database engine and version.
Fields
mysqlmariadbUp to 40 characters.
The PHP the source runs, e.g. 7.4. Up to 16 characters.
Example call
{
"name": "corestack_site_target_facts_get",
"arguments": {
"site_id": 4211,
"application": "magento2",
"application_version": "2.4.7-p3"
}
}If it is refused
| Reason | What to do |
|---|---|
invalid_arguments | On application_version ("A custom PHP application has no version to check: leave application_version out."): application: php takes no version. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
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. |
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. |