Switchover Blue Green Deployment

cloud_sql_admin.switchover_blue_green_deployment
ActionGoogle Cloudconnection required

Calls sqladmin v1 POST /v1/projects/{projectsId}/locations/{locationsId}/blueGreenDeployments/{blueGreenDeploymentsId}:switchover.

Switches over to green instance for a blue-green deployment.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Cloud SQL Admin
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
location
Location or region; taken from the connection when unset.
stringNo———
blue_green_deployment
Blue green deployment name or id.
stringYes———
body
The SwitchoverBlueGreenDeploymentRequest resource, as the API defines it.
objectYes———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
acquireSsrsLeaseContext
object—
apiWarning
object—
backupContext
object—
endTime
string—
error
object—
exportContext
object—
importContext
object—
insertTime
string—
kind
string—
name
string—
operationType
string—
preCheckMajorVersionUpgradeContext
object—
selfLink
string—
startTime
string—
status
string—
subOperationType
object—
targetId
string—
targetLink
string—
targetProject
string—
user
string—
{
  "acquireSsrsLeaseContext": {},
  "apiWarning": {},
  "backupContext": {},
  "endTime": "",
  "error": {},
  "exportContext": {},
  "importContext": {},
  "insertTime": "",
  "kind": "",
  "name": "",
  "operationType": "",
  "preCheckMajorVersionUpgradeContext": {},
  "selfLink": "",
  "startTime": "",
  "status": "",
  "subOperationType": {},
  "targetId": "",
  "targetLink": "",
  "targetProject": "",
  "user": ""
}

See Switchover Blue Green Deployment run in a workflow.

In a technical demo we add the Google Cloud SQL Admin connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.