API reference · Move to Pantech / Migrate
Migrate
Connect another cloud without sharing keys, scan what runs there, plan the move with prices and a Terraform export, and invite the people it lists.
GET /cloud-providers lists every cloud Migrate reads and how. Create a cloud connection with its provider, then follow its setup. For AWS, Google Cloud, Azure and Huawei Cloud (access: federated) you run the setup in your own cloud and send back what it prints with PATCH: a role ARN, or the gcp, azure or huawei details. Pantech then reads your cloud with five-minute tokens it signs for this connection only. For DigitalOcean, Hetzner Cloud, Linode, Vultr, Contabo and OpenStack (access: agent) you run the Pantech Migrate agent with a read-only token that never leaves your machine, enrolled with a one-time code. Wait for status connected, start a scan, follow it until it succeeded, then plan a migration from it. A plan creates nothing: review it, edit it, export it as Terraform, and invite the people it lists. Moving data is on the bucket imports, server copies, database imports and Kubernetes moves pages. See Move to Pantech.
The cloud provider object
Fields
slugstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredaccessstringrequiredOne of
federated,agent.cost_readablebooleanrequiredWhether a scan reads the source's spend. When false the comparison says the spend is not available.
people_readablebooleanrequiredWhether a scan lists the people with access. When false, add them to the plan by hand.
availablebooleanrequiredWhether this deployment can connect it now.
The cloud connection object
Fields
idstringrequiredproviderstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredstatusstringrequiredawaiting_role(federated providers: waiting for what the setup printed),awaiting_agent(other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status),verifying,connectedorfailed.One of
awaiting_role,awaiting_agent,verifying,connected,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
role_arnstring or nullrequiredaws_account_idstring or nullrequiredSet for AWS connections only; see external_account_id.
external_account_idstring or nullrequiredThe source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.
gcpCloudGCPFederationrequiredWhat the Google Cloud setup printed.
Show 5 child fieldsHide child fields
project_numberstringrequiredpool_idstringrequiredprovider_idstringrequiredservice_account_emailstringrequiredproject_idsarray of stringrequiredThe projects to scan, 1 to 20.
azureCloudAzureFederationrequiredWhat the Azure setup printed.
Show 3 child fieldsHide child fields
tenant_idstringrequiredclient_idstringrequiredThe app registration's application (client) ID.
subscription_idsarray of stringrequiredThe subscriptions to scan, 1 to 20.
huaweiCloudHuaweiFederationrequiredYour Huawei Cloud identity provider and the projects to scan.
Show 2 child fieldsHide child fields
identity_provider_idstringrequiredprojectsarray of objectrequired1 to 20 region projects.
Show 2 child fieldsHide child fields
regionstringrequiredidstringrequired
agentCloudAgentStatusrequiredThe connection's enrolled agent; null when none is.
Show 7 child fieldsHide child fields
idstringrequiredonlinebooleanrequiredWhether it polled in the last 2 minutes.
agent_versionstringrequiredplatformstringrequiredenrolled_atstringrequiredlast_seen_atstringrequiredcredential_expires_atstringrequired
verified_atstring or nullrequiredcreated_atstringrequiredupdated_atstringrequiredsetupCloudConnectionSetuprequiredWhat you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in
permissions; none creates a key Pantech holds.Show 10 child fieldsHide child fields
accessstringrequiredfederated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud).agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.One of
federated,agent.issuer_urlstring or nullrequiredPantech's identity provider URL, which your cloud trusts; null for agent providers.
audiencestring or nullrequiredThe audience every token carries; null for agent providers.
subjectstringrequiredThe subject your trust policy requires: this connection's id.
quick_create_urlstring or nullrequiredOpens AWS's create-stack page with this template and connection filled in; null when not offered.
templatestringrequiredThe main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.
template_formatstringrequiredOne of
cloudformation,shell,markdown,agent.filesarray of objectrequiredFurther setup files, such as a Terraform version of the setup or JSON documents to paste.
Show 2 child fieldsHide child fields
namestringrequiredcontentstringrequired
permissionsarray of stringrequiredEvery read-only permission the setup grants.
agentCloudAgentSetuprequiredHow to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (
token_variablesis empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.Show 8 child fieldsHide child fields
imagestringrequiredThe agent's container image.
download_urlstring or nullrequiredWhere the agent's binaries are published.
api_urlstringrequiredtoken_variablesarray of stringrequiredThe environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.
token_how_tostringrequiredenroll_commandstringrequiredContains
<ENROLLMENT_CODE>where the one-time code goes.run_commandstringrequiredcontainer_commandstringrequired
The cloud scan object
Fields
idstringrequiredconnection_idstringrequiredrunnerstringrequiredworker(Pantech read your cloud) oragent(your agent did).One of
worker,agent.statusstringrequiredOne of
queued,running,succeeded,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredproviderstring or nullrequiredaws_account_idstring or nullrequiredexternal_account_idstring or nullrequiredregionsarray of stringrequiredRegions read.
countsCloudScanCountsrequiredShow 12 child fieldsHide child fields
instancesintegerrequiredvolumesintegerrequirednetworksintegerrequiredsubnetsintegerrequiredsecurity_groupsintegerrequiredpublic_ipsintegerrequiredload_balancersintegerrequireddatabasesintegerrequiredbucketsintegerrequiredusersintegerrequiredssh_keysintegerrequiredkubernetes_clustersintegerrequired
costCloudCostrequiredThe source account's whole bill, every service.
Show 3 child fieldsHide child fields
currencystringrequiredaverage_monthly_minorintegerrequiredAverage of the months, in minor units of currency.
monthsarray of CloudCostMonthrequiredShow 2 child fieldsHide child fields
monthstringrequiredYYYY-MM.
amount_minorintegerrequired
warningsarray of stringrequiredParts not read, e.g.
cost_unavailableorregion_denied:eu-south-1.truncatedarray of stringrequiredKinds cut at 2,000 items.
inventoryCloudInventoryrequiredEverything a scan found.
Show 12 child fieldsHide child fields
instancesarray of objectrequiredShow 19 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstringrequiredzonestring or nullrequiredinstance_typestringrequiredstatestringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredplatformstringrequiredos_namestring or nullrequiredvolume_idsarray of stringrequirednetwork_idstring or nullrequiredsubnet_idstring or nullrequiredsecurity_group_idsarray of stringrequiredpublic_ipstring or nullrequiredprivate_ipstring or nullrequiredkey_namestring or nullrequiredlaunched_atstring or nullrequired
volumesarray of objectrequiredShow 8 child fieldsHide child fields
idstringrequiredregionstringrequiredzonestring or nullrequiredtypestringrequiredsize_gbintegerrequiredattached_tostring or nullrequireddevicestring or nullrequiredencryptedbooleanrequired
networksarray of objectrequiredShow 5 child fieldsHide child fields
idstringrequiredregionstringrequirednamestring or nullrequiredcidrstringrequiredis_defaultbooleanrequired
subnetsarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstringrequirednamestring or nullrequiredcidrstringrequiredzonestring or nullrequiredmaps_public_ipbooleanrequired
security_groupsarray of objectrequiredShow 6 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstring or nullrequirednamestringrequireddescriptionstring or nullrequiredrulesarray of objectrequiredShow 8 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredfrom_portinteger or nullrequiredto_portinteger or nullrequiredcidrstring or nullrequiredipv6_cidrstring or nullrequiredsource_group_idstring or nullrequiredprefix_list_idstring or nullrequired
public_ipsarray of objectrequiredShow 4 child fieldsHide child fields
idstringrequiredregionstringrequiredaddressstringrequiredinstance_idstring or nullrequired
load_balancersarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednamestringrequiredtypestringrequiredschemestringrequirednetwork_idstring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
databasesarray of objectrequiredShow 10 child fieldsHide child fields
idstringrequiredregionstringrequiredenginestringrequiredengine_versionstringrequiredinstance_classstringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredstorage_gbintegerrequiredmulti_azbooleanrequiredpublicly_accessiblebooleanrequired
bucketsarray of objectrequiredShow 3 child fieldsHide child fields
namestringrequiredregionstring or nullrequiredcreated_atstring or nullrequired
usersarray of objectrequiredShow 8 child fieldsHide child fields
idstring or nullrequirednamestringrequiredemailstring or nullrequiredis_adminbooleanrequiredsourcestring or nullrequiredWhere the person came from:
iam_user,identity_center,gcp_iam,entra,team.access_levelstring or nullrequiredOne of
admin,write,read,null.rolesarray of stringrequiredThe source cloud's own role names.
created_atstring or nullrequired
ssh_keysarray of objectrequiredShow 4 child fieldsHide child fields
namestringrequiredregionstringrequiredfingerprintstring or nullrequiredpublic_keystring or nullrequired
kubernetes_clustersarray of CloudKubernetesClusterrequiredShow 9 child fieldsHide child fields
idstringrequirednamestringrequiredregionstringrequiredproviderstringrequiredWho runs the control plane: eks, gke, aks, doks, lke or self_managed.
versionstring or nullrequiredendpoint_publicbooleanrequirednode_poolsarray of CloudNodePoolrequiredShow 11 child fieldsHide child fields
namestringrequiredinstance_typestring or nullrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredgpubooleanrequiredwindowsbooleanrequireddesiredintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequired
addonsarray of stringrequiredcreated_atstring or nullrequired
The migration object
Fields
idstringrequirednamestringrequiredregionstringrequiredconnection_idstringrequiredscan_idstringrequiredstagestringrequiredplanning. Copying arrives in a later release.One of
planning.versionintegerrequiredsummaryMigrationSummaryrequiredShow 4 child fieldsHide child fields
plannedintegerrequiredexcludedintegerrequiredunsupportedintegerrequiredby_kindobjectrequiredPlanned items per kind.
estimateMigrationEstimaterequiredPantech's monthly price for the plan next to the source's monthly bill, computed when read.
Show 10 child fieldsHide child fields
currencystringrequiredpantech_pricedbooleanrequiredFalse when part of the plan could not be priced; then pantech_monthly_minor is null.
pantech_monthly_minorinteger or nullrequiredcoversarray of stringrequiredWhat the Pantech price includes: servers, volumes, networks.
not_coveredarray of stringrequiredPlanned items the price leaves out, e.g. databases.
source_knownbooleanrequiredsource_monthly_minorinteger or nullrequiredsource_currencystring or nullrequiredsource_monthsintegerrequiredsource_scopestringrequiredwhole_account: the source figure is the whole cloud bill.One of
whole_account.
itemsarray of MigrationItemrequiredNull in a list.
Show 6 child fieldsHide child fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredShow 7 child fieldsHide child fields
namestringrequiredplan_slugstring or nullrequiredcountintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequiredsource_namestringrequired
addonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
created_atstringrequiredupdated_atstringrequired
The migration item object
Fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredShow 7 child fieldsHide child fields
namestringrequiredplan_slugstring or nullrequiredcountintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequiredsource_namestringrequired
addonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
List cloud connections
Your organization's connections to other cloud accounts, newest first. Each carries its setup: the template that creates the read-only role in your account.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Response 200
Cloud connections.dataarray of CloudConnectionrequiredShow 16 child fieldsHide child fields
idstringrequiredproviderstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredstatusstringrequiredawaiting_role(federated providers: waiting for what the setup printed),awaiting_agent(other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status),verifying,connectedorfailed.One of
awaiting_role,awaiting_agent,verifying,connected,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
role_arnstring or nullrequiredaws_account_idstring or nullrequiredSet for AWS connections only; see external_account_id.
external_account_idstring or nullrequiredThe source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.
gcpCloudGCPFederationrequiredWhat the Google Cloud setup printed.
Show 5 child fieldsHide child fields
project_numberstringrequiredpool_idstringrequiredprovider_idstringrequiredservice_account_emailstringrequiredproject_idsarray of stringrequiredThe projects to scan, 1 to 20.
azureCloudAzureFederationrequiredWhat the Azure setup printed.
Show 3 child fieldsHide child fields
tenant_idstringrequiredclient_idstringrequiredThe app registration's application (client) ID.
subscription_idsarray of stringrequiredThe subscriptions to scan, 1 to 20.
huaweiCloudHuaweiFederationrequiredYour Huawei Cloud identity provider and the projects to scan.
Show 2 child fieldsHide child fields
identity_provider_idstringrequiredprojectsarray of objectrequired1 to 20 region projects.
Show 2 child fieldsHide child fields
regionstringrequiredidstringrequired
agentCloudAgentStatusrequiredThe connection's enrolled agent; null when none is.
Show 7 child fieldsHide child fields
idstringrequiredonlinebooleanrequiredWhether it polled in the last 2 minutes.
agent_versionstringrequiredplatformstringrequiredenrolled_atstringrequiredlast_seen_atstringrequiredcredential_expires_atstringrequired
verified_atstring or nullrequiredcreated_atstringrequiredupdated_atstringrequiredsetupCloudConnectionSetuprequiredWhat you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in
permissions; none creates a key Pantech holds.Show 10 child fieldsHide child fields
accessstringrequiredfederated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud).agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.One of
federated,agent.issuer_urlstring or nullrequiredPantech's identity provider URL, which your cloud trusts; null for agent providers.
audiencestring or nullrequiredThe audience every token carries; null for agent providers.
subjectstringrequiredThe subject your trust policy requires: this connection's id.
quick_create_urlstring or nullrequiredOpens AWS's create-stack page with this template and connection filled in; null when not offered.
templatestringrequiredThe main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.
template_formatstringrequiredOne of
cloudformation,shell,markdown,agent.filesarray of objectrequiredFurther setup files, such as a Terraform version of the setup or JSON documents to paste.
Show 2 child fieldsHide child fields
namestringrequiredcontentstringrequired
permissionsarray of stringrequiredEvery read-only permission the setup grants.
agentCloudAgentSetuprequiredHow to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (
token_variablesis empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.Show 8 child fieldsHide child fields
imagestringrequiredThe agent's container image.
download_urlstring or nullrequiredWhere the agent's binaries are published.
api_urlstringrequiredtoken_variablesarray of stringrequiredThe environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.
token_how_tostringrequiredenroll_commandstringrequiredContains
<ENROLLMENT_CODE>where the one-time code goes.run_commandstringrequiredcontainer_commandstringrequired
next_cursorstring or nullrequiredAlways null: this list is returned whole.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/cloud-connections" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"data": [
{
"id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"provider": "aws",
"name": "web-1",
"status": "awaiting_role",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"role_arn": "role-arn",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"gcp": {
"project_number": "project-number",
"pool_id": "pool-id",
"provider_id": "provider-id",
"service_account_email": "service-account-email",
"project_ids": [
"project-ids"
]
},
"azure": {
"tenant_id": "tenant-id",
"client_id": "client-id",
"subscription_ids": [
"subscription-ids"
]
},
"huawei": {
"identity_provider_id": "identity-provider-id",
"projects": [
{
"region": "af-abj",
"id": "id"
}
]
},
"agent": {
"id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
"online": true,
"agent_version": "agent-version",
"platform": "platform",
"enrolled_at": "2026-10-03T09:30:00Z",
"last_seen_at": "2026-10-03T09:30:00Z",
"credential_expires_at": "2026-10-03T09:30:00Z"
},
"verified_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"setup": {
"access": "federated",
"issuer_url": "issuer-url",
"audience": "audience",
"subject": "subject",
"quick_create_url": "quick-create-url",
"template": "template",
"template_format": "cloudformation",
"files": [
{
"name": "web-1",
"content": "content"
}
],
"permissions": [
"permissions"
],
"agent": {
"image": "image",
"download_url": "download-url",
"api_url": "api-url",
"token_variables": [
"token-variables"
],
"token_how_to": "token-how-to",
"enroll_command": "enroll-command",
"run_command": "run-command",
"container_command": "container-command"
}
}
}
],
"next_cursor": null
}Connect a cloud account
Starts a connection to an AWS account. Nothing is shared yet: the response's setup holds a CloudFormation template (and, when available, a one-click quick_create_url) that creates, in your AWS account, a read-only role only Pantech can assume, with short-lived tokens for this one connection. No access keys are ever sent to Pantech.
Create the stack, then send its RoleArn output with PATCH /public/v1/cloud-connections/{connection_id}. At most 10 connections per organization. Owners and admins only.
Idempotency: a retry with the same Idempotency-Key returns the connection the first request made; the same key with a different name returns 409 IDEMPOTENCY_CONFLICT.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Body
application/jsonproviderstringaws, the default, or another providerGET /cloud-providerslists.One of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequired1 to 100 characters, for example
Production AWS.
Response 201
The connection, with its setup.idstringrequiredproviderstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredstatusstringrequiredawaiting_role(federated providers: waiting for what the setup printed),awaiting_agent(other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status),verifying,connectedorfailed.One of
awaiting_role,awaiting_agent,verifying,connected,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
role_arnstring or nullrequiredaws_account_idstring or nullrequiredSet for AWS connections only; see external_account_id.
external_account_idstring or nullrequiredThe source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.
gcpCloudGCPFederationrequiredWhat the Google Cloud setup printed.
Show 5 child fieldsHide child fields
project_numberstringrequiredpool_idstringrequiredprovider_idstringrequiredservice_account_emailstringrequiredproject_idsarray of stringrequiredThe projects to scan, 1 to 20.
azureCloudAzureFederationrequiredWhat the Azure setup printed.
Show 3 child fieldsHide child fields
tenant_idstringrequiredclient_idstringrequiredThe app registration's application (client) ID.
subscription_idsarray of stringrequiredThe subscriptions to scan, 1 to 20.
huaweiCloudHuaweiFederationrequiredYour Huawei Cloud identity provider and the projects to scan.
Show 2 child fieldsHide child fields
identity_provider_idstringrequiredprojectsarray of objectrequired1 to 20 region projects.
Show 2 child fieldsHide child fields
regionstringrequiredidstringrequired
agentCloudAgentStatusrequiredThe connection's enrolled agent; null when none is.
Show 7 child fieldsHide child fields
idstringrequiredonlinebooleanrequiredWhether it polled in the last 2 minutes.
agent_versionstringrequiredplatformstringrequiredenrolled_atstringrequiredlast_seen_atstringrequiredcredential_expires_atstringrequired
verified_atstring or nullrequiredcreated_atstringrequiredupdated_atstringrequiredsetupCloudConnectionSetuprequiredWhat you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in
permissions; none creates a key Pantech holds.Show 10 child fieldsHide child fields
accessstringrequiredfederated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud).agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.One of
federated,agent.issuer_urlstring or nullrequiredPantech's identity provider URL, which your cloud trusts; null for agent providers.
audiencestring or nullrequiredThe audience every token carries; null for agent providers.
subjectstringrequiredThe subject your trust policy requires: this connection's id.
quick_create_urlstring or nullrequiredOpens AWS's create-stack page with this template and connection filled in; null when not offered.
templatestringrequiredThe main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.
template_formatstringrequiredOne of
cloudformation,shell,markdown,agent.filesarray of objectrequiredFurther setup files, such as a Terraform version of the setup or JSON documents to paste.
Show 2 child fieldsHide child fields
namestringrequiredcontentstringrequired
permissionsarray of stringrequiredEvery read-only permission the setup grants.
agentCloudAgentSetuprequiredHow to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (
token_variablesis empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.Show 8 child fieldsHide child fields
imagestringrequiredThe agent's container image.
download_urlstring or nullrequiredWhere the agent's binaries are published.
api_urlstringrequiredtoken_variablesarray of stringrequiredThe environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.
token_how_tostringrequiredenroll_commandstringrequiredContains
<ENROLLMENT_CODE>where the one-time code goes.run_commandstringrequiredcontainer_commandstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 409
IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different request. - 422
VALIDATION_FAILED: a field is invalid;errorsnames it.providermust beaws. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/cloud-connections" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "web-1"
}'{
"id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"provider": "aws",
"name": "web-1",
"status": "awaiting_role",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"role_arn": "role-arn",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"gcp": {
"project_number": "project-number",
"pool_id": "pool-id",
"provider_id": "provider-id",
"service_account_email": "service-account-email",
"project_ids": [
"project-ids"
]
},
"azure": {
"tenant_id": "tenant-id",
"client_id": "client-id",
"subscription_ids": [
"subscription-ids"
]
},
"huawei": {
"identity_provider_id": "identity-provider-id",
"projects": [
{
"region": "af-abj",
"id": "id"
}
]
},
"agent": {
"id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
"online": true,
"agent_version": "agent-version",
"platform": "platform",
"enrolled_at": "2026-10-03T09:30:00Z",
"last_seen_at": "2026-10-03T09:30:00Z",
"credential_expires_at": "2026-10-03T09:30:00Z"
},
"verified_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"setup": {
"access": "federated",
"issuer_url": "issuer-url",
"audience": "audience",
"subject": "subject",
"quick_create_url": "quick-create-url",
"template": "template",
"template_format": "cloudformation",
"files": [
{
"name": "web-1",
"content": "content"
}
],
"permissions": [
"permissions"
],
"agent": {
"image": "image",
"download_url": "download-url",
"api_url": "api-url",
"token_variables": [
"token-variables"
],
"token_how_to": "token-how-to",
"enroll_command": "enroll-command",
"run_command": "run-command",
"container_command": "container-command"
}
}
}Get a cloud connection
One connection, with its status and setup. status is awaiting_role until you send the role ARN, verifying while Pantech tries it, then connected or failed (see failure).
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
connection_idstringrequired
Response 200
The connection.idstringrequiredproviderstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredstatusstringrequiredawaiting_role(federated providers: waiting for what the setup printed),awaiting_agent(other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status),verifying,connectedorfailed.One of
awaiting_role,awaiting_agent,verifying,connected,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
role_arnstring or nullrequiredaws_account_idstring or nullrequiredSet for AWS connections only; see external_account_id.
external_account_idstring or nullrequiredThe source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.
gcpCloudGCPFederationrequiredWhat the Google Cloud setup printed.
Show 5 child fieldsHide child fields
project_numberstringrequiredpool_idstringrequiredprovider_idstringrequiredservice_account_emailstringrequiredproject_idsarray of stringrequiredThe projects to scan, 1 to 20.
azureCloudAzureFederationrequiredWhat the Azure setup printed.
Show 3 child fieldsHide child fields
tenant_idstringrequiredclient_idstringrequiredThe app registration's application (client) ID.
subscription_idsarray of stringrequiredThe subscriptions to scan, 1 to 20.
huaweiCloudHuaweiFederationrequiredYour Huawei Cloud identity provider and the projects to scan.
Show 2 child fieldsHide child fields
identity_provider_idstringrequiredprojectsarray of objectrequired1 to 20 region projects.
Show 2 child fieldsHide child fields
regionstringrequiredidstringrequired
agentCloudAgentStatusrequiredThe connection's enrolled agent; null when none is.
Show 7 child fieldsHide child fields
idstringrequiredonlinebooleanrequiredWhether it polled in the last 2 minutes.
agent_versionstringrequiredplatformstringrequiredenrolled_atstringrequiredlast_seen_atstringrequiredcredential_expires_atstringrequired
verified_atstring or nullrequiredcreated_atstringrequiredupdated_atstringrequiredsetupCloudConnectionSetuprequiredWhat you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in
permissions; none creates a key Pantech holds.Show 10 child fieldsHide child fields
accessstringrequiredfederated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud).agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.One of
federated,agent.issuer_urlstring or nullrequiredPantech's identity provider URL, which your cloud trusts; null for agent providers.
audiencestring or nullrequiredThe audience every token carries; null for agent providers.
subjectstringrequiredThe subject your trust policy requires: this connection's id.
quick_create_urlstring or nullrequiredOpens AWS's create-stack page with this template and connection filled in; null when not offered.
templatestringrequiredThe main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.
template_formatstringrequiredOne of
cloudformation,shell,markdown,agent.filesarray of objectrequiredFurther setup files, such as a Terraform version of the setup or JSON documents to paste.
Show 2 child fieldsHide child fields
namestringrequiredcontentstringrequired
permissionsarray of stringrequiredEvery read-only permission the setup grants.
agentCloudAgentSetuprequiredHow to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (
token_variablesis empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.Show 8 child fieldsHide child fields
imagestringrequiredThe agent's container image.
download_urlstring or nullrequiredWhere the agent's binaries are published.
api_urlstringrequiredtoken_variablesarray of stringrequiredThe environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.
token_how_tostringrequiredenroll_commandstringrequiredContains
<ENROLLMENT_CODE>where the one-time code goes.run_commandstringrequiredcontainer_commandstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"provider": "aws",
"name": "web-1",
"status": "awaiting_role",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"role_arn": "role-arn",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"gcp": {
"project_number": "project-number",
"pool_id": "pool-id",
"provider_id": "provider-id",
"service_account_email": "service-account-email",
"project_ids": [
"project-ids"
]
},
"azure": {
"tenant_id": "tenant-id",
"client_id": "client-id",
"subscription_ids": [
"subscription-ids"
]
},
"huawei": {
"identity_provider_id": "identity-provider-id",
"projects": [
{
"region": "af-abj",
"id": "id"
}
]
},
"agent": {
"id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
"online": true,
"agent_version": "agent-version",
"platform": "platform",
"enrolled_at": "2026-10-03T09:30:00Z",
"last_seen_at": "2026-10-03T09:30:00Z",
"credential_expires_at": "2026-10-03T09:30:00Z"
},
"verified_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"setup": {
"access": "federated",
"issuer_url": "issuer-url",
"audience": "audience",
"subject": "subject",
"quick_create_url": "quick-create-url",
"template": "template",
"template_format": "cloudformation",
"files": [
{
"name": "web-1",
"content": "content"
}
],
"permissions": [
"permissions"
],
"agent": {
"image": "image",
"download_url": "download-url",
"api_url": "api-url",
"token_variables": [
"token-variables"
],
"token_how_to": "token-how-to",
"enroll_command": "enroll-command",
"run_command": "run-command",
"container_command": "container-command"
}
}
}Update a cloud connection
Renames a connection, sets the role ARN your stack created, or retries a failed check (retry: true). Setting role_arn or retry queues a verification: Pantech assumes the role and reads which AWS account it belongs to, usually within a minute. Owners and admins only.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
connection_idstringrequired
Body
application/jsonnamestringrole_arnstringAWS: the stack's RoleArn output.
gcpCloudGCPFederationWhat the Google Cloud setup printed.
Show 5 child fieldsHide child fields
project_numberstringrequiredpool_idstringrequiredprovider_idstringrequiredservice_account_emailstringrequiredproject_idsarray of stringrequiredThe projects to scan, 1 to 20.
azureCloudAzureFederationWhat the Azure setup printed.
Show 3 child fieldsHide child fields
tenant_idstringrequiredclient_idstringrequiredThe app registration's application (client) ID.
subscription_idsarray of stringrequiredThe subscriptions to scan, 1 to 20.
huaweiCloudHuaweiFederationYour Huawei Cloud identity provider and the projects to scan.
Show 2 child fieldsHide child fields
identity_provider_idstringrequiredprojectsarray of objectrequired1 to 20 region projects.
Show 2 child fieldsHide child fields
regionstringrequiredidstringrequired
retrybooleanCheck the connection again.
Response 200
The connection.idstringrequiredproviderstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredstatusstringrequiredawaiting_role(federated providers: waiting for what the setup printed),awaiting_agent(other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status),verifying,connectedorfailed.One of
awaiting_role,awaiting_agent,verifying,connected,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
role_arnstring or nullrequiredaws_account_idstring or nullrequiredSet for AWS connections only; see external_account_id.
external_account_idstring or nullrequiredThe source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.
gcpCloudGCPFederationrequiredWhat the Google Cloud setup printed.
Show 5 child fieldsHide child fields
project_numberstringrequiredpool_idstringrequiredprovider_idstringrequiredservice_account_emailstringrequiredproject_idsarray of stringrequiredThe projects to scan, 1 to 20.
azureCloudAzureFederationrequiredWhat the Azure setup printed.
Show 3 child fieldsHide child fields
tenant_idstringrequiredclient_idstringrequiredThe app registration's application (client) ID.
subscription_idsarray of stringrequiredThe subscriptions to scan, 1 to 20.
huaweiCloudHuaweiFederationrequiredYour Huawei Cloud identity provider and the projects to scan.
Show 2 child fieldsHide child fields
identity_provider_idstringrequiredprojectsarray of objectrequired1 to 20 region projects.
Show 2 child fieldsHide child fields
regionstringrequiredidstringrequired
agentCloudAgentStatusrequiredThe connection's enrolled agent; null when none is.
Show 7 child fieldsHide child fields
idstringrequiredonlinebooleanrequiredWhether it polled in the last 2 minutes.
agent_versionstringrequiredplatformstringrequiredenrolled_atstringrequiredlast_seen_atstringrequiredcredential_expires_atstringrequired
verified_atstring or nullrequiredcreated_atstringrequiredupdated_atstringrequiredsetupCloudConnectionSetuprequiredWhat you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in
permissions; none creates a key Pantech holds.Show 10 child fieldsHide child fields
accessstringrequiredfederated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud).agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.One of
federated,agent.issuer_urlstring or nullrequiredPantech's identity provider URL, which your cloud trusts; null for agent providers.
audiencestring or nullrequiredThe audience every token carries; null for agent providers.
subjectstringrequiredThe subject your trust policy requires: this connection's id.
quick_create_urlstring or nullrequiredOpens AWS's create-stack page with this template and connection filled in; null when not offered.
templatestringrequiredThe main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.
template_formatstringrequiredOne of
cloudformation,shell,markdown,agent.filesarray of objectrequiredFurther setup files, such as a Terraform version of the setup or JSON documents to paste.
Show 2 child fieldsHide child fields
namestringrequiredcontentstringrequired
permissionsarray of stringrequiredEvery read-only permission the setup grants.
agentCloudAgentSetuprequiredHow to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (
token_variablesis empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.Show 8 child fieldsHide child fields
imagestringrequiredThe agent's container image.
download_urlstring or nullrequiredWhere the agent's binaries are published.
api_urlstringrequiredtoken_variablesarray of stringrequiredThe environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.
token_how_tostringrequiredenroll_commandstringrequiredContains
<ENROLLMENT_CODE>where the one-time code goes.run_commandstringrequiredcontainer_commandstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 409
CONFLICT: the connection changed at the same time. Read it again and retry. - 422
VALIDATION_FAILED: a field is invalid;errorsnames it.role_arnmust be the stack's RoleArn output, likearn:aws:iam::123456789012:role/name. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X PATCH "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"provider": "aws",
"name": "web-1",
"status": "awaiting_role",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"role_arn": "role-arn",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"gcp": {
"project_number": "project-number",
"pool_id": "pool-id",
"provider_id": "provider-id",
"service_account_email": "service-account-email",
"project_ids": [
"project-ids"
]
},
"azure": {
"tenant_id": "tenant-id",
"client_id": "client-id",
"subscription_ids": [
"subscription-ids"
]
},
"huawei": {
"identity_provider_id": "identity-provider-id",
"projects": [
{
"region": "af-abj",
"id": "id"
}
]
},
"agent": {
"id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
"online": true,
"agent_version": "agent-version",
"platform": "platform",
"enrolled_at": "2026-10-03T09:30:00Z",
"last_seen_at": "2026-10-03T09:30:00Z",
"credential_expires_at": "2026-10-03T09:30:00Z"
},
"verified_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"setup": {
"access": "federated",
"issuer_url": "issuer-url",
"audience": "audience",
"subject": "subject",
"quick_create_url": "quick-create-url",
"template": "template",
"template_format": "cloudformation",
"files": [
{
"name": "web-1",
"content": "content"
}
],
"permissions": [
"permissions"
],
"agent": {
"image": "image",
"download_url": "download-url",
"api_url": "api-url",
"token_variables": [
"token-variables"
],
"token_how_to": "token-how-to",
"enroll_command": "enroll-command",
"run_command": "run-command",
"container_command": "container-command"
}
}
}Disconnect a cloud account
Removes the connection and its scans from Pantech; migration plans made from it stay. To revoke access on the AWS side too, delete the CloudFormation stack. Disconnecting only takes access away, so it needs write, not delete. Owners and admins only.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
connection_idstringrequired
Response 204
Disconnected. No body.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X DELETE "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"List scans
A connection's scans, newest first, without their inventories. The 10 newest finished scans are kept.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
connection_idstringrequired
Response 200
Scans.dataarray of CloudScanrequiredShow 17 child fieldsHide child fields
idstringrequiredconnection_idstringrequiredrunnerstringrequiredworker(Pantech read your cloud) oragent(your agent did).One of
worker,agent.statusstringrequiredOne of
queued,running,succeeded,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredproviderstring or nullrequiredaws_account_idstring or nullrequiredexternal_account_idstring or nullrequiredregionsarray of stringrequiredRegions read.
countsCloudScanCountsrequiredShow 12 child fieldsHide child fields
instancesintegerrequiredvolumesintegerrequirednetworksintegerrequiredsubnetsintegerrequiredsecurity_groupsintegerrequiredpublic_ipsintegerrequiredload_balancersintegerrequireddatabasesintegerrequiredbucketsintegerrequiredusersintegerrequiredssh_keysintegerrequiredkubernetes_clustersintegerrequired
costCloudCostrequiredThe source account's whole bill, every service.
Show 3 child fieldsHide child fields
currencystringrequiredaverage_monthly_minorintegerrequiredAverage of the months, in minor units of currency.
monthsarray of CloudCostMonthrequiredShow 2 child fieldsHide child fields
monthstringrequiredYYYY-MM.
amount_minorintegerrequired
warningsarray of stringrequiredParts not read, e.g.
cost_unavailableorregion_denied:eu-south-1.truncatedarray of stringrequiredKinds cut at 2,000 items.
inventoryCloudInventoryrequiredEverything a scan found.
Show 12 child fieldsHide child fields
instancesarray of objectrequiredShow 19 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstringrequiredzonestring or nullrequiredinstance_typestringrequiredstatestringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredplatformstringrequiredos_namestring or nullrequiredvolume_idsarray of stringrequirednetwork_idstring or nullrequiredsubnet_idstring or nullrequiredsecurity_group_idsarray of stringrequiredpublic_ipstring or nullrequiredprivate_ipstring or nullrequiredkey_namestring or nullrequiredlaunched_atstring or nullrequired
volumesarray of objectrequiredShow 8 child fieldsHide child fields
idstringrequiredregionstringrequiredzonestring or nullrequiredtypestringrequiredsize_gbintegerrequiredattached_tostring or nullrequireddevicestring or nullrequiredencryptedbooleanrequired
networksarray of objectrequiredShow 5 child fieldsHide child fields
idstringrequiredregionstringrequirednamestring or nullrequiredcidrstringrequiredis_defaultbooleanrequired
subnetsarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstringrequirednamestring or nullrequiredcidrstringrequiredzonestring or nullrequiredmaps_public_ipbooleanrequired
security_groupsarray of objectrequiredShow 6 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstring or nullrequirednamestringrequireddescriptionstring or nullrequiredrulesarray of objectrequiredShow 8 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredfrom_portinteger or nullrequiredto_portinteger or nullrequiredcidrstring or nullrequiredipv6_cidrstring or nullrequiredsource_group_idstring or nullrequiredprefix_list_idstring or nullrequired
public_ipsarray of objectrequiredShow 4 child fieldsHide child fields
idstringrequiredregionstringrequiredaddressstringrequiredinstance_idstring or nullrequired
load_balancersarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednamestringrequiredtypestringrequiredschemestringrequirednetwork_idstring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
databasesarray of objectrequiredShow 10 child fieldsHide child fields
idstringrequiredregionstringrequiredenginestringrequiredengine_versionstringrequiredinstance_classstringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredstorage_gbintegerrequiredmulti_azbooleanrequiredpublicly_accessiblebooleanrequired
bucketsarray of objectrequiredShow 3 child fieldsHide child fields
namestringrequiredregionstring or nullrequiredcreated_atstring or nullrequired
usersarray of objectrequiredShow 8 child fieldsHide child fields
idstring or nullrequirednamestringrequiredemailstring or nullrequiredis_adminbooleanrequiredsourcestring or nullrequiredWhere the person came from:
iam_user,identity_center,gcp_iam,entra,team.access_levelstring or nullrequiredOne of
admin,write,read,null.rolesarray of stringrequiredThe source cloud's own role names.
created_atstring or nullrequired
ssh_keysarray of objectrequiredShow 4 child fieldsHide child fields
namestringrequiredregionstringrequiredfingerprintstring or nullrequiredpublic_keystring or nullrequired
kubernetes_clustersarray of CloudKubernetesClusterrequiredShow 9 child fieldsHide child fields
idstringrequirednamestringrequiredregionstringrequiredproviderstringrequiredWho runs the control plane: eks, gke, aks, doks, lke or self_managed.
versionstring or nullrequiredendpoint_publicbooleanrequirednode_poolsarray of CloudNodePoolrequiredShow 11 child fieldsHide child fields
namestringrequiredinstance_typestring or nullrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredgpubooleanrequiredwindowsbooleanrequireddesiredintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequired
addonsarray of stringrequiredcreated_atstring or nullrequired
next_cursorstring or nullrequiredAlways null: this list is returned whole.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/scans" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"data": [
{
"id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"runner": "worker",
"status": "queued",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"created_at": "2026-10-03T09:30:00Z",
"started_at": "2026-10-03T09:30:00Z",
"finished_at": "2026-10-03T09:30:00Z",
"provider": "provider",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"regions": [
"regions"
],
"counts": {
"instances": 1,
"volumes": 1,
"networks": 1,
"subnets": 1,
"security_groups": 1,
"public_ips": 1,
"load_balancers": 1,
"databases": 1,
"buckets": 1,
"users": 1,
"ssh_keys": 1,
"kubernetes_clusters": 1
},
"cost": {
"currency": "NGN",
"average_monthly_minor": 1,
"months": [
{
"month": "month",
"amount_minor": 1059200
}
]
},
"warnings": [
"warnings"
],
"truncated": [
"truncated"
],
"inventory": {
"instances": [
{
"id": "id",
"name": "web-1",
"region": "af-abj",
"zone": "af-abj-1",
"instance_type": "instance-type",
"state": "state",
"vcpu": 2,
"memory_mib": 1,
"architecture": "architecture",
"platform": "platform",
"os_name": "os-name",
"volume_ids": [
"volume-ids"
],
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_ids": [
"sg_06gk3x9tq7m2v8r4y1c5d0zp8w"
],
"public_ip": "public-ip",
"private_ip": "<server-private-ip>",
"key_name": "key-name",
"launched_at": "2026-10-03T09:30:00Z"
}
],
"volumes": [
{
"id": "id",
"region": "af-abj",
"zone": "af-abj-1",
"type": "compute",
"size_gb": 20,
"attached_to": "attached-to",
"device": "device",
"encrypted": true
}
],
"networks": [
{
"id": "id",
"region": "af-abj",
"name": "web-1",
"cidr": "<vpc-cidr>",
"is_default": true
}
],
"subnets": [
{
"id": "id",
"region": "af-abj",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"cidr": "<vpc-cidr>",
"zone": "af-abj-1",
"maps_public_ip": true
}
],
"security_groups": [
{
"id": "id",
"region": "af-abj",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"description": "description",
"rules": [
{
"direction": "ingress",
"protocol": "protocol",
"from_port": 1,
"to_port": 1,
"cidr": "<vpc-cidr>",
"ipv6_cidr": "ipv6-cidr",
"source_group_id": "source-group-id",
"prefix_list_id": "prefix-list-id"
}
]
}
],
"public_ips": [
{
"id": "id",
"region": "af-abj",
"address": "<public-ip>",
"instance_id": "vm_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"load_balancers": [
{
"id": "id",
"region": "af-abj",
"name": "web-1",
"type": "compute",
"scheme": "scheme",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
]
}
],
"databases": [
{
"id": "id",
"region": "af-abj",
"engine": "postgresql",
"engine_version": "engine-version",
"instance_class": "instance-class",
"vcpu": 2,
"memory_mib": 1,
"storage_gb": 100,
"multi_az": true,
"publicly_accessible": true
}
],
"buckets": [
{
"name": "web-1",
"region": "af-abj",
"created_at": "2026-10-03T09:30:00Z"
}
],
"users": [
{
"id": "id",
"name": "web-1",
"email": "email",
"is_admin": true,
"source": "source",
"access_level": "admin",
"roles": [
"roles"
],
"created_at": "2026-10-03T09:30:00Z"
}
],
"ssh_keys": [
{
"name": "web-1",
"region": "af-abj",
"fingerprint": "SHA256:Qm8vWv3n7rC1bK0pXcFZ9yS2t4uJ6hLdA5gE8iRqTzo",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci"
}
],
"kubernetes_clusters": [
{
"id": "id",
"name": "web-1",
"region": "af-abj",
"provider": "provider",
"version": "version",
"endpoint_public": true,
"node_pools": [
{
"name": null,
"instance_type": null,
"vcpu": null,
"memory_mib": null,
"architecture": null,
"gpu": null,
"windows": null,
"desired": null,
"autoscaling": null,
"min": null,
"max": null
}
],
"addons": [
"addons"
],
"created_at": "2026-10-03T09:30:00Z"
}
]
}
}
],
"next_cursor": null
}Scan a cloud account
Queues a read of everything the role can see: servers, disks, networks, firewall groups, public addresses, load balancers, databases, bucket names, users, SSH keys and the last three months of spend, in every enabled region. Follow it with GET /public/v1/cloud-scans/{scan_id} until status is succeeded or failed; most accounts take under five minutes. Reading spend costs USD 0.01 on your AWS bill. Owners and admins only.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
connection_idstringrequired
Response 202
The queued scan.idstringrequiredconnection_idstringrequiredrunnerstringrequiredworker(Pantech read your cloud) oragent(your agent did).One of
worker,agent.statusstringrequiredOne of
queued,running,succeeded,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredproviderstring or nullrequiredaws_account_idstring or nullrequiredexternal_account_idstring or nullrequiredregionsarray of stringrequiredRegions read.
countsCloudScanCountsrequiredShow 12 child fieldsHide child fields
instancesintegerrequiredvolumesintegerrequirednetworksintegerrequiredsubnetsintegerrequiredsecurity_groupsintegerrequiredpublic_ipsintegerrequiredload_balancersintegerrequireddatabasesintegerrequiredbucketsintegerrequiredusersintegerrequiredssh_keysintegerrequiredkubernetes_clustersintegerrequired
costCloudCostrequiredThe source account's whole bill, every service.
Show 3 child fieldsHide child fields
currencystringrequiredaverage_monthly_minorintegerrequiredAverage of the months, in minor units of currency.
monthsarray of CloudCostMonthrequiredShow 2 child fieldsHide child fields
monthstringrequiredYYYY-MM.
amount_minorintegerrequired
warningsarray of stringrequiredParts not read, e.g.
cost_unavailableorregion_denied:eu-south-1.truncatedarray of stringrequiredKinds cut at 2,000 items.
inventoryCloudInventoryrequiredEverything a scan found.
Show 12 child fieldsHide child fields
instancesarray of objectrequiredShow 19 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstringrequiredzonestring or nullrequiredinstance_typestringrequiredstatestringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredplatformstringrequiredos_namestring or nullrequiredvolume_idsarray of stringrequirednetwork_idstring or nullrequiredsubnet_idstring or nullrequiredsecurity_group_idsarray of stringrequiredpublic_ipstring or nullrequiredprivate_ipstring or nullrequiredkey_namestring or nullrequiredlaunched_atstring or nullrequired
volumesarray of objectrequiredShow 8 child fieldsHide child fields
idstringrequiredregionstringrequiredzonestring or nullrequiredtypestringrequiredsize_gbintegerrequiredattached_tostring or nullrequireddevicestring or nullrequiredencryptedbooleanrequired
networksarray of objectrequiredShow 5 child fieldsHide child fields
idstringrequiredregionstringrequirednamestring or nullrequiredcidrstringrequiredis_defaultbooleanrequired
subnetsarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstringrequirednamestring or nullrequiredcidrstringrequiredzonestring or nullrequiredmaps_public_ipbooleanrequired
security_groupsarray of objectrequiredShow 6 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstring or nullrequirednamestringrequireddescriptionstring or nullrequiredrulesarray of objectrequiredShow 8 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredfrom_portinteger or nullrequiredto_portinteger or nullrequiredcidrstring or nullrequiredipv6_cidrstring or nullrequiredsource_group_idstring or nullrequiredprefix_list_idstring or nullrequired
public_ipsarray of objectrequiredShow 4 child fieldsHide child fields
idstringrequiredregionstringrequiredaddressstringrequiredinstance_idstring or nullrequired
load_balancersarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednamestringrequiredtypestringrequiredschemestringrequirednetwork_idstring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
databasesarray of objectrequiredShow 10 child fieldsHide child fields
idstringrequiredregionstringrequiredenginestringrequiredengine_versionstringrequiredinstance_classstringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredstorage_gbintegerrequiredmulti_azbooleanrequiredpublicly_accessiblebooleanrequired
bucketsarray of objectrequiredShow 3 child fieldsHide child fields
namestringrequiredregionstring or nullrequiredcreated_atstring or nullrequired
usersarray of objectrequiredShow 8 child fieldsHide child fields
idstring or nullrequirednamestringrequiredemailstring or nullrequiredis_adminbooleanrequiredsourcestring or nullrequiredWhere the person came from:
iam_user,identity_center,gcp_iam,entra,team.access_levelstring or nullrequiredOne of
admin,write,read,null.rolesarray of stringrequiredThe source cloud's own role names.
created_atstring or nullrequired
ssh_keysarray of objectrequiredShow 4 child fieldsHide child fields
namestringrequiredregionstringrequiredfingerprintstring or nullrequiredpublic_keystring or nullrequired
kubernetes_clustersarray of CloudKubernetesClusterrequiredShow 9 child fieldsHide child fields
idstringrequirednamestringrequiredregionstringrequiredproviderstringrequiredWho runs the control plane: eks, gke, aks, doks, lke or self_managed.
versionstring or nullrequiredendpoint_publicbooleanrequirednode_poolsarray of CloudNodePoolrequiredShow 11 child fieldsHide child fields
namestringrequiredinstance_typestring or nullrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredgpubooleanrequiredwindowsbooleanrequireddesiredintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequired
addonsarray of stringrequiredcreated_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 409
CLOUD_CONNECTION_NOT_CONNECTED: finish connecting first.CLOUD_CONNECTION_VERIFYING: the connection is still being checked.CLOUD_SCAN_IN_PROGRESS: a scan is already running.IDEMPOTENCY_CONFLICT: this Idempotency-Key was used for another connection. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/scans" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"runner": "worker",
"status": "queued",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"created_at": "2026-10-03T09:30:00Z",
"started_at": "2026-10-03T09:30:00Z",
"finished_at": "2026-10-03T09:30:00Z",
"provider": "provider",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"regions": [
"regions"
],
"counts": {
"instances": 1,
"volumes": 1,
"networks": 1,
"subnets": 1,
"security_groups": 1,
"public_ips": 1,
"load_balancers": 1,
"databases": 1,
"buckets": 1,
"users": 1,
"ssh_keys": 1,
"kubernetes_clusters": 1
},
"cost": {
"currency": "NGN",
"average_monthly_minor": 1,
"months": [
{
"month": "month",
"amount_minor": 1059200
}
]
},
"warnings": [
"warnings"
],
"truncated": [
"truncated"
],
"inventory": {
"instances": [
{
"id": "id",
"name": "web-1",
"region": "af-abj",
"zone": "af-abj-1",
"instance_type": "instance-type",
"state": "state",
"vcpu": 2,
"memory_mib": 1,
"architecture": "architecture",
"platform": "platform",
"os_name": "os-name",
"volume_ids": [
"volume-ids"
],
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_ids": [
"sg_06gk3x9tq7m2v8r4y1c5d0zp8w"
],
"public_ip": "public-ip",
"private_ip": "<server-private-ip>",
"key_name": "key-name",
"launched_at": "2026-10-03T09:30:00Z"
}
],
"volumes": [
{
"id": "id",
"region": "af-abj",
"zone": "af-abj-1",
"type": "compute",
"size_gb": 20,
"attached_to": "attached-to",
"device": "device",
"encrypted": true
}
],
"networks": [
{
"id": "id",
"region": "af-abj",
"name": "web-1",
"cidr": "<vpc-cidr>",
"is_default": true
}
],
"subnets": [
{
"id": "id",
"region": "af-abj",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"cidr": "<vpc-cidr>",
"zone": "af-abj-1",
"maps_public_ip": true
}
],
"security_groups": [
{
"id": "id",
"region": "af-abj",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"description": "description",
"rules": [
{
"direction": "ingress",
"protocol": "protocol",
"from_port": 1,
"to_port": 1,
"cidr": "<vpc-cidr>",
"ipv6_cidr": "ipv6-cidr",
"source_group_id": "source-group-id",
"prefix_list_id": "prefix-list-id"
}
]
}
],
"public_ips": [
{
"id": "id",
"region": "af-abj",
"address": "<public-ip>",
"instance_id": "vm_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"load_balancers": [
{
"id": "id",
"region": "af-abj",
"name": "web-1",
"type": "compute",
"scheme": "scheme",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
]
}
],
"databases": [
{
"id": "id",
"region": "af-abj",
"engine": "postgresql",
"engine_version": "engine-version",
"instance_class": "instance-class",
"vcpu": 2,
"memory_mib": 1,
"storage_gb": 100,
"multi_az": true,
"publicly_accessible": true
}
],
"buckets": [
{
"name": "web-1",
"region": "af-abj",
"created_at": "2026-10-03T09:30:00Z"
}
],
"users": [
{
"id": "id",
"name": "web-1",
"email": "email",
"is_admin": true,
"source": "source",
"access_level": "admin",
"roles": [
"roles"
],
"created_at": "2026-10-03T09:30:00Z"
}
],
"ssh_keys": [
{
"name": "web-1",
"region": "af-abj",
"fingerprint": "SHA256:Qm8vWv3n7rC1bK0pXcFZ9yS2t4uJ6hLdA5gE8iRqTzo",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci"
}
],
"kubernetes_clusters": [
{
"id": "id",
"name": "web-1",
"region": "af-abj",
"provider": "provider",
"version": "version",
"endpoint_public": true,
"node_pools": [
{
"name": "web-1",
"instance_type": "instance-type",
"vcpu": 2,
"memory_mib": 1,
"architecture": "architecture",
"gpu": true,
"windows": true,
"desired": 1,
"autoscaling": true,
"min": 1,
"max": 1
}
],
"addons": [
"addons"
],
"created_at": "2026-10-03T09:30:00Z"
}
]
}
}Get a scan
A scan's status, what it found (counts, cost, regions), and the parts it could not read (warnings). Add include=inventory for every item it found. Names and tags in the inventory are your own text, returned unchanged.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
scan_idstringrequired
Query parameters
includestringinventoryreturns everything the scan found.One of
inventory.
Response 200
The scan.idstringrequiredconnection_idstringrequiredrunnerstringrequiredworker(Pantech read your cloud) oragent(your agent did).One of
worker,agent.statusstringrequiredOne of
queued,running,succeeded,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
created_atstringrequiredstarted_atstring or nullrequiredfinished_atstring or nullrequiredproviderstring or nullrequiredaws_account_idstring or nullrequiredexternal_account_idstring or nullrequiredregionsarray of stringrequiredRegions read.
countsCloudScanCountsrequiredShow 12 child fieldsHide child fields
instancesintegerrequiredvolumesintegerrequirednetworksintegerrequiredsubnetsintegerrequiredsecurity_groupsintegerrequiredpublic_ipsintegerrequiredload_balancersintegerrequireddatabasesintegerrequiredbucketsintegerrequiredusersintegerrequiredssh_keysintegerrequiredkubernetes_clustersintegerrequired
costCloudCostrequiredThe source account's whole bill, every service.
Show 3 child fieldsHide child fields
currencystringrequiredaverage_monthly_minorintegerrequiredAverage of the months, in minor units of currency.
monthsarray of CloudCostMonthrequiredShow 2 child fieldsHide child fields
monthstringrequiredYYYY-MM.
amount_minorintegerrequired
warningsarray of stringrequiredParts not read, e.g.
cost_unavailableorregion_denied:eu-south-1.truncatedarray of stringrequiredKinds cut at 2,000 items.
inventoryCloudInventoryrequiredEverything a scan found.
Show 12 child fieldsHide child fields
instancesarray of objectrequiredShow 19 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstringrequiredzonestring or nullrequiredinstance_typestringrequiredstatestringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredplatformstringrequiredos_namestring or nullrequiredvolume_idsarray of stringrequirednetwork_idstring or nullrequiredsubnet_idstring or nullrequiredsecurity_group_idsarray of stringrequiredpublic_ipstring or nullrequiredprivate_ipstring or nullrequiredkey_namestring or nullrequiredlaunched_atstring or nullrequired
volumesarray of objectrequiredShow 8 child fieldsHide child fields
idstringrequiredregionstringrequiredzonestring or nullrequiredtypestringrequiredsize_gbintegerrequiredattached_tostring or nullrequireddevicestring or nullrequiredencryptedbooleanrequired
networksarray of objectrequiredShow 5 child fieldsHide child fields
idstringrequiredregionstringrequirednamestring or nullrequiredcidrstringrequiredis_defaultbooleanrequired
subnetsarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstringrequirednamestring or nullrequiredcidrstringrequiredzonestring or nullrequiredmaps_public_ipbooleanrequired
security_groupsarray of objectrequiredShow 6 child fieldsHide child fields
idstringrequiredregionstringrequirednetwork_idstring or nullrequirednamestringrequireddescriptionstring or nullrequiredrulesarray of objectrequiredShow 8 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredfrom_portinteger or nullrequiredto_portinteger or nullrequiredcidrstring or nullrequiredipv6_cidrstring or nullrequiredsource_group_idstring or nullrequiredprefix_list_idstring or nullrequired
public_ipsarray of objectrequiredShow 4 child fieldsHide child fields
idstringrequiredregionstringrequiredaddressstringrequiredinstance_idstring or nullrequired
load_balancersarray of objectrequiredShow 7 child fieldsHide child fields
idstringrequiredregionstringrequirednamestringrequiredtypestringrequiredschemestringrequirednetwork_idstring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
databasesarray of objectrequiredShow 10 child fieldsHide child fields
idstringrequiredregionstringrequiredenginestringrequiredengine_versionstringrequiredinstance_classstringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredstorage_gbintegerrequiredmulti_azbooleanrequiredpublicly_accessiblebooleanrequired
bucketsarray of objectrequiredShow 3 child fieldsHide child fields
namestringrequiredregionstring or nullrequiredcreated_atstring or nullrequired
usersarray of objectrequiredShow 8 child fieldsHide child fields
idstring or nullrequirednamestringrequiredemailstring or nullrequiredis_adminbooleanrequiredsourcestring or nullrequiredWhere the person came from:
iam_user,identity_center,gcp_iam,entra,team.access_levelstring or nullrequiredOne of
admin,write,read,null.rolesarray of stringrequiredThe source cloud's own role names.
created_atstring or nullrequired
ssh_keysarray of objectrequiredShow 4 child fieldsHide child fields
namestringrequiredregionstringrequiredfingerprintstring or nullrequiredpublic_keystring or nullrequired
kubernetes_clustersarray of CloudKubernetesClusterrequiredShow 9 child fieldsHide child fields
idstringrequirednamestringrequiredregionstringrequiredproviderstringrequiredWho runs the control plane: eks, gke, aks, doks, lke or self_managed.
versionstring or nullrequiredendpoint_publicbooleanrequirednode_poolsarray of CloudNodePoolrequiredShow 11 child fieldsHide child fields
namestringrequiredinstance_typestring or nullrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequiredarchitecturestringrequiredgpubooleanrequiredwindowsbooleanrequireddesiredintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequired
addonsarray of stringrequiredcreated_atstring or nullrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_SCAN_NOT_FOUND: no scan with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/cloud-scans/csn_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"runner": "worker",
"status": "queued",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"created_at": "2026-10-03T09:30:00Z",
"started_at": "2026-10-03T09:30:00Z",
"finished_at": "2026-10-03T09:30:00Z",
"provider": "provider",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"regions": [
"regions"
],
"counts": {
"instances": 1,
"volumes": 1,
"networks": 1,
"subnets": 1,
"security_groups": 1,
"public_ips": 1,
"load_balancers": 1,
"databases": 1,
"buckets": 1,
"users": 1,
"ssh_keys": 1,
"kubernetes_clusters": 1
},
"cost": {
"currency": "NGN",
"average_monthly_minor": 1,
"months": [
{
"month": "month",
"amount_minor": 1059200
}
]
},
"warnings": [
"warnings"
],
"truncated": [
"truncated"
],
"inventory": {
"instances": [
{
"id": "id",
"name": "web-1",
"region": "af-abj",
"zone": "af-abj-1",
"instance_type": "instance-type",
"state": "state",
"vcpu": 2,
"memory_mib": 1,
"architecture": "architecture",
"platform": "platform",
"os_name": "os-name",
"volume_ids": [
"volume-ids"
],
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"subnet_id": "snet_06gk3x9tq7m2v8r4y1c5d0zp8w",
"security_group_ids": [
"sg_06gk3x9tq7m2v8r4y1c5d0zp8w"
],
"public_ip": "public-ip",
"private_ip": "<server-private-ip>",
"key_name": "key-name",
"launched_at": "2026-10-03T09:30:00Z"
}
],
"volumes": [
{
"id": "id",
"region": "af-abj",
"zone": "af-abj-1",
"type": "compute",
"size_gb": 20,
"attached_to": "attached-to",
"device": "device",
"encrypted": true
}
],
"networks": [
{
"id": "id",
"region": "af-abj",
"name": "web-1",
"cidr": "<vpc-cidr>",
"is_default": true
}
],
"subnets": [
{
"id": "id",
"region": "af-abj",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"cidr": "<vpc-cidr>",
"zone": "af-abj-1",
"maps_public_ip": true
}
],
"security_groups": [
{
"id": "id",
"region": "af-abj",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"description": "description",
"rules": [
{
"direction": "ingress",
"protocol": "protocol",
"from_port": 1,
"to_port": 1,
"cidr": "<vpc-cidr>",
"ipv6_cidr": "ipv6-cidr",
"source_group_id": "source-group-id",
"prefix_list_id": "prefix-list-id"
}
]
}
],
"public_ips": [
{
"id": "id",
"region": "af-abj",
"address": "<public-ip>",
"instance_id": "vm_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
],
"load_balancers": [
{
"id": "id",
"region": "af-abj",
"name": "web-1",
"type": "compute",
"scheme": "scheme",
"network_id": "net_06gk3x9tq7m2v8r4y1c5d0zp8w",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
]
}
],
"databases": [
{
"id": "id",
"region": "af-abj",
"engine": "postgresql",
"engine_version": "engine-version",
"instance_class": "instance-class",
"vcpu": 2,
"memory_mib": 1,
"storage_gb": 100,
"multi_az": true,
"publicly_accessible": true
}
],
"buckets": [
{
"name": "web-1",
"region": "af-abj",
"created_at": "2026-10-03T09:30:00Z"
}
],
"users": [
{
"id": "id",
"name": "web-1",
"email": "email",
"is_admin": true,
"source": "source",
"access_level": "admin",
"roles": [
"roles"
],
"created_at": "2026-10-03T09:30:00Z"
}
],
"ssh_keys": [
{
"name": "web-1",
"region": "af-abj",
"fingerprint": "SHA256:Qm8vWv3n7rC1bK0pXcFZ9yS2t4uJ6hLdA5gE8iRqTzo",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci"
}
],
"kubernetes_clusters": [
{
"id": "id",
"name": "web-1",
"region": "af-abj",
"provider": "provider",
"version": "version",
"endpoint_public": true,
"node_pools": [
{
"name": "web-1",
"instance_type": "instance-type",
"vcpu": 2,
"memory_mib": 1,
"architecture": "architecture",
"gpu": true,
"windows": true,
"desired": 1,
"autoscaling": true,
"min": 1,
"max": 1
}
],
"addons": [
"addons"
],
"created_at": "2026-10-03T09:30:00Z"
}
]
}
}List migrations
Your organization's migration plans, newest first, without their items or estimate.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Response 200
Migrations.dataarray of MigrationrequiredShow 12 child fieldsHide child fields
idstringrequirednamestringrequiredregionstringrequiredconnection_idstringrequiredscan_idstringrequiredstagestringrequiredplanning. Copying arrives in a later release.One of
planning.versionintegerrequiredsummaryMigrationSummaryrequiredShow 4 child fieldsHide child fields
plannedintegerrequiredexcludedintegerrequiredunsupportedintegerrequiredby_kindobjectrequiredPlanned items per kind.
estimateMigrationEstimaterequiredPantech's monthly price for the plan next to the source's monthly bill, computed when read.
Show 10 child fieldsHide child fields
currencystringrequiredpantech_pricedbooleanrequiredFalse when part of the plan could not be priced; then pantech_monthly_minor is null.
pantech_monthly_minorinteger or nullrequiredcoversarray of stringrequiredWhat the Pantech price includes: servers, volumes, networks.
not_coveredarray of stringrequiredPlanned items the price leaves out, e.g. databases.
source_knownbooleanrequiredsource_monthly_minorinteger or nullrequiredsource_currencystring or nullrequiredsource_monthsintegerrequiredsource_scopestringrequiredwhole_account: the source figure is the whole cloud bill.One of
whole_account.
itemsarray of MigrationItemrequiredNull in a list.
Show 6 child fieldsHide child fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredaddonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
created_atstringrequiredupdated_atstringrequired
next_cursorstring or nullrequiredAlways null: this list is returned whole.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/migrations" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"data": [
{
"id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"region": "af-abj",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"stage": "planning",
"version": 1,
"summary": {
"planned": 1,
"excluded": 1,
"unsupported": 1,
"by_kind": {}
},
"estimate": {
"currency": "NGN",
"pantech_priced": true,
"pantech_monthly_minor": 1,
"covers": [
"covers"
],
"not_covered": [
"not-covered"
],
"source_known": true,
"source_monthly_minor": 1,
"source_currency": "source-currency",
"source_months": 1,
"source_scope": "whole_account"
},
"items": [
{
"key": "key",
"kind": "network",
"source": {
"id": "id",
"name": "web-1",
"region": "af-abj",
"summary": "summary",
"vcpu": 2,
"memory_mib": 1,
"disk_gb": 80
},
"status": "planned",
"flags": [
{
"code": "starter",
"message": "message",
"blocking": true
}
],
"target": {
"bucket": {
"name": "web-1",
"region": "af-abj",
"versioning": true,
"public_read": true,
"size_bytes": 1610612736,
"object_count": 1,
"size_as_of": "2030-11-14"
},
"plan_slug": "starter",
"disk_gb": 80,
"cidr": "<vpc-cidr>",
"network_key": "network-key",
"subnet_key": "subnet-key",
"instance_key": "instance-key",
"rules": [
{
"direction": null,
"protocol": null,
"port_range": null,
"cidr": null
}
],
"engine": "postgresql",
"engine_version": "engine-version",
"storage_gb": 100,
"role": "admin",
"email": "email",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
"listeners": [
{
"protocol": null,
"port": null
}
],
"image_slug": "ubuntu-24-04",
"invite_id": "invite-id",
"invited_at": "2026-10-03T09:30:00Z",
"kubernetes": {
"version_id": "version-id",
"version": "version",
"node_pools": [
null
],
"addons": [
null
],
"allow_downgrade": true
}
}
}
],
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}
],
"next_cursor": null
}Plan a migration
Builds a plan from a scan that succeeded: each server, disk, network, firewall group, database, key and person mapped to its Pantech equivalent, sized against today's plans, with anything that cannot move yet flagged and explained. Nothing is created: the plan is something to review, edit and export. region defaults to the first Pantech region. At most 25 migrations per organization. Owners and admins only.
The response includes a live price comparison: Pantech's monthly price for the planned servers, disks and networks next to the source account's average monthly bill.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Body
application/jsonscan_idstringrequirednamestringrequiredregionstringA Pantech region code; the first region when left out.
Response 201
The plan.idstringrequirednamestringrequiredregionstringrequiredconnection_idstringrequiredscan_idstringrequiredstagestringrequiredplanning. Copying arrives in a later release.One of
planning.versionintegerrequiredsummaryMigrationSummaryrequiredShow 4 child fieldsHide child fields
plannedintegerrequiredexcludedintegerrequiredunsupportedintegerrequiredby_kindobjectrequiredPlanned items per kind.
estimateMigrationEstimaterequiredPantech's monthly price for the plan next to the source's monthly bill, computed when read.
Show 10 child fieldsHide child fields
currencystringrequiredpantech_pricedbooleanrequiredFalse when part of the plan could not be priced; then pantech_monthly_minor is null.
pantech_monthly_minorinteger or nullrequiredcoversarray of stringrequiredWhat the Pantech price includes: servers, volumes, networks.
not_coveredarray of stringrequiredPlanned items the price leaves out, e.g. databases.
source_knownbooleanrequiredsource_monthly_minorinteger or nullrequiredsource_currencystring or nullrequiredsource_monthsintegerrequiredsource_scopestringrequiredwhole_account: the source figure is the whole cloud bill.One of
whole_account.
itemsarray of MigrationItemrequiredNull in a list.
Show 6 child fieldsHide child fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredShow 7 child fieldsHide child fields
namestringrequiredplan_slugstring or nullrequiredcountintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequiredsource_namestringrequired
addonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
created_atstringrequiredupdated_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_SCAN_NOT_FOUND: no scan with this id exists in your organization. - 409
CLOUD_SCAN_NOT_READY: the scan has not succeeded.IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with another scan. - 422
VALIDATION_FAILED: a field is invalid;errorsnames it.regionmust be a Pantech region code. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/migrations" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1"
}'{
"id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"region": "af-abj",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"stage": "planning",
"version": 1,
"summary": {
"planned": 1,
"excluded": 1,
"unsupported": 1,
"by_kind": {}
},
"estimate": {
"currency": "NGN",
"pantech_priced": true,
"pantech_monthly_minor": 1,
"covers": [
"covers"
],
"not_covered": [
"not-covered"
],
"source_known": true,
"source_monthly_minor": 1,
"source_currency": "source-currency",
"source_months": 1,
"source_scope": "whole_account"
},
"items": [
{
"key": "key",
"kind": "network",
"source": {
"id": "id",
"name": "web-1",
"region": "af-abj",
"summary": "summary",
"vcpu": 2,
"memory_mib": 1,
"disk_gb": 80
},
"status": "planned",
"flags": [
{
"code": "starter",
"message": "message",
"blocking": true
}
],
"target": {
"bucket": {
"name": "web-1",
"region": "af-abj",
"versioning": true,
"public_read": true,
"size_bytes": 1610612736,
"object_count": 1,
"size_as_of": "2030-11-14"
},
"plan_slug": "starter",
"disk_gb": 80,
"cidr": "<vpc-cidr>",
"network_key": "network-key",
"subnet_key": "subnet-key",
"instance_key": "instance-key",
"rules": [
{
"direction": "ingress",
"protocol": "tcp",
"port_range": "22",
"cidr": "<vpc-cidr>"
}
],
"engine": "postgresql",
"engine_version": "engine-version",
"storage_gb": 100,
"role": "admin",
"email": "email",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
],
"image_slug": "ubuntu-24-04",
"invite_id": "invite-id",
"invited_at": "2026-10-03T09:30:00Z",
"kubernetes": {
"version_id": "version-id",
"version": "version",
"node_pools": [
{
"name": "web-1",
"plan_slug": "starter",
"count": 1,
"autoscaling": true,
"min": 1,
"max": 1,
"source_name": "source-name"
}
],
"addons": [
"addons"
],
"allow_downgrade": true
}
}
}
],
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Get a migration
A plan with every item and a price comparison computed now, from current prices.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
migration_idstringrequired
Response 200
The plan.idstringrequirednamestringrequiredregionstringrequiredconnection_idstringrequiredscan_idstringrequiredstagestringrequiredplanning. Copying arrives in a later release.One of
planning.versionintegerrequiredsummaryMigrationSummaryrequiredShow 4 child fieldsHide child fields
plannedintegerrequiredexcludedintegerrequiredunsupportedintegerrequiredby_kindobjectrequiredPlanned items per kind.
estimateMigrationEstimaterequiredPantech's monthly price for the plan next to the source's monthly bill, computed when read.
Show 10 child fieldsHide child fields
currencystringrequiredpantech_pricedbooleanrequiredFalse when part of the plan could not be priced; then pantech_monthly_minor is null.
pantech_monthly_minorinteger or nullrequiredcoversarray of stringrequiredWhat the Pantech price includes: servers, volumes, networks.
not_coveredarray of stringrequiredPlanned items the price leaves out, e.g. databases.
source_knownbooleanrequiredsource_monthly_minorinteger or nullrequiredsource_currencystring or nullrequiredsource_monthsintegerrequiredsource_scopestringrequiredwhole_account: the source figure is the whole cloud bill.One of
whole_account.
itemsarray of MigrationItemrequiredNull in a list.
Show 6 child fieldsHide child fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredShow 7 child fieldsHide child fields
namestringrequiredplan_slugstring or nullrequiredcountintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequiredsource_namestringrequired
addonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
created_atstringrequiredupdated_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
MIGRATION_NOT_FOUND: no migration with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"region": "af-abj",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"stage": "planning",
"version": 1,
"summary": {
"planned": 1,
"excluded": 1,
"unsupported": 1,
"by_kind": {}
},
"estimate": {
"currency": "NGN",
"pantech_priced": true,
"pantech_monthly_minor": 1,
"covers": [
"covers"
],
"not_covered": [
"not-covered"
],
"source_known": true,
"source_monthly_minor": 1,
"source_currency": "source-currency",
"source_months": 1,
"source_scope": "whole_account"
},
"items": [
{
"key": "key",
"kind": "network",
"source": {
"id": "id",
"name": "web-1",
"region": "af-abj",
"summary": "summary",
"vcpu": 2,
"memory_mib": 1,
"disk_gb": 80
},
"status": "planned",
"flags": [
{
"code": "starter",
"message": "message",
"blocking": true
}
],
"target": {
"bucket": {
"name": "web-1",
"region": "af-abj",
"versioning": true,
"public_read": true,
"size_bytes": 1610612736,
"object_count": 1,
"size_as_of": "2030-11-14"
},
"plan_slug": "starter",
"disk_gb": 80,
"cidr": "<vpc-cidr>",
"network_key": "network-key",
"subnet_key": "subnet-key",
"instance_key": "instance-key",
"rules": [
{
"direction": "ingress",
"protocol": "tcp",
"port_range": "22",
"cidr": "<vpc-cidr>"
}
],
"engine": "postgresql",
"engine_version": "engine-version",
"storage_gb": 100,
"role": "admin",
"email": "email",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
],
"image_slug": "ubuntu-24-04",
"invite_id": "invite-id",
"invited_at": "2026-10-03T09:30:00Z",
"kubernetes": {
"version_id": "version-id",
"version": "version",
"node_pools": [
{
"name": "web-1",
"plan_slug": "starter",
"count": 1,
"autoscaling": true,
"min": 1,
"max": 1,
"source_name": "source-name"
}
],
"addons": [
"addons"
],
"allow_downgrade": true
}
}
}
],
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Rename a migration
Changes a plan's name. Owners and admins only.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
migration_idstringrequired
Body
application/jsonnamestringrequired
Response 200
The plan.idstringrequirednamestringrequiredregionstringrequiredconnection_idstringrequiredscan_idstringrequiredstagestringrequiredplanning. Copying arrives in a later release.One of
planning.versionintegerrequiredsummaryMigrationSummaryrequiredShow 4 child fieldsHide child fields
plannedintegerrequiredexcludedintegerrequiredunsupportedintegerrequiredby_kindobjectrequiredPlanned items per kind.
estimateMigrationEstimaterequiredPantech's monthly price for the plan next to the source's monthly bill, computed when read.
Show 10 child fieldsHide child fields
currencystringrequiredpantech_pricedbooleanrequiredFalse when part of the plan could not be priced; then pantech_monthly_minor is null.
pantech_monthly_minorinteger or nullrequiredcoversarray of stringrequiredWhat the Pantech price includes: servers, volumes, networks.
not_coveredarray of stringrequiredPlanned items the price leaves out, e.g. databases.
source_knownbooleanrequiredsource_monthly_minorinteger or nullrequiredsource_currencystring or nullrequiredsource_monthsintegerrequiredsource_scopestringrequiredwhole_account: the source figure is the whole cloud bill.One of
whole_account.
itemsarray of MigrationItemrequiredNull in a list.
Show 6 child fieldsHide child fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredShow 7 child fieldsHide child fields
namestringrequiredplan_slugstring or nullrequiredcountintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequiredsource_namestringrequired
addonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
created_atstringrequiredupdated_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
MIGRATION_NOT_FOUND: no migration with this id exists in your organization. - 409
CONFLICT: the plan changed at the same time. Read it again and retry. - 422
VALIDATION_FAILED: a field is invalid;errorsnames it. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X PATCH "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "web-1"
}'{
"id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"region": "af-abj",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"stage": "planning",
"version": 1,
"summary": {
"planned": 1,
"excluded": 1,
"unsupported": 1,
"by_kind": {}
},
"estimate": {
"currency": "NGN",
"pantech_priced": true,
"pantech_monthly_minor": 1,
"covers": [
"covers"
],
"not_covered": [
"not-covered"
],
"source_known": true,
"source_monthly_minor": 1,
"source_currency": "source-currency",
"source_months": 1,
"source_scope": "whole_account"
},
"items": [
{
"key": "key",
"kind": "network",
"source": {
"id": "id",
"name": "web-1",
"region": "af-abj",
"summary": "summary",
"vcpu": 2,
"memory_mib": 1,
"disk_gb": 80
},
"status": "planned",
"flags": [
{
"code": "starter",
"message": "message",
"blocking": true
}
],
"target": {
"bucket": {
"name": "web-1",
"region": "af-abj",
"versioning": true,
"public_read": true,
"size_bytes": 1610612736,
"object_count": 1,
"size_as_of": "2030-11-14"
},
"plan_slug": "starter",
"disk_gb": 80,
"cidr": "<vpc-cidr>",
"network_key": "network-key",
"subnet_key": "subnet-key",
"instance_key": "instance-key",
"rules": [
{
"direction": "ingress",
"protocol": "tcp",
"port_range": "22",
"cidr": "<vpc-cidr>"
}
],
"engine": "postgresql",
"engine_version": "engine-version",
"storage_gb": 100,
"role": "admin",
"email": "email",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
],
"image_slug": "ubuntu-24-04",
"invite_id": "invite-id",
"invited_at": "2026-10-03T09:30:00Z",
"kubernetes": {
"version_id": "version-id",
"version": "version",
"node_pools": [
{
"name": "web-1",
"plan_slug": "starter",
"count": 1,
"autoscaling": true,
"min": 1,
"max": 1,
"source_name": "source-name"
}
],
"addons": [
"addons"
],
"allow_downgrade": true
}
}
}
],
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Delete a migration
Deletes a plan. Nothing in Pantech or in your other cloud is touched. Owners and admins only.
Scope: write. Destructive: an AI app's key also needs delete.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
migration_idstringrequired
Response 204
Deleted. No body.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
MIGRATION_NOT_FOUND: no migration with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X DELETE "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Edit a plan item
Changes one item, named by its key: leave it out of the move (excluded), choose another plan (plan_slug, for servers and databases), a size (storage_gb, for disks and databases), an address range (cidr, for networks and subnets), or a person's role and email. Items flagged as unsupported stay unsupported. Owners and admins only.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
migration_idstringrequired
Body
application/jsonkeystringrequiredexcludedbooleanplan_slugstringstorage_gbintegerAt least 1.
cidrstringrolestringOne of
member,admin.emailstringallow_version_downgradebooleanOn a kubernetes_cluster item: consent to a lower Kubernetes version than the source runs.
Response 200
The plan.idstringrequirednamestringrequiredregionstringrequiredconnection_idstringrequiredscan_idstringrequiredstagestringrequiredplanning. Copying arrives in a later release.One of
planning.versionintegerrequiredsummaryMigrationSummaryrequiredShow 4 child fieldsHide child fields
plannedintegerrequiredexcludedintegerrequiredunsupportedintegerrequiredby_kindobjectrequiredPlanned items per kind.
estimateMigrationEstimaterequiredPantech's monthly price for the plan next to the source's monthly bill, computed when read.
Show 10 child fieldsHide child fields
currencystringrequiredpantech_pricedbooleanrequiredFalse when part of the plan could not be priced; then pantech_monthly_minor is null.
pantech_monthly_minorinteger or nullrequiredcoversarray of stringrequiredWhat the Pantech price includes: servers, volumes, networks.
not_coveredarray of stringrequiredPlanned items the price leaves out, e.g. databases.
source_knownbooleanrequiredsource_monthly_minorinteger or nullrequiredsource_currencystring or nullrequiredsource_monthsintegerrequiredsource_scopestringrequiredwhole_account: the source figure is the whole cloud bill.One of
whole_account.
itemsarray of MigrationItemrequiredNull in a list.
Show 6 child fieldsHide child fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredShow 7 child fieldsHide child fields
namestringrequiredplan_slugstring or nullrequiredcountintegerrequiredautoscalingbooleanrequiredminintegerrequiredmaxintegerrequiredsource_namestringrequired
addonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
created_atstringrequiredupdated_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
MIGRATION_NOT_FOUND: no migration with this id exists in your organization. - 409
CONFLICT: the plan changed at the same time. Read it again and retry. - 422
VALIDATION_FAILED:keynames no item (UNKNOWN_ITEM), or the change doesn't apply to it (INVALID_TARGET). - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X PATCH "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/items" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"key": "key"
}'{
"id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"region": "af-abj",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"stage": "planning",
"version": 1,
"summary": {
"planned": 1,
"excluded": 1,
"unsupported": 1,
"by_kind": {}
},
"estimate": {
"currency": "NGN",
"pantech_priced": true,
"pantech_monthly_minor": 1,
"covers": [
"covers"
],
"not_covered": [
"not-covered"
],
"source_known": true,
"source_monthly_minor": 1,
"source_currency": "source-currency",
"source_months": 1,
"source_scope": "whole_account"
},
"items": [
{
"key": "key",
"kind": "network",
"source": {
"id": "id",
"name": "web-1",
"region": "af-abj",
"summary": "summary",
"vcpu": 2,
"memory_mib": 1,
"disk_gb": 80
},
"status": "planned",
"flags": [
{
"code": "starter",
"message": "message",
"blocking": true
}
],
"target": {
"bucket": {
"name": "web-1",
"region": "af-abj",
"versioning": true,
"public_read": true,
"size_bytes": 1610612736,
"object_count": 1,
"size_as_of": "2030-11-14"
},
"plan_slug": "starter",
"disk_gb": 80,
"cidr": "<vpc-cidr>",
"network_key": "network-key",
"subnet_key": "subnet-key",
"instance_key": "instance-key",
"rules": [
{
"direction": "ingress",
"protocol": "tcp",
"port_range": "22",
"cidr": "<vpc-cidr>"
}
],
"engine": "postgresql",
"engine_version": "engine-version",
"storage_gb": 100,
"role": "admin",
"email": "email",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
],
"image_slug": "ubuntu-24-04",
"invite_id": "invite-id",
"invited_at": "2026-10-03T09:30:00Z",
"kubernetes": {
"version_id": "version-id",
"version": "version",
"node_pools": [
{
"name": "web-1",
"plan_slug": "starter",
"count": 1,
"autoscaling": true,
"min": 1,
"max": 1,
"source_name": "source-name"
}
],
"addons": [
"addons"
],
"allow_downgrade": true
}
}
}
],
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Export a migration as Terraform
The plan's planned items as Terraform for the Pantech-Dynamics/pantechdynamics provider: main.tf and variables.tf. Values Pantech cannot know (the image to start from, an SSH key, disk offerings, database passwords) are variables without defaults. Review it, then run terraform plan.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
migration_idstringrequired
Response 200
The files.filesarray of objectrequiredShow 2 child fieldsHide child fields
namestringrequiredcontentstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
MIGRATION_NOT_FOUND: no migration with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/terraform" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"files": [
{
"name": "web-1",
"content": "content"
}
]
}List the clouds Migrate can read
Every cloud Pantech Migrate can connect, how it reads each (federated: Pantech signs short-lived tokens your cloud trusts; agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine), and whether a scan reads its spend and its people.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Response 200
The providers.dataarray of CloudProviderrequiredShow 6 child fieldsHide child fields
slugstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredaccessstringrequiredOne of
federated,agent.cost_readablebooleanrequiredWhether a scan reads the source's spend. When false the comparison says the spend is not available.
people_readablebooleanrequiredWhether a scan lists the people with access. When false, add them to the plan by hand.
availablebooleanrequiredWhether this deployment can connect it now.
next_cursorstring or nullrequiredAlways null: this list is returned whole.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.MIGRATE_AGENT_UNAVAILABLE/MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is not available on this deployment yet.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/cloud-providers" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"data": [
{
"slug": "aws",
"name": "web-1",
"access": "federated",
"cost_readable": true,
"people_readable": true,
"available": true
}
],
"next_cursor": null
}Enroll a Migrate agent
A one-time enrollment code for the connection's Pantech Migrate agent, shown only in this response, valid once for an hour. Any connection may have an agent: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves (Pantech scans those clouds itself); for the other clouds it scans too. Run enroll_command where the agent will run. Issuing a code replaces any unused one; redeeming it replaces the connection's earlier agent. Owners and admins only.
Idempotency: not replayed: each call issues a new code.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
connection_idstringrequired
Response 201
The code.codestringrequiredThe one-time enrollment code, shown only now. It works once, for an hour.
expires_atstringrequiredenroll_commandstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.MIGRATE_AGENT_UNAVAILABLE/MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is not available on this deployment yet.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/agent-enrollments" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"code": "starter",
"expires_at": "2026-10-03T09:30:00Z",
"enroll_command": "enroll-command"
}Revoke a connection's agent
Ends the connection's Migrate agent at once: its credential stops working on its next request, and the server copies, database imports and Kubernetes moves it was running stop until a new agent is enrolled. A connection to a cloud Pantech scans with an agent then waits for a new one; a connection to AWS, Google Cloud, Azure or Huawei Cloud stays connected. Like disconnecting, this only takes access away. Owners and admins only.
Idempotency: revoking again changes nothing.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
connection_idstringrequired
Response 200
The connection.idstringrequiredproviderstringrequiredOne of
aws,gcp,azure,huawei,digitalocean,hetzner,linode,vultr,contabo,openstack.namestringrequiredstatusstringrequiredawaiting_role(federated providers: waiting for what the setup printed),awaiting_agent(other clouds: no agent enrolled; on AWS, Google Cloud, Azure and Huawei Cloud an agent never changes the status),verifying,connectedorfailed.One of
awaiting_role,awaiting_agent,verifying,connected,failed.failureCloudFailurerequiredWhy the last check or scan failed; null when it didn't.
Show 2 child fieldsHide child fields
codestringrequiredOne of
assume_role_denied,permission_missing,provider_unavailable,scan_too_large,internal,agent_offline,token_rejected,invalid_upload.messagestringrequiredWhat to do about it.
role_arnstring or nullrequiredaws_account_idstring or nullrequiredSet for AWS connections only; see external_account_id.
external_account_idstring or nullrequiredThe source account: an AWS account, a Google Cloud pool's project number, an Azure tenant, or what the agent reported.
gcpCloudGCPFederationrequiredWhat the Google Cloud setup printed.
Show 5 child fieldsHide child fields
project_numberstringrequiredpool_idstringrequiredprovider_idstringrequiredservice_account_emailstringrequiredproject_idsarray of stringrequiredThe projects to scan, 1 to 20.
azureCloudAzureFederationrequiredWhat the Azure setup printed.
Show 3 child fieldsHide child fields
tenant_idstringrequiredclient_idstringrequiredThe app registration's application (client) ID.
subscription_idsarray of stringrequiredThe subscriptions to scan, 1 to 20.
huaweiCloudHuaweiFederationrequiredYour Huawei Cloud identity provider and the projects to scan.
Show 2 child fieldsHide child fields
identity_provider_idstringrequiredprojectsarray of objectrequired1 to 20 region projects.
Show 2 child fieldsHide child fields
regionstringrequiredidstringrequired
agentCloudAgentStatusrequiredThe connection's enrolled agent; null when none is.
Show 7 child fieldsHide child fields
idstringrequiredonlinebooleanrequiredWhether it polled in the last 2 minutes.
agent_versionstringrequiredplatformstringrequiredenrolled_atstringrequiredlast_seen_atstringrequiredcredential_expires_atstringrequired
verified_atstring or nullrequiredcreated_atstringrequiredupdated_atstringrequiredsetupCloudConnectionSetuprequiredWhat you run in your own cloud to connect it. Every setup grants read-only access, listed one permission at a time in
permissions; none creates a key Pantech holds.Show 10 child fieldsHide child fields
accessstringrequiredfederated: Pantech reads your cloud with 5-minute tokens it signs for this connection only (AWS, Google Cloud, Azure, Huawei Cloud).agent: you run the Pantech Migrate agent, which keeps your read-only token on your machine.One of
federated,agent.issuer_urlstring or nullrequiredPantech's identity provider URL, which your cloud trusts; null for agent providers.
audiencestring or nullrequiredThe audience every token carries; null for agent providers.
subjectstringrequiredThe subject your trust policy requires: this connection's id.
quick_create_urlstring or nullrequiredOpens AWS's create-stack page with this template and connection filled in; null when not offered.
templatestringrequiredThe main setup file: AWS's CloudFormation template (JSON), Google Cloud's gcloud script, Azure's Azure CLI script, Huawei Cloud's steps, or, for agent providers, how to make a read-only token.
template_formatstringrequiredOne of
cloudformation,shell,markdown,agent.filesarray of objectrequiredFurther setup files, such as a Terraform version of the setup or JSON documents to paste.
Show 2 child fieldsHide child fields
namestringrequiredcontentstringrequired
permissionsarray of stringrequiredEvery read-only permission the setup grants.
agentCloudAgentSetuprequiredHow to run the connection's Pantech Migrate agent. Every connection may have one: for AWS, Google Cloud, Azure and Huawei Cloud it runs server copies, database imports and Kubernetes moves and needs no cloud credential (
token_variablesis empty); for the other clouds it also scans, with your read-only credential. Null when the agent is not available.Show 8 child fieldsHide child fields
imagestringrequiredThe agent's container image.
download_urlstring or nullrequiredWhere the agent's binaries are published.
api_urlstringrequiredtoken_variablesarray of stringrequiredThe environment variables the agent reads your read-only credential from, on your machine. It is never sent to Pantech. Empty for AWS, Google Cloud, Azure and Huawei Cloud, where Pantech scans without one.
token_how_tostringrequiredenroll_commandstringrequiredContains
<ENROLLMENT_CODE>where the one-time code goes.run_commandstringrequiredcontainer_commandstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
CLOUD_CONNECTION_NOT_FOUND: no cloud connection with this id exists in your organization. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.MIGRATE_AGENT_UNAVAILABLE/MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is not available on this deployment yet.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X DELETE "https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w/agent" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"provider": "aws",
"name": "web-1",
"status": "awaiting_role",
"failure": {
"code": "assume_role_denied",
"message": "message"
},
"role_arn": "role-arn",
"aws_account_id": "aws-account-id",
"external_account_id": "external-account-id",
"gcp": {
"project_number": "project-number",
"pool_id": "pool-id",
"provider_id": "provider-id",
"service_account_email": "service-account-email",
"project_ids": [
"project-ids"
]
},
"azure": {
"tenant_id": "tenant-id",
"client_id": "client-id",
"subscription_ids": [
"subscription-ids"
]
},
"huawei": {
"identity_provider_id": "identity-provider-id",
"projects": [
{
"region": "af-abj",
"id": "id"
}
]
},
"agent": {
"id": "cag_06gk3x9tq7m2v8r4y1c5d0zp8w",
"online": true,
"agent_version": "agent-version",
"platform": "platform",
"enrolled_at": "2026-10-03T09:30:00Z",
"last_seen_at": "2026-10-03T09:30:00Z",
"credential_expires_at": "2026-10-03T09:30:00Z"
},
"verified_at": "2026-10-03T09:30:00Z",
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"setup": {
"access": "federated",
"issuer_url": "issuer-url",
"audience": "audience",
"subject": "subject",
"quick_create_url": "quick-create-url",
"template": "template",
"template_format": "cloudformation",
"files": [
{
"name": "web-1",
"content": "content"
}
],
"permissions": [
"permissions"
],
"agent": {
"image": "image",
"download_url": "download-url",
"api_url": "api-url",
"token_variables": [
"token-variables"
],
"token_how_to": "token-how-to",
"enroll_command": "enroll-command",
"run_command": "run-command",
"container_command": "container-command"
}
}
}Invite a plan's people
Sends Pantech invites to the people a plan lists (items of kind user), by key, with each item's role, through the organization's ordinary invite flow: the same email, rules and audit as inviting from Members. An admin can invite members only; a person suggested as admin comes back role_not_allowed. Owners and admins only.
Idempotency: safe to repeat: a person already invited from this plan, already holding a pending invite, or already a member is reported and never invited twice.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
migration_idstringrequired
Body
application/jsonkeysarray of stringrequiredThe
useritems to invite, by key: 1 to 50.
Response 200
What happened to each person, and the plan.resultsarray of MigrationInviteResultrequiredShow 6 child fieldsHide child fields
keystringrequiredemailstring or nullrequiredrolestring or nullrequiredoutcomestringrequiredinvited;already_invited(from this plan or by hand);already_member;role_not_allowed(an admin can't invite an admin: change the person's role to member or ask an owner);skipped(see reason);failed(try again).One of
invited,already_invited,already_member,role_not_allowed,skipped,failed.reasonstring or nullrequiredWhy a person was skipped:
email_missing,excluded,not_a_person,unknown_item.invite_idstring or nullrequired
migrationMigrationrequiredShow 12 child fieldsHide child fields
idstringrequirednamestringrequiredregionstringrequiredconnection_idstringrequiredscan_idstringrequiredstagestringrequiredplanning. Copying arrives in a later release.One of
planning.versionintegerrequiredsummaryMigrationSummaryrequiredShow 4 child fieldsHide child fields
plannedintegerrequiredexcludedintegerrequiredunsupportedintegerrequiredby_kindobjectrequiredPlanned items per kind.
estimateMigrationEstimaterequiredPantech's monthly price for the plan next to the source's monthly bill, computed when read.
Show 10 child fieldsHide child fields
currencystringrequiredpantech_pricedbooleanrequiredFalse when part of the plan could not be priced; then pantech_monthly_minor is null.
pantech_monthly_minorinteger or nullrequiredcoversarray of stringrequiredWhat the Pantech price includes: servers, volumes, networks.
not_coveredarray of stringrequiredPlanned items the price leaves out, e.g. databases.
source_knownbooleanrequiredsource_monthly_minorinteger or nullrequiredsource_currencystring or nullrequiredsource_monthsintegerrequiredsource_scopestringrequiredwhole_account: the source figure is the whole cloud bill.One of
whole_account.
itemsarray of MigrationItemrequiredNull in a list.
Show 6 child fieldsHide child fields
keystringrequiredStable across edits: kind, region and the source id.
kindstringrequiredOne of
network,subnet,security_group,instance,volume,public_ip,load_balancer,database,ssh_key,user,bucket,kubernetes_cluster.sourceMigrationItemSourcerequiredShow 7 child fieldsHide child fields
idstringrequirednamestring or nullrequiredregionstring or nullrequiredsummarystringrequiredvcpuinteger or nullrequiredmemory_mibinteger or nullrequireddisk_gbinteger or nullrequired
statusstringrequiredOne of
planned,excluded,unsupported.flagsarray of MigrationFlagrequiredShow 3 child fieldsHide child fields
codestringrequiredmessagestringrequiredblockingbooleanrequiredA blocking flag makes the item unsupported.
targetMigrationItemTargetrequiredWhat the item becomes on Pantech; fields that don't apply to its kind are null or empty.
Show 19 child fieldsHide child fields
bucketMigrationBucketTargetrequiredThe Pantech bucket a bucket item becomes; null for every other kind.
Show 7 child fieldsHide child fields
namestring or nullrequiredA valid Pantech bucket name made from the source's; null when none could be made.
regionstringrequiredversioningbooleanrequiredpublic_readbooleanrequiredThe source bucket was public. The Pantech bucket stays private unless the copy asks.
size_bytesinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
object_countinteger or nullrequiredThe source's own daily metric, read by the scan; null when unknown.
size_as_ofstring or nullrequiredThe day (YYYY-MM-DD) the size and object count describe: show them as "as of" this day.
plan_slugstring or nullrequireddisk_gbinteger or nullrequiredcidrstring or nullrequirednetwork_keystring or nullrequiredsubnet_keystring or nullrequiredinstance_keystring or nullrequiredrulesarray of MigrationRulerequiredShow 4 child fieldsHide child fields
directionstringrequiredOne of
ingress,egress.protocolstringrequiredOne of
tcp,udp,icmp,all.port_rangestring or nullrequiredcidrstringrequired
enginestring or nullrequiredengine_versionstring or nullrequiredstorage_gbinteger or nullrequiredrolestring or nullrequiredOne of
admin,member,null.emailstring or nullrequiredpublic_keystring or nullrequiredlistenersarray of MigrationListenerrequiredShow 2 child fieldsHide child fields
protocolstringrequiredportintegerrequired
image_slugstring or nullrequiredThe image a server is planned on when its operating system decides it (Windows Server).
invite_idstring or nullrequiredThe Pantech invite sent to this person from this plan.
invited_atstring or nullrequiredkubernetesMigrationKubernetesTargetrequiredWhat a kubernetes_cluster item becomes on Pantech; null for every other kind.
Show 5 child fieldsHide child fields
version_idstring or nullrequiredversionstring or nullrequirednode_poolsarray of MigrationNodePoolrequiredaddonsarray of stringrequiredallow_downgradebooleanrequiredThe customer consented to a lower Kubernetes version than the source runs.
created_atstringrequiredupdated_atstringrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
MIGRATION_NOT_FOUND: no migration with this id exists in your organization. - 422
VALIDATION_FAILED:keysmust name 1 to 50 items. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
MIGRATE_UNAVAILABLE: Pantech Migrate is not available on this deployment yet. Try again later.MIGRATE_AGENT_UNAVAILABLE/MIGRATE_INVITES_UNAVAILABLE: this part of Pantech Migrate is not available on this deployment yet.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/invites" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"keys": [
"keys"
]
}'{
"results": [
{
"key": "key",
"email": "email",
"role": "role",
"outcome": "invited",
"reason": null,
"invite_id": "invite-id"
}
],
"migration": {
"id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "web-1",
"region": "af-abj",
"connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"scan_id": "csn_06gk3x9tq7m2v8r4y1c5d0zp8w",
"stage": "planning",
"version": 1,
"summary": {
"planned": 1,
"excluded": 1,
"unsupported": 1,
"by_kind": {}
},
"estimate": {
"currency": "NGN",
"pantech_priced": true,
"pantech_monthly_minor": 1,
"covers": [
"covers"
],
"not_covered": [
"not-covered"
],
"source_known": true,
"source_monthly_minor": 1,
"source_currency": "source-currency",
"source_months": 1,
"source_scope": "whole_account"
},
"items": [
{
"key": "key",
"kind": "network",
"source": {
"id": "id",
"name": "web-1",
"region": "af-abj",
"summary": "summary",
"vcpu": 2,
"memory_mib": 1,
"disk_gb": 80
},
"status": "planned",
"flags": [
{
"code": "starter",
"message": "message",
"blocking": true
}
],
"target": {
"bucket": {
"name": "web-1",
"region": "af-abj",
"versioning": true,
"public_read": true,
"size_bytes": 1610612736,
"object_count": 1,
"size_as_of": "2030-11-14"
},
"plan_slug": "starter",
"disk_gb": 80,
"cidr": "<vpc-cidr>",
"network_key": "network-key",
"subnet_key": "subnet-key",
"instance_key": "instance-key",
"rules": [
{
"direction": "ingress",
"protocol": "tcp",
"port_range": "22",
"cidr": "<vpc-cidr>"
}
],
"engine": "postgresql",
"engine_version": "engine-version",
"storage_gb": 100,
"role": "admin",
"email": "email",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample deploy@ci",
"listeners": [
{
"protocol": "protocol",
"port": 22
}
],
"image_slug": "ubuntu-24-04",
"invite_id": "invite-id",
"invited_at": "2026-10-03T09:30:00Z",
"kubernetes": {
"version_id": "version-id",
"version": "version",
"node_pools": [
null
],
"addons": [
"addons"
],
"allow_downgrade": true
}
}
}
],
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}
}