blueGreenDeployments

GET /v1/projects/{projectsId}/locations/{locationsId}/blueGreenDeployments/{blueGreenDeploymentsId}

Changed on

Retrieves a blue-green deployment resource under a given project and location.

Request

  • Base URL
    https://sqladmin.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/sqlservice.admin
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/sqlservice.admin

Path parameters

projectsId, string required
locationsId, string required
blueGreenDeploymentsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

view, 'BLUE_GREEN_DEPLOYMENT_VIEW_UNSPECIFIED' | 'BASIC' | 'DETAILED'

Optional. Specifies whether to return the basic or detailed view of the resource in the response.

Response

Successful response

BlueGreenDeployment required

A BlueGreenDeployment resource represents a Cloud SQL blue-green deployment setup.

createTime, string google-datetime

Output only. The time when the deployment was created. Example: 2024-01-01T00:00:00Z

deploymentMappings, SourceTargetPairedNode[]

Output only. A list representing the pairs of source and target instances in the deployment.

deploymentTasks, DeploymentTasks

Combined list of tasks for all paired nodes in the deployment.

description, string

Optional. User-provided description for the deployment. The description can be up to 255 characters long.

errorDetail, string

Output only. Provides details on why switchover is not possible. This field is empty unless a switchover attempt failed or the state is SWITCHOVER_NOT_READY. Example: "The target database version does not match the source instance database version."

name, string

Output only. Identifier. The full resource name of the deployment. Format: projects/{project}/locations/{location}/blueGreenDeployments/{deployment_id}

requestedConfig, RequestedConfig

Configuration specified by the user at creation time for the target (green) instance.

sourceInstance, string

Required. Immutable. Required on create, and immutable. The full resource name of the source instance (the "blue" instance). Format: projects/{project}/instances/{instance}

state, 'STATE_UNSPECIFIED' | 'PROVISIONING' | 'SWITCHOVER_READY' | 'SWITCHOVER_NOT_READY' | 'SWITCHOVER_IN_PROGRESS' | 'SWITCHOVER_COMPLETED' | 'DELETING'

Output only. The current state of the blue-green deployment.

switchoverTargetInstance, string

Output only. The full resource name of the primary target instance (the "green" instance) that will be promoted during switchover. This field is always populated once the deployment is created. Format: projects/{project}/instances/{instance}

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/sqlservice.admin was removed from the endpoint's security scheme Oauth2

    1 more change in this revision