- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
Creates a blue-green deployment under a given project and location. This deployment provisions a synchronized green environment (target instance) from a blue production environment (source instance), facilitating updates like major version upgrades on the green instance without impacting the blue instance.
HTTP request
POST https://sqladmin.googleapis.com/sql/v1beta4/{parent=projects/*/locations/*}/blueGreenDeployments
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource where this blue-green deployment will be created. Format: projects/{project}/locations/{location} |
Query parameters
| Parameters | |
|---|---|
blueGreenDeploymentId |
Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. |
Request body
The request body contains an instance of BlueGreenDeployment.
Response body
If successful, the response body contains a newly created instance of Operation.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudsqlhttps://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/sqlservice.admin
For more information, see the Authentication Overview.