Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi
This data source provides details about a specific Blue Green Deployment resource in Oracle Cloud Infrastructure MySQL Database service.
Gets a blue/green deployment by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBlueGreenDeployment = oci.mysql.getBlueGreenDeployment({
blueGreenDeploymentId: testBlueGreenDeploymentOciMysqlBlueGreenDeployment.id,
});
import pulumi
import pulumi_oci as oci
test_blue_green_deployment = oci.mysql.get_blue_green_deployment(blue_green_deployment_id=test_blue_green_deployment_oci_mysql_blue_green_deployment["id"])
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.GetBlueGreenDeployment(ctx, &mysql.GetBlueGreenDeploymentArgs{
BlueGreenDeploymentId: testBlueGreenDeploymentOciMysqlBlueGreenDeployment.Id,
}, nil)
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 = Oci.Mysql.GetBlueGreenDeployment.Invoke(new()
{
BlueGreenDeploymentId = testBlueGreenDeploymentOciMysqlBlueGreenDeployment.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Mysql.MysqlFunctions;
import com.pulumi.oci.Mysql.inputs.GetBlueGreenDeploymentArgs;
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) {
final var testBlueGreenDeployment = MysqlFunctions.getBlueGreenDeployment(GetBlueGreenDeploymentArgs.builder()
.blueGreenDeploymentId(testBlueGreenDeploymentOciMysqlBlueGreenDeployment.id())
.build());
}
}
variables:
testBlueGreenDeployment:
fn::invoke:
function: oci:Mysql:getBlueGreenDeployment
arguments:
blueGreenDeploymentId: ${testBlueGreenDeploymentOciMysqlBlueGreenDeployment.id}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_mysql_getbluegreendeployment" "testBlueGreenDeployment" {
blue_green_deployment_id = testBlueGreenDeploymentOciMysqlBlueGreenDeployment.id
}
Using getBlueGreenDeployment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBlueGreenDeployment(args: GetBlueGreenDeploymentArgs, opts?: InvokeOptions): Promise<GetBlueGreenDeploymentResult>
function getBlueGreenDeploymentOutput(args: GetBlueGreenDeploymentOutputArgs, opts?: InvokeOutputOptions): Output<GetBlueGreenDeploymentResult>def get_blue_green_deployment(blue_green_deployment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBlueGreenDeploymentResult
def get_blue_green_deployment_output(blue_green_deployment_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetBlueGreenDeploymentResult]func LookupBlueGreenDeployment(ctx *Context, args *LookupBlueGreenDeploymentArgs, opts ...InvokeOption) (*LookupBlueGreenDeploymentResult, error)
func LookupBlueGreenDeploymentOutput(ctx *Context, args *LookupBlueGreenDeploymentOutputArgs, opts ...InvokeOption) LookupBlueGreenDeploymentResultOutput> Note: This function is named LookupBlueGreenDeployment in the Go SDK.
public static class GetBlueGreenDeployment
{
public static Task<GetBlueGreenDeploymentResult> InvokeAsync(GetBlueGreenDeploymentArgs args, InvokeOptions? opts = null)
public static Output<GetBlueGreenDeploymentResult> Invoke(GetBlueGreenDeploymentInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetBlueGreenDeploymentResult> Invoke(GetBlueGreenDeploymentInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetBlueGreenDeploymentResult> getBlueGreenDeployment(GetBlueGreenDeploymentArgs args, InvokeOptions options)
public static Output<GetBlueGreenDeploymentResult> getBlueGreenDeployment(GetBlueGreenDeploymentArgs args, InvokeOptions options)
public static Output<GetBlueGreenDeploymentResult> getBlueGreenDeployment(GetBlueGreenDeploymentArgs args, InvokeOutputOptions options)
fn::invoke:
function: oci:Mysql/getBlueGreenDeployment:getBlueGreenDeployment
arguments:
# arguments dictionarydata "oci_mysql_get_blue_green_deployment" "name" {
# arguments
}The following arguments are supported:
- Blue
Green stringDeployment Id - The OCID of the blue/green deployment.
- Blue
Green stringDeployment Id - The OCID of the blue/green deployment.
- blue_
green_ stringdeployment_ id - The OCID of the blue/green deployment.
- blue
Green StringDeployment Id - The OCID of the blue/green deployment.
- blue
Green stringDeployment Id - The OCID of the blue/green deployment.
- blue_
green_ strdeployment_ id - The OCID of the blue/green deployment.
- blue
Green StringDeployment Id - The OCID of the blue/green deployment.
getBlueGreenDeployment Result
The following output properties are available:
- Active
Db stringSystem Id - The DB system OCID that currently owns the client-facing VIP and serves traffic.
- Blue
Green stringDeployment Id - Channel
Details List<GetBlue Green Deployment Channel Detail> - Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- 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 - Display
Name string - The display name of the blue/green deployment.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the blue/green deployment.
- Lifecycle
Details string - Additional lifecycle details.
- Replication
Channel stringId - Replication channel OCID.
- Source
Db stringSystem Id - Blue/original source DB system OCID for the deployment pair.
- 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 - Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Db List<GetSystem Details Blue Green Deployment Target Db System Detail> - Target DB System details 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.
- Blue
Green stringDeployment Id - Channel
Details []GetBlue Green Deployment Channel Detail - Compartment
Id string - The OCID of the compartment.
- map[string]string
- 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 - Display
Name string - The display name of the blue/green deployment.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The OCID of the blue/green deployment.
- Lifecycle
Details string - Additional lifecycle details.
- Replication
Channel stringId - Replication channel OCID.
- Source
Db stringSystem Id - Blue/original source DB system OCID for the deployment pair.
- 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 - map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Db []GetSystem Details Blue Green Deployment Target Db System Detail - Target DB System details 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.
- blue_
green_ stringdeployment_ id - channel_
details list(object) - compartment_
id string - The OCID of the compartment.
- map(string)
- 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 - display_
name string - The display name of the blue/green deployment.
- map(string)
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The OCID of the blue/green deployment.
- lifecycle_
details string - Additional lifecycle details.
- replication_
channel_ stringid - Replication channel OCID.
- source_
db_ stringsystem_ id - Blue/original source DB system OCID for the deployment pair.
- 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 - map(string)
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
db_ list(object)system_ details - Target DB System details 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.
- blue
Green StringDeployment Id - channel
Details List<GetBlue Green Deployment Channel Detail> - compartment
Id String - The OCID of the compartment.
- Map<String,String>
- 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 - display
Name String - The display name of the blue/green deployment.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the blue/green deployment.
- lifecycle
Details String - Additional lifecycle details.
- replication
Channel StringId - Replication channel OCID.
- source
Db StringSystem Id - Blue/original source DB system OCID for the deployment pair.
- 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 - Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db List<GetSystem Details Blue Green Deployment Target Db System Detail> - Target DB System details 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.
- blue
Green stringDeployment Id - channel
Details GetBlue Green Deployment Channel Detail[] - compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- 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 - display
Name string - The display name of the blue/green deployment.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The OCID of the blue/green deployment.
- lifecycle
Details string - Additional lifecycle details.
- replication
Channel stringId - Replication channel OCID.
- source
Db stringSystem Id - Blue/original source DB system OCID for the deployment pair.
- 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 - {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db GetSystem Details Blue Green Deployment Target Db System Detail[] - Target DB System details 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.
- blue_
green_ strdeployment_ id - channel_
details Sequence[GetBlue Green Deployment Channel Detail] - compartment_
id str - The OCID of the compartment.
- Mapping[str, str]
- 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 - display_
name str - The display name of the blue/green deployment.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- The OCID of the blue/green deployment.
- lifecycle_
details str - Additional lifecycle details.
- replication_
channel_ strid - Replication channel OCID.
- source_
db_ strsystem_ id - Blue/original source DB system OCID for the deployment pair.
- 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 - Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
db_ Sequence[Getsystem_ details Blue Green Deployment Target Db System Detail] - Target DB System details 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.
- blue
Green StringDeployment Id - channel
Details List<Property Map> - compartment
Id String - The OCID of the compartment.
- Map<String>
- 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 - display
Name String - The display name of the blue/green deployment.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The OCID of the blue/green deployment.
- lifecycle
Details String - Additional lifecycle details.
- replication
Channel StringId - Replication channel OCID.
- source
Db StringSystem Id - Blue/original source DB system OCID for the deployment pair.
- 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 - Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Db List<Property Map>System Details - Target DB System details 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
GetBlueGreenDeploymentChannelDetail
- Applier
Username string - Source
Password string - Source
Username string - Ssl
Ca List<GetCertificates Blue Green Deployment Channel Detail Ssl Ca Certificate> - Ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- Applier
Username string - Source
Password string - Source
Username string - Ssl
Ca []GetCertificates Blue Green Deployment Channel Detail Ssl Ca Certificate - Ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- applier_
username string - source_
password string - source_
username string - ssl_
ca_ list(object)certificates - ssl_
mode string - SSL mode used for the replication channel created by the blue/green workflow.
- applier
Username String - source
Password String - source
Username String - ssl
Ca List<GetCertificates Blue Green Deployment Channel Detail Ssl Ca Certificate> - ssl
Mode String - SSL mode used for the replication channel created by the blue/green workflow.
- applier
Username string - source
Password string - source
Username string - ssl
Ca GetCertificates Blue Green Deployment Channel Detail Ssl Ca Certificate[] - ssl
Mode string - SSL mode used for the replication channel created by the blue/green workflow.
- applier_
username str - source_
password str - source_
username str - ssl_
ca_ Sequence[Getcertificates Blue Green Deployment Channel Detail Ssl Ca Certificate] - ssl_
mode str - SSL mode used for the replication channel created by the blue/green workflow.
- applier
Username String - source
Password String - source
Username String - ssl
Ca List<Property Map>Certificates - ssl
Mode String - SSL mode used for the replication channel created by the blue/green workflow.
GetBlueGreenDeploymentChannelDetailSslCaCertificate
- Certificate
Type string - Contents string
- Certificate
Type string - Contents string
- certificate_
type string - contents string
- certificate
Type String - contents String
- certificate
Type string - contents string
- certificate_
type str - contents str
- certificate
Type String - contents String
GetBlueGreenDeploymentTargetDbSystemDetail
- Configuration
Id string - The OCID of the configuration applied to the target DB System.
- Data
Storage intSize In Gb - Initial data storage size in GiBs for the target DB System.
- Mysql
Version string - Target MySQL engine version.
- 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.
- Configuration
Id string - The OCID of the configuration applied to the target DB System.
- Data
Storage intSize In Gb - Initial data storage size in GiBs for the target DB System.
- Mysql
Version string - Target MySQL engine version.
- 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.
- configuration_
id string - The OCID of the configuration applied to the target DB System.
- data_
storage_ numbersize_ in_ gb - Initial data storage size in GiBs for the target DB System.
- mysql_
version string - Target MySQL engine version.
- 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.
- configuration
Id String - The OCID of the configuration applied to the target DB System.
- data
Storage IntegerSize In Gb - Initial data storage size in GiBs for the target DB System.
- mysql
Version String - Target MySQL engine version.
- 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.
- configuration
Id string - The OCID of the configuration applied to the target DB System.
- data
Storage numberSize In Gb - Initial data storage size in GiBs for the target DB System.
- mysql
Version string - Target MySQL engine version.
- 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.
- configuration_
id str - The OCID of the configuration applied to the target DB System.
- data_
storage_ intsize_ in_ gb - Initial data storage size in GiBs for the target DB System.
- mysql_
version str - Target MySQL engine version.
- 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.
- configuration
Id String - The OCID of the configuration applied to the target DB System.
- data
Storage NumberSize In Gb - Initial data storage size in GiBs for the target DB System.
- mysql
Version String - Target MySQL engine version.
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
published on Wednesday, Aug 26, 2026 by Pulumi