published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
This resource provides the Blue Green Deployment resource in Oracle Cloud Infrastructure MySQL Database service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/mysql/latest/BlueGreenDeployment
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/mysql
Creates a blue/green deployment resource and its replication channel.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBlueGreenDeployment = new oci.mysql.BlueGreenDeployment("test_blue_green_deployment", {
channelDetails: {
sourcePassword: blueGreenDeploymentChannelDetailsSourcePassword,
sourceUsername: blueGreenDeploymentChannelDetailsSourceUsername,
sslMode: blueGreenDeploymentChannelDetailsSslMode,
applierUsername: blueGreenDeploymentChannelDetailsApplierUsername,
sslCaCertificate: {
certificateType: blueGreenDeploymentChannelDetailsSslCaCertificateCertificateType,
contents: blueGreenDeploymentChannelDetailsSslCaCertificateContents,
},
},
compartmentId: compartmentId,
displayName: blueGreenDeploymentDisplayName,
sourceDbSystemId: testMysqlDbSystem.id,
targetDbSystemDetails: {
mysqlVersion: blueGreenDeploymentTargetDbSystemDetailsMysqlVersion,
configurationId: testMysqlConfiguration.id,
dataStorageSizeInGb: Number(blueGreenDeploymentTargetDbSystemDetailsDataStorageSizeInGb),
shapeName: testShape.name,
},
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
});
import pulumi
import pulumi_oci as oci
test_blue_green_deployment = oci.mysql.BlueGreenDeployment("test_blue_green_deployment",
channel_details={
"source_password": blue_green_deployment_channel_details_source_password,
"source_username": blue_green_deployment_channel_details_source_username,
"ssl_mode": blue_green_deployment_channel_details_ssl_mode,
"applier_username": blue_green_deployment_channel_details_applier_username,
"ssl_ca_certificate": {
"certificate_type": blue_green_deployment_channel_details_ssl_ca_certificate_certificate_type,
"contents": blue_green_deployment_channel_details_ssl_ca_certificate_contents,
},
},
compartment_id=compartment_id,
display_name=blue_green_deployment_display_name,
source_db_system_id=test_mysql_db_system["id"],
target_db_system_details={
"mysql_version": blue_green_deployment_target_db_system_details_mysql_version,
"configuration_id": test_mysql_configuration["id"],
"data_storage_size_in_gb": int(blue_green_deployment_target_db_system_details_data_storage_size_in_gb),
"shape_name": test_shape["name"],
},
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/mysql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mysql.NewBlueGreenDeployment(ctx, "test_blue_green_deployment", &mysql.BlueGreenDeploymentArgs{
ChannelDetails: &mysql.BlueGreenDeploymentChannelDetailsArgs{
SourcePassword: pulumi.Any(blueGreenDeploymentChannelDetailsSourcePassword),
SourceUsername: pulumi.Any(blueGreenDeploymentChannelDetailsSourceUsername),
SslMode: pulumi.Any(blueGreenDeploymentChannelDetailsSslMode),
ApplierUsername: pulumi.Any(blueGreenDeploymentChannelDetailsApplierUsername),
SslCaCertificate: &mysql.BlueGreenDeploymentChannelDetailsSslCaCertificateArgs{
CertificateType: pulumi.Any(blueGreenDeploymentChannelDetailsSslCaCertificateCertificateType),
Contents: pulumi.Any(blueGreenDeploymentChannelDetailsSslCaCertificateContents),
},
},
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(blueGreenDeploymentDisplayName),
SourceDbSystemId: pulumi.Any(testMysqlDbSystem.Id),
TargetDbSystemDetails: &mysql.BlueGreenDeploymentTargetDbSystemDetailsArgs{
MysqlVersion: pulumi.Any(blueGreenDeploymentTargetDbSystemDetailsMysqlVersion),
ConfigurationId: pulumi.Any(testMysqlConfiguration.Id),
DataStorageSizeInGb: pulumi.Any(blueGreenDeploymentTargetDbSystemDetailsDataStorageSizeInGb),
ShapeName: pulumi.Any(testShape.Name),
},
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testBlueGreenDeployment = new Oci.Mysql.BlueGreenDeployment("test_blue_green_deployment", new()
{
ChannelDetails = new Oci.Mysql.Inputs.BlueGreenDeploymentChannelDetailsArgs
{
SourcePassword = blueGreenDeploymentChannelDetailsSourcePassword,
SourceUsername = blueGreenDeploymentChannelDetailsSourceUsername,
SslMode = blueGreenDeploymentChannelDetailsSslMode,
ApplierUsername = blueGreenDeploymentChannelDetailsApplierUsername,
SslCaCertificate = new Oci.Mysql.Inputs.BlueGreenDeploymentChannelDetailsSslCaCertificateArgs
{
CertificateType = blueGreenDeploymentChannelDetailsSslCaCertificateCertificateType,
Contents = blueGreenDeploymentChannelDetailsSslCaCertificateContents,
},
},
CompartmentId = compartmentId,
DisplayName = blueGreenDeploymentDisplayName,
SourceDbSystemId = testMysqlDbSystem.Id,
TargetDbSystemDetails = new Oci.Mysql.Inputs.BlueGreenDeploymentTargetDbSystemDetailsArgs
{
MysqlVersion = blueGreenDeploymentTargetDbSystemDetailsMysqlVersion,
ConfigurationId = testMysqlConfiguration.Id,
DataStorageSizeInGb = blueGreenDeploymentTargetDbSystemDetailsDataStorageSizeInGb,
ShapeName = testShape.Name,
},
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Mysql.BlueGreenDeployment;
import com.pulumi.oci.Mysql.BlueGreenDeploymentArgs;
import com.pulumi.oci.Mysql.inputs.BlueGreenDeploymentChannelDetailsArgs;
import com.pulumi.oci.Mysql.inputs.BlueGreenDeploymentChannelDetailsSslCaCertificateArgs;
import com.pulumi.oci.Mysql.inputs.BlueGreenDeploymentTargetDbSystemDetailsArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testBlueGreenDeployment = new BlueGreenDeployment("testBlueGreenDeployment", BlueGreenDeploymentArgs.builder()
.channelDetails(BlueGreenDeploymentChannelDetailsArgs.builder()
.sourcePassword(blueGreenDeploymentChannelDetailsSourcePassword)
.sourceUsername(blueGreenDeploymentChannelDetailsSourceUsername)
.sslMode(blueGreenDeploymentChannelDetailsSslMode)
.applierUsername(blueGreenDeploymentChannelDetailsApplierUsername)
.sslCaCertificate(BlueGreenDeploymentChannelDetailsSslCaCertificateArgs.builder()
.certificateType(blueGreenDeploymentChannelDetailsSslCaCertificateCertificateType)
.contents(blueGreenDeploymentChannelDetailsSslCaCertificateContents)
.build())
.build())
.compartmentId(compartmentId)
.displayName(blueGreenDeploymentDisplayName)
.sourceDbSystemId(testMysqlDbSystem.id())
.targetDbSystemDetails(BlueGreenDeploymentTargetDbSystemDetailsArgs.builder()
.mysqlVersion(blueGreenDeploymentTargetDbSystemDetailsMysqlVersion)
.configurationId(testMysqlConfiguration.id())
.dataStorageSizeInGb(blueGreenDeploymentTargetDbSystemDetailsDataStorageSizeInGb)
.shapeName(testShape.name())
.build())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.build());
}
}
resources:
testBlueGreenDeployment:
type: oci:Mysql:BlueGreenDeployment
name: test_blue_green_deployment
properties:
channelDetails:
sourcePassword: ${blueGreenDeploymentChannelDetailsSourcePassword}
sourceUsername: ${blueGreenDeploymentChannelDetailsSourceUsername}
sslMode: ${blueGreenDeploymentChannelDetailsSslMode}
applierUsername: ${blueGreenDeploymentChannelDetailsApplierUsername}
sslCaCertificate:
certificateType: ${blueGreenDeploymentChannelDetailsSslCaCertificateCertificateType}
contents: ${blueGreenDeploymentChannelDetailsSslCaCertificateContents}
compartmentId: ${compartmentId}
displayName: ${blueGreenDeploymentDisplayName}
sourceDbSystemId: ${testMysqlDbSystem.id}
targetDbSystemDetails:
mysqlVersion: ${blueGreenDeploymentTargetDbSystemDetailsMysqlVersion}
configurationId: ${testMysqlConfiguration.id}
dataStorageSizeInGb: ${blueGreenDeploymentTargetDbSystemDetailsDataStorageSizeInGb}
shapeName: ${testShape.name}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
resource "oci_mysql_bluegreendeployment" "test_blue_green_deployment" {
channel_details = {
source_password = blueGreenDeploymentChannelDetailsSourcePassword
source_username = blueGreenDeploymentChannelDetailsSourceUsername
ssl_mode = blueGreenDeploymentChannelDetailsSslMode
applier_username = blueGreenDeploymentChannelDetailsApplierUsername
ssl_ca_certificate = {
certificate_type = blueGreenDeploymentChannelDetailsSslCaCertificateCertificateType
contents = blueGreenDeploymentChannelDetailsSslCaCertificateContents
}
}
#Required
#Optional
#Required
compartment_id = compartmentId
display_name = blueGreenDeploymentDisplayName
source_db_system_id = testMysqlDbSystem.id
target_db_system_details = {
mysql_version = blueGreenDeploymentTargetDbSystemDetailsMysqlVersion
configuration_id = testMysqlConfiguration.id
data_storage_size_in_gb = blueGreenDeploymentTargetDbSystemDetailsDataStorageSizeInGb
shape_name = testShape.name
}
#Required
#Optional
defined_tags = {
"foo-namespace.bar-key" = "value"
}
freeform_tags = {
"bar-key" = "value"
}
}
Create BlueGreenDeployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BlueGreenDeployment(name: string, args: BlueGreenDeploymentArgs, opts?: CustomResourceOptions);@overload
def BlueGreenDeployment(resource_name: str,
args: BlueGreenDeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BlueGreenDeployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
channel_details: Optional[BlueGreenDeploymentChannelDetailsArgs] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
source_db_system_id: Optional[str] = None,
target_db_system_details: Optional[BlueGreenDeploymentTargetDbSystemDetailsArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
delete_target_db_system_on_delete: Optional[bool] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
switchover_trigger: Optional[int] = None)func NewBlueGreenDeployment(ctx *Context, name string, args BlueGreenDeploymentArgs, opts ...ResourceOption) (*BlueGreenDeployment, error)public BlueGreenDeployment(string name, BlueGreenDeploymentArgs args, CustomResourceOptions? opts = null)
public BlueGreenDeployment(String name, BlueGreenDeploymentArgs args)
public BlueGreenDeployment(String name, BlueGreenDeploymentArgs args, CustomResourceOptions options)
type: oci:Mysql:BlueGreenDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "oci_mysql_blue_green_deployment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BlueGreenDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BlueGreenDeploymentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BlueGreenDeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BlueGreenDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BlueGreenDeploymentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var blueGreenDeploymentResource = new Oci.Mysql.BlueGreenDeployment("blueGreenDeploymentResource", new()
{
ChannelDetails = new Oci.Mysql.Inputs.BlueGreenDeploymentChannelDetailsArgs
{
SourcePassword = "string",
SourceUsername = "string",
SslMode = "string",
ApplierUsername = "string",
SslCaCertificate = new Oci.Mysql.Inputs.BlueGreenDeploymentChannelDetailsSslCaCertificateArgs
{
CertificateType = "string",
Contents = "string",
},
},
CompartmentId = "string",
DisplayName = "string",
SourceDbSystemId = "string",
TargetDbSystemDetails = new Oci.Mysql.Inputs.BlueGreenDeploymentTargetDbSystemDetailsArgs
{
MysqlVersion = "string",
ConfigurationId = "string",
DataStorageSizeInGb = 0,
ShapeName = "string",
},
DefinedTags =
{
{ "string", "string" },
},
DeleteTargetDbSystemOnDelete = false,
FreeformTags =
{
{ "string", "string" },
},
SwitchoverTrigger = 0,
});
example, err := mysql.NewBlueGreenDeployment(ctx, "blueGreenDeploymentResource", &mysql.BlueGreenDeploymentArgs{
ChannelDetails: &mysql.BlueGreenDeploymentChannelDetailsArgs{
SourcePassword: pulumi.String("string"),
SourceUsername: pulumi.String("string"),
SslMode: pulumi.String("string"),
ApplierUsername: pulumi.String("string"),
SslCaCertificate: &mysql.BlueGreenDeploymentChannelDetailsSslCaCertificateArgs{
CertificateType: pulumi.String("string"),
Contents: pulumi.String("string"),
},
},
CompartmentId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
SourceDbSystemId: pulumi.String("string"),
TargetDbSystemDetails: &mysql.BlueGreenDeploymentTargetDbSystemDetailsArgs{
MysqlVersion: pulumi.String("string"),
ConfigurationId: pulumi.String("string"),
DataStorageSizeInGb: pulumi.Int(0),
ShapeName: pulumi.String("string"),
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DeleteTargetDbSystemOnDelete: pulumi.Bool(false),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
SwitchoverTrigger: pulumi.Int(0),
})
resource "oci_mysql_blue_green_deployment" "blueGreenDeploymentResource" {
lifecycle {
create_before_destroy = true
}
channel_details = {
source_password = "string"
source_username = "string"
ssl_mode = "string"
applier_username = "string"
ssl_ca_certificate = {
certificate_type = "string"
contents = "string"
}
}
compartment_id = "string"
display_name = "string"
source_db_system_id = "string"
target_db_system_details = {
mysql_version = "string"
configuration_id = "string"
data_storage_size_in_gb = 0
shape_name = "string"
}
defined_tags = {
"string" = "string"
}
delete_target_db_system_on_delete = false
freeform_tags = {
"string" = "string"
}
switchover_trigger = 0
}
var blueGreenDeploymentResource = new BlueGreenDeployment("blueGreenDeploymentResource", BlueGreenDeploymentArgs.builder()
.channelDetails(BlueGreenDeploymentChannelDetailsArgs.builder()
.sourcePassword("string")
.sourceUsername("string")
.sslMode("string")
.applierUsername("string")
.sslCaCertificate(BlueGreenDeploymentChannelDetailsSslCaCertificateArgs.builder()
.certificateType("string")
.contents("string")
.build())
.build())
.compartmentId("string")
.displayName("string")
.sourceDbSystemId("string")
.targetDbSystemDetails(BlueGreenDeploymentTargetDbSystemDetailsArgs.builder()
.mysqlVersion("string")
.configurationId("string")
.dataStorageSizeInGb(0)
.shapeName("string")
.build())
.definedTags(Map.of("string", "string"))
.deleteTargetDbSystemOnDelete(false)
.freeformTags(Map.of("string", "string"))
.switchoverTrigger(0)
.build());
blue_green_deployment_resource = oci.mysql.BlueGreenDeployment("blueGreenDeploymentResource",
channel_details={
"source_password": "string",
"source_username": "string",
"ssl_mode": "string",
"applier_username": "string",
"ssl_ca_certificate": {
"certificate_type": "string",
"contents": "string",
},
},
compartment_id="string",
display_name="string",
source_db_system_id="string",
target_db_system_details={
"mysql_version": "string",
"configuration_id": "string",
"data_storage_size_in_gb": 0,
"shape_name": "string",
},
defined_tags={
"string": "string",
},
delete_target_db_system_on_delete=False,
freeform_tags={
"string": "string",
},
switchover_trigger=0)
const blueGreenDeploymentResource = new oci.mysql.BlueGreenDeployment("blueGreenDeploymentResource", {
channelDetails: {
sourcePassword: "string",
sourceUsername: "string",
sslMode: "string",
applierUsername: "string",
sslCaCertificate: {
certificateType: "string",
contents: "string",
},
},
compartmentId: "string",
displayName: "string",
sourceDbSystemId: "string",
targetDbSystemDetails: {
mysqlVersion: "string",
configurationId: "string",
dataStorageSizeInGb: 0,
shapeName: "string",
},
definedTags: {
string: "string",
},
deleteTargetDbSystemOnDelete: false,
freeformTags: {
string: "string",
},
switchoverTrigger: 0,
});
type: oci:Mysql:BlueGreenDeployment
properties:
channelDetails:
applierUsername: string
sourcePassword: string
sourceUsername: string
sslCaCertificate:
certificateType: string
contents: string
sslMode: string
compartmentId: string
definedTags:
string: string
deleteTargetDbSystemOnDelete: false
displayName: string
freeformTags:
string: string
sourceDbSystemId: string
switchoverTrigger: 0
targetDbSystemDetails:
configurationId: string
dataStorageSizeInGb: 0
mysqlVersion: string
shapeName: string
BlueGreenDeployment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BlueGreenDeployment resource accepts the following input properties:
- Channel
Details BlueGreen Deployment Channel Details - Replication channel details for a blue/green deployment.
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Display
Name string - (Updatable) The display name of the blue/green deployment.
- Source
Db stringSystem Id - Source DB system OCID.
- Target
Db BlueSystem Details Green Deployment Target Db System Details - Target DB System overrides for a blue/green deployment.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Delete
Target boolDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Switchover
Trigger int (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Channel
Details BlueGreen Deployment Channel Details Args - Replication channel details for a blue/green deployment.
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Display
Name string - (Updatable) The display name of the blue/green deployment.
- Source
Db stringSystem Id - Source DB system OCID.
- Target
Db BlueSystem Details Green Deployment Target Db System Details Args - Target DB System overrides for a blue/green deployment.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Delete
Target boolDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Switchover
Trigger int (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- channel_
details object - Replication channel details for a blue/green deployment.
- compartment_
id string - (Updatable) The OCID of the compartment.
- display_
name string - (Updatable) The display name of the blue/green deployment.
- source_
db_ stringsystem_ id - Source DB system OCID.
- target_
db_ objectsystem_ details - Target DB System overrides for a blue/green deployment.
- map(string)
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete_
target_ booldb_ system_ on_ delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - map(string)
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - switchover_
trigger number (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- channel
Details BlueGreen Deployment Channel Details - Replication channel details for a blue/green deployment.
- compartment
Id String - (Updatable) The OCID of the compartment.
- display
Name String - (Updatable) The display name of the blue/green deployment.
- source
Db StringSystem Id - Source DB system OCID.
- target
Db BlueSystem Details Green Deployment Target Db System Details - Target DB System overrides for a blue/green deployment.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete
Target BooleanDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - switchover
Trigger Integer (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- channel
Details BlueGreen Deployment Channel Details - Replication channel details for a blue/green deployment.
- compartment
Id string - (Updatable) The OCID of the compartment.
- display
Name string - (Updatable) The display name of the blue/green deployment.
- source
Db stringSystem Id - Source DB system OCID.
- target
Db BlueSystem Details Green Deployment Target Db System Details - Target DB System overrides for a blue/green deployment.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete
Target booleanDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - switchover
Trigger number (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- channel_
details BlueGreen Deployment Channel Details Args - Replication channel details for a blue/green deployment.
- compartment_
id str - (Updatable) The OCID of the compartment.
- display_
name str - (Updatable) The display name of the blue/green deployment.
- source_
db_ strsystem_ id - Source DB system OCID.
- target_
db_ Bluesystem_ details Green Deployment Target Db System Details Args - Target DB System overrides for a blue/green deployment.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete_
target_ booldb_ system_ on_ delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - switchover_
trigger int (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- channel
Details Property Map - Replication channel details for a blue/green deployment.
- compartment
Id String - (Updatable) The OCID of the compartment.
- display
Name String - (Updatable) The display name of the blue/green deployment.
- source
Db StringSystem Id - Source DB system OCID.
- target
Db Property MapSystem Details - Target DB System overrides for a blue/green deployment.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete
Target BooleanDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - switchover
Trigger Number (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the BlueGreenDeployment resource produces the following output properties:
- Active
Db stringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Additional lifecycle details.
- Replication
Channel stringId - Replication channel OCID.
- Ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- State string
- The current lifecycle state.
- Switchover
Status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Db stringSystem Id - Green/target DB system OCID for the deployment pair.
- Time
Created string - The time the deployment was created.
- Time
Updated string - The time the deployment was last updated.
- Active
Db stringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Additional lifecycle details.
- Replication
Channel stringId - Replication channel OCID.
- Ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- State string
- The current lifecycle state.
- Switchover
Status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Db stringSystem Id - Green/target DB system OCID for the deployment pair.
- Time
Created string - The time the deployment was created.
- Time
Updated string - The time the deployment was last updated.
- active_
db_ stringsystem_ id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details string - Additional lifecycle details.
- replication_
channel_ stringid - Replication channel OCID.
- ssl_
mode string - SSL mode used for the replication channel created by the blue/green workflow.
- state string
- The current lifecycle state.
- switchover_
status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - map(string)
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
db_ stringsystem_ id - Green/target DB system OCID for the deployment pair.
- time_
created string - The time the deployment was created.
- time_
updated string - The time the deployment was last updated.
- active
Db StringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Additional lifecycle details.
- replication
Channel StringId - Replication channel OCID.
- ssl
Mode String - SSL mode used for the replication channel created by the blue/green workflow.
- state String
- The current lifecycle state.
- switchover
Status String - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db StringSystem Id - Green/target DB system OCID for the deployment pair.
- time
Created String - The time the deployment was created.
- time
Updated String - The time the deployment was last updated.
- active
Db stringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Additional lifecycle details.
- replication
Channel stringId - Replication channel OCID.
- ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- state string
- The current lifecycle state.
- switchover
Status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db stringSystem Id - Green/target DB system OCID for the deployment pair.
- time
Created string - The time the deployment was created.
- time
Updated string - The time the deployment was last updated.
- active_
db_ strsystem_ id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Additional lifecycle details.
- replication_
channel_ strid - Replication channel OCID.
- ssl_
mode str - SSL mode used for the replication channel created by the blue/green workflow.
- state str
- The current lifecycle state.
- switchover_
status str - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
db_ strsystem_ id - Green/target DB system OCID for the deployment pair.
- time_
created str - The time the deployment was created.
- time_
updated str - The time the deployment was last updated.
- active
Db StringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Additional lifecycle details.
- replication
Channel StringId - Replication channel OCID.
- ssl
Mode String - SSL mode used for the replication channel created by the blue/green workflow.
- state String
- The current lifecycle state.
- switchover
Status String - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db StringSystem Id - Green/target DB system OCID for the deployment pair.
- time
Created String - The time the deployment was created.
- time
Updated String - The time the deployment was last updated.
Look up Existing BlueGreenDeployment Resource
Get an existing BlueGreenDeployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BlueGreenDeploymentState, opts?: CustomResourceOptions): BlueGreenDeployment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_db_system_id: Optional[str] = None,
channel_details: Optional[BlueGreenDeploymentChannelDetailsArgs] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
delete_target_db_system_on_delete: Optional[bool] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
lifecycle_details: Optional[str] = None,
replication_channel_id: Optional[str] = None,
source_db_system_id: Optional[str] = None,
ssl_mode: Optional[str] = None,
state: Optional[str] = None,
switchover_status: Optional[str] = None,
switchover_trigger: Optional[int] = None,
system_tags: Optional[Mapping[str, str]] = None,
target_db_system_details: Optional[BlueGreenDeploymentTargetDbSystemDetailsArgs] = None,
target_db_system_id: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> BlueGreenDeploymentfunc GetBlueGreenDeployment(ctx *Context, name string, id IDInput, state *BlueGreenDeploymentState, opts ...ResourceOption) (*BlueGreenDeployment, error)public static BlueGreenDeployment Get(string name, Input<string> id, BlueGreenDeploymentState? state, CustomResourceOptions? opts = null)public static BlueGreenDeployment get(String name, Output<String> id, BlueGreenDeploymentState state, CustomResourceOptions options)resources: _: type: oci:Mysql:BlueGreenDeployment get: id: ${id}import {
to = oci_mysql_blue_green_deployment.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active
Db stringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- Channel
Details BlueGreen Deployment Channel Details - Replication channel details for a blue/green deployment.
- Compartment
Id string - (Updatable) The OCID of the compartment.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Delete
Target boolDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - Display
Name string - (Updatable) The display name of the blue/green deployment.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Lifecycle
Details string - Additional lifecycle details.
- Replication
Channel stringId - Replication channel OCID.
- Source
Db stringSystem Id - Source DB system OCID.
- Ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- State string
- The current lifecycle state.
- Switchover
Status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - Switchover
Trigger int (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Db BlueSystem Details Green Deployment Target Db System Details - Target DB System overrides for a blue/green deployment.
- Target
Db stringSystem Id - Green/target DB system OCID for the deployment pair.
- Time
Created string - The time the deployment was created.
- Time
Updated string - The time the deployment was last updated.
- Active
Db stringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- Channel
Details BlueGreen Deployment Channel Details Args - Replication channel details for a blue/green deployment.
- Compartment
Id string - (Updatable) The OCID of the compartment.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Delete
Target boolDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - Display
Name string - (Updatable) The display name of the blue/green deployment.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Lifecycle
Details string - Additional lifecycle details.
- Replication
Channel stringId - Replication channel OCID.
- Source
Db stringSystem Id - Source DB system OCID.
- Ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- State string
- The current lifecycle state.
- Switchover
Status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - Switchover
Trigger int (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Db BlueSystem Details Green Deployment Target Db System Details Args - Target DB System overrides for a blue/green deployment.
- Target
Db stringSystem Id - Green/target DB system OCID for the deployment pair.
- Time
Created string - The time the deployment was created.
- Time
Updated string - The time the deployment was last updated.
- active_
db_ stringsystem_ id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- channel_
details object - Replication channel details for a blue/green deployment.
- compartment_
id string - (Updatable) The OCID of the compartment.
- map(string)
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete_
target_ booldb_ system_ on_ delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - display_
name string - (Updatable) The display name of the blue/green deployment.
- map(string)
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - lifecycle_
details string - Additional lifecycle details.
- replication_
channel_ stringid - Replication channel OCID.
- source_
db_ stringsystem_ id - Source DB system OCID.
- ssl_
mode string - SSL mode used for the replication channel created by the blue/green workflow.
- state string
- The current lifecycle state.
- switchover_
status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - switchover_
trigger number (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map(string)
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
db_ objectsystem_ details - Target DB System overrides for a blue/green deployment.
- target_
db_ stringsystem_ id - Green/target DB system OCID for the deployment pair.
- time_
created string - The time the deployment was created.
- time_
updated string - The time the deployment was last updated.
- active
Db StringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- channel
Details BlueGreen Deployment Channel Details - Replication channel details for a blue/green deployment.
- compartment
Id String - (Updatable) The OCID of the compartment.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete
Target BooleanDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - display
Name String - (Updatable) The display name of the blue/green deployment.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - lifecycle
Details String - Additional lifecycle details.
- replication
Channel StringId - Replication channel OCID.
- source
Db StringSystem Id - Source DB system OCID.
- ssl
Mode String - SSL mode used for the replication channel created by the blue/green workflow.
- state String
- The current lifecycle state.
- switchover
Status String - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - switchover
Trigger Integer (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db BlueSystem Details Green Deployment Target Db System Details - Target DB System overrides for a blue/green deployment.
- target
Db StringSystem Id - Green/target DB system OCID for the deployment pair.
- time
Created String - The time the deployment was created.
- time
Updated String - The time the deployment was last updated.
- active
Db stringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- channel
Details BlueGreen Deployment Channel Details - Replication channel details for a blue/green deployment.
- compartment
Id string - (Updatable) The OCID of the compartment.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete
Target booleanDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - display
Name string - (Updatable) The display name of the blue/green deployment.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - lifecycle
Details string - Additional lifecycle details.
- replication
Channel stringId - Replication channel OCID.
- source
Db stringSystem Id - Source DB system OCID.
- ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- state string
- The current lifecycle state.
- switchover
Status string - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - switchover
Trigger number (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db BlueSystem Details Green Deployment Target Db System Details - Target DB System overrides for a blue/green deployment.
- target
Db stringSystem Id - Green/target DB system OCID for the deployment pair.
- time
Created string - The time the deployment was created.
- time
Updated string - The time the deployment was last updated.
- active_
db_ strsystem_ id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- channel_
details BlueGreen Deployment Channel Details Args - Replication channel details for a blue/green deployment.
- compartment_
id str - (Updatable) The OCID of the compartment.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete_
target_ booldb_ system_ on_ delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - display_
name str - (Updatable) The display name of the blue/green deployment.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - lifecycle_
details str - Additional lifecycle details.
- replication_
channel_ strid - Replication channel OCID.
- source_
db_ strsystem_ id - Source DB system OCID.
- ssl_
mode str - SSL mode used for the replication channel created by the blue/green workflow.
- state str
- The current lifecycle state.
- switchover_
status str - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - switchover_
trigger int (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
db_ Bluesystem_ details Green Deployment Target Db System Details Args - Target DB System overrides for a blue/green deployment.
- target_
db_ strsystem_ id - Green/target DB system OCID for the deployment pair.
- time_
created str - The time the deployment was created.
- time_
updated str - The time the deployment was last updated.
- active
Db StringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- channel
Details Property Map - Replication channel details for a blue/green deployment.
- compartment
Id String - (Updatable) The OCID of the compartment.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - delete
Target BooleanDb System On Delete - (Updatable) Whether to delete the target DB System when this Blue/Green deployment is destroyed. The service deletes the associated replication channel as part of deleting the target DB System. Defaults to
false. Runpulumi upafter changing this value so it is stored in state before runningterraform destroy. - display
Name String - (Updatable) The display name of the blue/green deployment.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - lifecycle
Details String - Additional lifecycle details.
- replication
Channel StringId - Replication channel OCID.
- source
Db StringSystem Id - Source DB system OCID.
- ssl
Mode String - SSL mode used for the replication channel created by the blue/green workflow.
- state String
- The current lifecycle state.
- switchover
Status String - Stage of the most recent switchover workflow.
SWITCHOVER_FAILEDindicates terminal switchover failure. - switchover
Trigger Number (Updatable) An optional property when incremented triggers Switchover. Could be set to any integer value.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db Property MapSystem Details - Target DB System overrides for a blue/green deployment.
- target
Db StringSystem Id - Green/target DB system OCID for the deployment pair.
- time
Created String - The time the deployment was created.
- time
Updated String - The time the deployment was last updated.
Supporting Types
BlueGreenDeploymentChannelDetails, BlueGreenDeploymentChannelDetailsArgs
- Source
Password string - The password for the source DB system user used by the blue/green workflow to configure the replication channel. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.
- Source
Username string - The username on the source DB system used by the blue/green workflow to configure the replication channel. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
- Ssl
Mode string - The SSL mode of the replication channel created by the blue/green workflow.
VERIFY_CAandVERIFY_IDENTITYrequiresslCaCertificate.REQUIREDandDISABLEDmust not includesslCaCertificate. - Applier
Username string - The username for the replication applier of the target MySQL DB System.
- Ssl
Ca BlueCertificate Green Deployment Channel Details Ssl Ca Certificate - The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
- Source
Password string - The password for the source DB system user used by the blue/green workflow to configure the replication channel. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.
- Source
Username string - The username on the source DB system used by the blue/green workflow to configure the replication channel. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
- Ssl
Mode string - The SSL mode of the replication channel created by the blue/green workflow.
VERIFY_CAandVERIFY_IDENTITYrequiresslCaCertificate.REQUIREDandDISABLEDmust not includesslCaCertificate. - Applier
Username string - The username for the replication applier of the target MySQL DB System.
- Ssl
Ca BlueCertificate Green Deployment Channel Details Ssl Ca Certificate - The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
- source_
password string - The password for the source DB system user used by the blue/green workflow to configure the replication channel. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.
- source_
username string - The username on the source DB system used by the blue/green workflow to configure the replication channel. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
- ssl_
mode string - The SSL mode of the replication channel created by the blue/green workflow.
VERIFY_CAandVERIFY_IDENTITYrequiresslCaCertificate.REQUIREDandDISABLEDmust not includesslCaCertificate. - applier_
username string - The username for the replication applier of the target MySQL DB System.
- ssl_
ca_ objectcertificate - The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
- source
Password String - The password for the source DB system user used by the blue/green workflow to configure the replication channel. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.
- source
Username String - The username on the source DB system used by the blue/green workflow to configure the replication channel. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
- ssl
Mode String - The SSL mode of the replication channel created by the blue/green workflow.
VERIFY_CAandVERIFY_IDENTITYrequiresslCaCertificate.REQUIREDandDISABLEDmust not includesslCaCertificate. - applier
Username String - The username for the replication applier of the target MySQL DB System.
- ssl
Ca BlueCertificate Green Deployment Channel Details Ssl Ca Certificate - The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
- source
Password string - The password for the source DB system user used by the blue/green workflow to configure the replication channel. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.
- source
Username string - The username on the source DB system used by the blue/green workflow to configure the replication channel. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
- ssl
Mode string - The SSL mode of the replication channel created by the blue/green workflow.
VERIFY_CAandVERIFY_IDENTITYrequiresslCaCertificate.REQUIREDandDISABLEDmust not includesslCaCertificate. - applier
Username string - The username for the replication applier of the target MySQL DB System.
- ssl
Ca BlueCertificate Green Deployment Channel Details Ssl Ca Certificate - The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
- source_
password str - The password for the source DB system user used by the blue/green workflow to configure the replication channel. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.
- source_
username str - The username on the source DB system used by the blue/green workflow to configure the replication channel. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
- ssl_
mode str - The SSL mode of the replication channel created by the blue/green workflow.
VERIFY_CAandVERIFY_IDENTITYrequiresslCaCertificate.REQUIREDandDISABLEDmust not includesslCaCertificate. - applier_
username str - The username for the replication applier of the target MySQL DB System.
- ssl_
ca_ Bluecertificate Green Deployment Channel Details Ssl Ca Certificate - The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
- source
Password String - The password for the source DB system user used by the blue/green workflow to configure the replication channel. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.
- source
Username String - The username on the source DB system used by the blue/green workflow to configure the replication channel. The username has a maximum length of 96 characters. For more information, please see the MySQL documentation
- ssl
Mode String - The SSL mode of the replication channel created by the blue/green workflow.
VERIFY_CAandVERIFY_IDENTITYrequiresslCaCertificate.REQUIREDandDISABLEDmust not includesslCaCertificate. - applier
Username String - The username for the replication applier of the target MySQL DB System.
- ssl
Ca Property MapCertificate - The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
BlueGreenDeploymentChannelDetailsSslCaCertificate, BlueGreenDeploymentChannelDetailsSslCaCertificateArgs
- Certificate
Type string - The type of CA certificate.
- Contents string
- The string containing the CA certificate in PEM format.
- Certificate
Type string - The type of CA certificate.
- Contents string
- The string containing the CA certificate in PEM format.
- certificate_
type string - The type of CA certificate.
- contents string
- The string containing the CA certificate in PEM format.
- certificate
Type String - The type of CA certificate.
- contents String
- The string containing the CA certificate in PEM format.
- certificate
Type string - The type of CA certificate.
- contents string
- The string containing the CA certificate in PEM format.
- certificate_
type str - The type of CA certificate.
- contents str
- The string containing the CA certificate in PEM format.
- certificate
Type String - The type of CA certificate.
- contents String
- The string containing the CA certificate in PEM format.
BlueGreenDeploymentTargetDbSystemDetails, BlueGreenDeploymentTargetDbSystemDetailsArgs
- Mysql
Version string - Target MySQL engine version.
- Configuration
Id string - The OCID of the configuration to apply to the target DB System. If omitted, the target DB System inherits the source DB System configuration.
- Data
Storage intSize In Gb - Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
- Shape
Name string - The shape of the target DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation.
- Mysql
Version string - Target MySQL engine version.
- Configuration
Id string - The OCID of the configuration to apply to the target DB System. If omitted, the target DB System inherits the source DB System configuration.
- Data
Storage intSize In Gb - Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
- Shape
Name string - The shape of the target DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation.
- mysql_
version string - Target MySQL engine version.
- configuration_
id string - The OCID of the configuration to apply to the target DB System. If omitted, the target DB System inherits the source DB System configuration.
- data_
storage_ numbersize_ in_ gb - Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
- shape_
name string - The shape of the target DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation.
- mysql
Version String - Target MySQL engine version.
- configuration
Id String - The OCID of the configuration to apply to the target DB System. If omitted, the target DB System inherits the source DB System configuration.
- data
Storage IntegerSize In Gb - Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
- shape
Name String - The shape of the target DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation.
- mysql
Version string - Target MySQL engine version.
- configuration
Id string - The OCID of the configuration to apply to the target DB System. If omitted, the target DB System inherits the source DB System configuration.
- data
Storage numberSize In Gb - Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
- shape
Name string - The shape of the target DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation.
- mysql_
version str - Target MySQL engine version.
- configuration_
id str - The OCID of the configuration to apply to the target DB System. If omitted, the target DB System inherits the source DB System configuration.
- data_
storage_ intsize_ in_ gb - Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
- shape_
name str - The shape of the target DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation.
- mysql
Version String - Target MySQL engine version.
- configuration
Id String - The OCID of the configuration to apply to the target DB System. If omitted, the target DB System inherits the source DB System configuration.
- data
Storage NumberSize In Gb - Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
- shape
Name String - The shape of the target DB System. The shape determines resources allocated to the DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation.
Import
BlueGreenDeployments can be imported using the id, e.g.
$ pulumi import oci:Mysql/blueGreenDeployment:BlueGreenDeployment test_blue_green_deployment "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
published on Thursday, Sep 17, 2026 by Pulumi