Skip to main content
POST
Migrate the environment routing mode

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

environmentId
string<uuid>
required

Environment ID

Query Parameters

dryRun
boolean
default:false

When true, change nothing and return what the migration would do, with its blockers.

Response

The migration plan. Without dryRun, the migration is committed and its deploy is queued.

What the routing mode migration changes, or would change on a dry run.

dry_run
boolean
required

true when nothing was changed. false when the migration is committed and its deploy is queued.

blockers
enum<string>[]
required

Why the migration cannot run now. The migration runs only when this is empty. Always empty when dry_run is false.

Why the environment cannot move to PER_HOSTNAME_LISTENER_SET now.

  • BETA_FEATURE_NOT_ENABLED: the organization is not enabled for the beta. Ask Qovery support.
  • ALREADY_MIGRATED: the environment already uses PER_HOSTNAME_LISTENER_SET.
  • CLUSTER_WITHOUT_GATEWAY_API: the cluster does not deploy and use the Gateway API.
  • CLUSTER_NOT_READY: the cluster is not ready for a deployment.
  • ENVIRONMENT_STOPPED: the environment is stopped, uninstalled or deleted. Start it first.
  • DEPLOYMENT_IN_PROGRESS: a deployment is queued or running.
  • PUBLIC_REGEX_HTTP_PATH: a public HTTP port uses a regex path. The environment router matches path prefixes only.
  • SEVERAL_PUBLIC_PORTS_NOT_SUPPORTED_YET: a service has more than one public port.
  • EXPOSED_HELM_NOT_SUPPORTED_YET: a Helm service has a public port.
  • PUBLIC_PORT_NOT_DEFAULT_NOT_SUPPORTED_YET: a service with a public HTTP or gRPC port has a private port marked as default. Make the public port the default one. A service with no default port is not blocked: the deploy marks its public port as default.

The NOT_SUPPORTED_YET values are no longer returned once support widens. More values may be added: treat an unknown value as a blocker.

Available options:
BETA_FEATURE_NOT_ENABLED,
ALREADY_MIGRATED,
CLUSTER_WITHOUT_GATEWAY_API,
CLUSTER_NOT_READY,
ENVIRONMENT_STOPPED,
DEPLOYMENT_IN_PROGRESS,
PUBLIC_REGEX_HTTP_PATH,
SEVERAL_PUBLIC_PORTS_NOT_SUPPORTED_YET,
EXPOSED_HELM_NOT_SUPPORTED_YET,
PUBLIC_PORT_NOT_DEFAULT_NOT_SUPPORTED_YET
services
object[]
required

The services with a public HTTP or gRPC port, which move to the environment router. Sorted by service_id.

unrouted_services
object[]
required

The services with a router but no public HTTP or gRPC port. They do not join the environment router and lose their host variables. Sorted by service_id.

services_with_pending_changes
string<uuid>[]
required

IDs of the services not up to date (out of date or never deployed). The migration redeploys the whole environment, so their pending changes are deployed with it. Services skipped from deployment are left out. Sorted.