1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Mysql
  6. BlueGreenDeployment
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 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/v4/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:

    ChannelDetails BlueGreenDeploymentChannelDetails
    Replication channel details for a blue/green deployment.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DisplayName string
    (Updatable) The display name of the blue/green deployment.
    SourceDbSystemId string
    Source DB system OCID.
    TargetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetails
    Target DB System overrides for a blue/green deployment.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DeleteTargetDbSystemOnDelete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    FreeformTags 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"}
    SwitchoverTrigger 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

    ChannelDetails BlueGreenDeploymentChannelDetailsArgs
    Replication channel details for a blue/green deployment.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DisplayName string
    (Updatable) The display name of the blue/green deployment.
    SourceDbSystemId string
    Source DB system OCID.
    TargetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetailsArgs
    Target DB System overrides for a blue/green deployment.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DeleteTargetDbSystemOnDelete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    FreeformTags 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"}
    SwitchoverTrigger 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_system_id string
    Source DB system OCID.
    target_db_system_details object
    Target DB System overrides for a blue/green deployment.
    defined_tags 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_db_system_on_delete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    freeform_tags 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

    channelDetails BlueGreenDeploymentChannelDetails
    Replication channel details for a blue/green deployment.
    compartmentId String
    (Updatable) The OCID of the compartment.
    displayName String
    (Updatable) The display name of the blue/green deployment.
    sourceDbSystemId String
    Source DB system OCID.
    targetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetails
    Target DB System overrides for a blue/green deployment.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    deleteTargetDbSystemOnDelete Boolean
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    freeformTags 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"}
    switchoverTrigger 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

    channelDetails BlueGreenDeploymentChannelDetails
    Replication channel details for a blue/green deployment.
    compartmentId string
    (Updatable) The OCID of the compartment.
    displayName string
    (Updatable) The display name of the blue/green deployment.
    sourceDbSystemId string
    Source DB system OCID.
    targetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetails
    Target DB System overrides for a blue/green deployment.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    deleteTargetDbSystemOnDelete boolean
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    freeformTags {[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"}
    switchoverTrigger 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 BlueGreenDeploymentChannelDetailsArgs
    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_system_id str
    Source DB system OCID.
    target_db_system_details BlueGreenDeploymentTargetDbSystemDetailsArgs
    Target DB System overrides for a blue/green deployment.
    defined_tags 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_db_system_on_delete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    freeform_tags 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

    channelDetails Property Map
    Replication channel details for a blue/green deployment.
    compartmentId String
    (Updatable) The OCID of the compartment.
    displayName String
    (Updatable) The display name of the blue/green deployment.
    sourceDbSystemId String
    Source DB system OCID.
    targetDbSystemDetails Property Map
    Target DB System overrides for a blue/green deployment.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    deleteTargetDbSystemOnDelete Boolean
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    freeformTags 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"}
    switchoverTrigger 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:

    ActiveDbSystemId string
    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.
    LifecycleDetails string
    Additional lifecycle details.
    ReplicationChannelId string
    Replication channel OCID.
    SslMode string
    SSL mode used for the replication channel created by the blue/green workflow.
    State string
    The current lifecycle state.
    SwitchoverStatus string
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDbSystemId string
    Green/target DB system OCID for the deployment pair.
    TimeCreated string
    The time the deployment was created.
    TimeUpdated string
    The time the deployment was last updated.
    ActiveDbSystemId string
    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.
    LifecycleDetails string
    Additional lifecycle details.
    ReplicationChannelId string
    Replication channel OCID.
    SslMode string
    SSL mode used for the replication channel created by the blue/green workflow.
    State string
    The current lifecycle state.
    SwitchoverStatus string
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDbSystemId string
    Green/target DB system OCID for the deployment pair.
    TimeCreated string
    The time the deployment was created.
    TimeUpdated string
    The time the deployment was last updated.
    active_db_system_id string
    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_id string
    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_FAILED indicates terminal switchover failure.
    system_tags map(string)
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_db_system_id string
    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.
    activeDbSystemId String
    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.
    lifecycleDetails String
    Additional lifecycle details.
    replicationChannelId String
    Replication channel OCID.
    sslMode String
    SSL mode used for the replication channel created by the blue/green workflow.
    state String
    The current lifecycle state.
    switchoverStatus String
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDbSystemId String
    Green/target DB system OCID for the deployment pair.
    timeCreated String
    The time the deployment was created.
    timeUpdated String
    The time the deployment was last updated.
    activeDbSystemId string
    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.
    lifecycleDetails string
    Additional lifecycle details.
    replicationChannelId string
    Replication channel OCID.
    sslMode string
    SSL mode used for the replication channel created by the blue/green workflow.
    state string
    The current lifecycle state.
    switchoverStatus string
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDbSystemId string
    Green/target DB system OCID for the deployment pair.
    timeCreated string
    The time the deployment was created.
    timeUpdated string
    The time the deployment was last updated.
    active_db_system_id str
    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_id str
    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_FAILED indicates terminal switchover failure.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_db_system_id str
    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.
    activeDbSystemId String
    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.
    lifecycleDetails String
    Additional lifecycle details.
    replicationChannelId String
    Replication channel OCID.
    sslMode String
    SSL mode used for the replication channel created by the blue/green workflow.
    state String
    The current lifecycle state.
    switchoverStatus String
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDbSystemId String
    Green/target DB system OCID for the deployment pair.
    timeCreated String
    The time the deployment was created.
    timeUpdated 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) -> BlueGreenDeployment
    func 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.
    The following state arguments are supported:
    ActiveDbSystemId string
    The DB system OCID that currently owns the client-facing VIP and serves traffic.
    ChannelDetails BlueGreenDeploymentChannelDetails
    Replication channel details for a blue/green deployment.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DeleteTargetDbSystemOnDelete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    DisplayName string
    (Updatable) The display name of the blue/green deployment.
    FreeformTags 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"}
    LifecycleDetails string
    Additional lifecycle details.
    ReplicationChannelId string
    Replication channel OCID.
    SourceDbSystemId string
    Source DB system OCID.
    SslMode string
    SSL mode used for the replication channel created by the blue/green workflow.
    State string
    The current lifecycle state.
    SwitchoverStatus string
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    SwitchoverTrigger 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

    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetails
    Target DB System overrides for a blue/green deployment.
    TargetDbSystemId string
    Green/target DB system OCID for the deployment pair.
    TimeCreated string
    The time the deployment was created.
    TimeUpdated string
    The time the deployment was last updated.
    ActiveDbSystemId string
    The DB system OCID that currently owns the client-facing VIP and serves traffic.
    ChannelDetails BlueGreenDeploymentChannelDetailsArgs
    Replication channel details for a blue/green deployment.
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DeleteTargetDbSystemOnDelete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    DisplayName string
    (Updatable) The display name of the blue/green deployment.
    FreeformTags 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"}
    LifecycleDetails string
    Additional lifecycle details.
    ReplicationChannelId string
    Replication channel OCID.
    SourceDbSystemId string
    Source DB system OCID.
    SslMode string
    SSL mode used for the replication channel created by the blue/green workflow.
    State string
    The current lifecycle state.
    SwitchoverStatus string
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    SwitchoverTrigger 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

    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetailsArgs
    Target DB System overrides for a blue/green deployment.
    TargetDbSystemId string
    Green/target DB system OCID for the deployment pair.
    TimeCreated string
    The time the deployment was created.
    TimeUpdated string
    The time the deployment was last updated.
    active_db_system_id string
    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.
    defined_tags 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_db_system_on_delete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    display_name string
    (Updatable) The display name of the blue/green deployment.
    freeform_tags 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_id string
    Replication channel OCID.
    source_db_system_id string
    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_FAILED indicates 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

    system_tags map(string)
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_db_system_details object
    Target DB System overrides for a blue/green deployment.
    target_db_system_id string
    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.
    activeDbSystemId String
    The DB system OCID that currently owns the client-facing VIP and serves traffic.
    channelDetails BlueGreenDeploymentChannelDetails
    Replication channel details for a blue/green deployment.
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    deleteTargetDbSystemOnDelete Boolean
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    displayName String
    (Updatable) The display name of the blue/green deployment.
    freeformTags 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"}
    lifecycleDetails String
    Additional lifecycle details.
    replicationChannelId String
    Replication channel OCID.
    sourceDbSystemId String
    Source DB system OCID.
    sslMode String
    SSL mode used for the replication channel created by the blue/green workflow.
    state String
    The current lifecycle state.
    switchoverStatus String
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    switchoverTrigger 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

    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetails
    Target DB System overrides for a blue/green deployment.
    targetDbSystemId String
    Green/target DB system OCID for the deployment pair.
    timeCreated String
    The time the deployment was created.
    timeUpdated String
    The time the deployment was last updated.
    activeDbSystemId string
    The DB system OCID that currently owns the client-facing VIP and serves traffic.
    channelDetails BlueGreenDeploymentChannelDetails
    Replication channel details for a blue/green deployment.
    compartmentId string
    (Updatable) The OCID of the compartment.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    deleteTargetDbSystemOnDelete boolean
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    displayName string
    (Updatable) The display name of the blue/green deployment.
    freeformTags {[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"}
    lifecycleDetails string
    Additional lifecycle details.
    replicationChannelId string
    Replication channel OCID.
    sourceDbSystemId string
    Source DB system OCID.
    sslMode string
    SSL mode used for the replication channel created by the blue/green workflow.
    state string
    The current lifecycle state.
    switchoverStatus string
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    switchoverTrigger 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

    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDbSystemDetails BlueGreenDeploymentTargetDbSystemDetails
    Target DB System overrides for a blue/green deployment.
    targetDbSystemId string
    Green/target DB system OCID for the deployment pair.
    timeCreated string
    The time the deployment was created.
    timeUpdated string
    The time the deployment was last updated.
    active_db_system_id str
    The DB system OCID that currently owns the client-facing VIP and serves traffic.
    channel_details BlueGreenDeploymentChannelDetailsArgs
    Replication channel details for a blue/green deployment.
    compartment_id str
    (Updatable) The OCID of the compartment.
    defined_tags 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_db_system_on_delete bool
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    display_name str
    (Updatable) The display name of the blue/green deployment.
    freeform_tags 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_id str
    Replication channel OCID.
    source_db_system_id str
    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_FAILED indicates 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

    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_db_system_details BlueGreenDeploymentTargetDbSystemDetailsArgs
    Target DB System overrides for a blue/green deployment.
    target_db_system_id str
    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.
    activeDbSystemId String
    The DB system OCID that currently owns the client-facing VIP and serves traffic.
    channelDetails Property Map
    Replication channel details for a blue/green deployment.
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    deleteTargetDbSystemOnDelete Boolean
    (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. Run pulumi up after changing this value so it is stored in state before running terraform destroy.
    displayName String
    (Updatable) The display name of the blue/green deployment.
    freeformTags 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"}
    lifecycleDetails String
    Additional lifecycle details.
    replicationChannelId String
    Replication channel OCID.
    sourceDbSystemId String
    Source DB system OCID.
    sslMode String
    SSL mode used for the replication channel created by the blue/green workflow.
    state String
    The current lifecycle state.
    switchoverStatus String
    Stage of the most recent switchover workflow. SWITCHOVER_FAILED indicates terminal switchover failure.
    switchoverTrigger 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

    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetDbSystemDetails Property Map
    Target DB System overrides for a blue/green deployment.
    targetDbSystemId String
    Green/target DB system OCID for the deployment pair.
    timeCreated String
    The time the deployment was created.
    timeUpdated String
    The time the deployment was last updated.

    Supporting Types

    BlueGreenDeploymentChannelDetails, BlueGreenDeploymentChannelDetailsArgs

    SourcePassword 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.
    SourceUsername 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
    SslMode string
    The SSL mode of the replication channel created by the blue/green workflow. VERIFY_CA and VERIFY_IDENTITY require sslCaCertificate. REQUIRED and DISABLED must not include sslCaCertificate.
    ApplierUsername string
    The username for the replication applier of the target MySQL DB System.
    SslCaCertificate BlueGreenDeploymentChannelDetailsSslCaCertificate
    The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
    SourcePassword 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.
    SourceUsername 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
    SslMode string
    The SSL mode of the replication channel created by the blue/green workflow. VERIFY_CA and VERIFY_IDENTITY require sslCaCertificate. REQUIRED and DISABLED must not include sslCaCertificate.
    ApplierUsername string
    The username for the replication applier of the target MySQL DB System.
    SslCaCertificate BlueGreenDeploymentChannelDetailsSslCaCertificate
    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_CA and VERIFY_IDENTITY require sslCaCertificate. REQUIRED and DISABLED must not include sslCaCertificate.
    applier_username string
    The username for the replication applier of the target MySQL DB System.
    ssl_ca_certificate object
    The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
    sourcePassword 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.
    sourceUsername 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
    sslMode String
    The SSL mode of the replication channel created by the blue/green workflow. VERIFY_CA and VERIFY_IDENTITY require sslCaCertificate. REQUIRED and DISABLED must not include sslCaCertificate.
    applierUsername String
    The username for the replication applier of the target MySQL DB System.
    sslCaCertificate BlueGreenDeploymentChannelDetailsSslCaCertificate
    The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
    sourcePassword 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.
    sourceUsername 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
    sslMode string
    The SSL mode of the replication channel created by the blue/green workflow. VERIFY_CA and VERIFY_IDENTITY require sslCaCertificate. REQUIRED and DISABLED must not include sslCaCertificate.
    applierUsername string
    The username for the replication applier of the target MySQL DB System.
    sslCaCertificate BlueGreenDeploymentChannelDetailsSslCaCertificate
    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_CA and VERIFY_IDENTITY require sslCaCertificate. REQUIRED and DISABLED must not include sslCaCertificate.
    applier_username str
    The username for the replication applier of the target MySQL DB System.
    ssl_ca_certificate BlueGreenDeploymentChannelDetailsSslCaCertificate
    The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.
    sourcePassword 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.
    sourceUsername 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
    sslMode String
    The SSL mode of the replication channel created by the blue/green workflow. VERIFY_CA and VERIFY_IDENTITY require sslCaCertificate. REQUIRED and DISABLED must not include sslCaCertificate.
    applierUsername String
    The username for the replication applier of the target MySQL DB System.
    sslCaCertificate Property Map
    The CA certificate of the server used for VERIFY_IDENTITY and VERIFY_CA ssl modes.

    BlueGreenDeploymentChannelDetailsSslCaCertificate, BlueGreenDeploymentChannelDetailsSslCaCertificateArgs

    CertificateType string
    The type of CA certificate.
    Contents string
    The string containing the CA certificate in PEM format.
    CertificateType 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.
    certificateType String
    The type of CA certificate.
    contents String
    The string containing the CA certificate in PEM format.
    certificateType 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.
    certificateType String
    The type of CA certificate.
    contents String
    The string containing the CA certificate in PEM format.

    BlueGreenDeploymentTargetDbSystemDetails, BlueGreenDeploymentTargetDbSystemDetailsArgs

    MysqlVersion string
    Target MySQL engine version.
    ConfigurationId 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.
    DataStorageSizeInGb int
    Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
    ShapeName 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.
    MysqlVersion string
    Target MySQL engine version.
    ConfigurationId 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.
    DataStorageSizeInGb int
    Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
    ShapeName 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_size_in_gb number
    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.
    mysqlVersion String
    Target MySQL engine version.
    configurationId 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.
    dataStorageSizeInGb Integer
    Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
    shapeName 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.
    mysqlVersion string
    Target MySQL engine version.
    configurationId 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.
    dataStorageSizeInGb number
    Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
    shapeName 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_size_in_gb int
    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.
    mysqlVersion String
    Target MySQL engine version.
    configurationId 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.
    dataStorageSizeInGb Number
    Initial data storage size in GiBs for the target DB System. If omitted, the target DB System uses the source DB System storage size.
    shapeName 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 oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.22.0
    published on Wednesday, Aug 26, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial