1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Mysql
  5. Replica
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.Mysql.Replica

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

    This resource provides the Replica resource in Oracle Cloud Infrastructure MySQL Database service.

    Creates a DB System read replica.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testReplica = new oci.mysql.Replica("test_replica", {
        dbSystemId: testMysqlDbSystem.id,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: replicaDescription,
        displayName: replicaDisplayName,
        freeformTags: {
            "bar-key": "value",
        },
        isDeleteProtected: replicaIsDeleteProtected,
        replicaOverrides: {
            configurationId: testMysqlConfiguration.id,
            mysqlVersion: replicaReplicaOverridesMysqlVersion,
            shapeName: testShape.name,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_replica = oci.mysql.Replica("test_replica",
        db_system_id=test_mysql_db_system["id"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=replica_description,
        display_name=replica_display_name,
        freeform_tags={
            "bar-key": "value",
        },
        is_delete_protected=replica_is_delete_protected,
        replica_overrides=oci.mysql.ReplicaReplicaOverridesArgs(
            configuration_id=test_mysql_configuration["id"],
            mysql_version=replica_replica_overrides_mysql_version,
            shape_name=test_shape["name"],
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Mysql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Mysql.NewReplica(ctx, "test_replica", &Mysql.ReplicaArgs{
    			DbSystemId: pulumi.Any(testMysqlDbSystem.Id),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			Description: pulumi.Any(replicaDescription),
    			DisplayName: pulumi.Any(replicaDisplayName),
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			IsDeleteProtected: pulumi.Any(replicaIsDeleteProtected),
    			ReplicaOverrides: &mysql.ReplicaReplicaOverridesArgs{
    				ConfigurationId: pulumi.Any(testMysqlConfiguration.Id),
    				MysqlVersion:    pulumi.Any(replicaReplicaOverridesMysqlVersion),
    				ShapeName:       pulumi.Any(testShape.Name),
    			},
    		})
    		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 testReplica = new Oci.Mysql.Replica("test_replica", new()
        {
            DbSystemId = testMysqlDbSystem.Id,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = replicaDescription,
            DisplayName = replicaDisplayName,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            IsDeleteProtected = replicaIsDeleteProtected,
            ReplicaOverrides = new Oci.Mysql.Inputs.ReplicaReplicaOverridesArgs
            {
                ConfigurationId = testMysqlConfiguration.Id,
                MysqlVersion = replicaReplicaOverridesMysqlVersion,
                ShapeName = testShape.Name,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Mysql.Replica;
    import com.pulumi.oci.Mysql.ReplicaArgs;
    import com.pulumi.oci.Mysql.inputs.ReplicaReplicaOverridesArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 testReplica = new Replica("testReplica", ReplicaArgs.builder()        
                .dbSystemId(testMysqlDbSystem.id())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(replicaDescription)
                .displayName(replicaDisplayName)
                .freeformTags(Map.of("bar-key", "value"))
                .isDeleteProtected(replicaIsDeleteProtected)
                .replicaOverrides(ReplicaReplicaOverridesArgs.builder()
                    .configurationId(testMysqlConfiguration.id())
                    .mysqlVersion(replicaReplicaOverridesMysqlVersion)
                    .shapeName(testShape.name())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testReplica:
        type: oci:Mysql:Replica
        name: test_replica
        properties:
          dbSystemId: ${testMysqlDbSystem.id}
          definedTags:
            foo-namespace.bar-key: value
          description: ${replicaDescription}
          displayName: ${replicaDisplayName}
          freeformTags:
            bar-key: value
          isDeleteProtected: ${replicaIsDeleteProtected}
          replicaOverrides:
            configurationId: ${testMysqlConfiguration.id}
            mysqlVersion: ${replicaReplicaOverridesMysqlVersion}
            shapeName: ${testShape.name}
    

    Create Replica Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Replica(name: string, args: ReplicaArgs, opts?: CustomResourceOptions);
    @overload
    def Replica(resource_name: str,
                args: ReplicaArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Replica(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                db_system_id: Optional[str] = None,
                defined_tags: Optional[Mapping[str, Any]] = None,
                description: Optional[str] = None,
                display_name: Optional[str] = None,
                freeform_tags: Optional[Mapping[str, Any]] = None,
                is_delete_protected: Optional[bool] = None,
                replica_overrides: Optional[_mysql.ReplicaReplicaOverridesArgs] = None)
    func NewReplica(ctx *Context, name string, args ReplicaArgs, opts ...ResourceOption) (*Replica, error)
    public Replica(string name, ReplicaArgs args, CustomResourceOptions? opts = null)
    public Replica(String name, ReplicaArgs args)
    public Replica(String name, ReplicaArgs args, CustomResourceOptions options)
    
    type: oci:Mysql:Replica
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReplicaArgs
    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 ReplicaArgs
    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 ReplicaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicaArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var replicaResource = new Oci.Mysql.Replica("replicaResource", new()
    {
        DbSystemId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        Description = "string",
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        IsDeleteProtected = false,
        ReplicaOverrides = new Oci.Mysql.Inputs.ReplicaReplicaOverridesArgs
        {
            ConfigurationId = "string",
            MysqlVersion = "string",
            ShapeName = "string",
        },
    });
    
    example, err := Mysql.NewReplica(ctx, "replicaResource", &Mysql.ReplicaArgs{
    	DbSystemId: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	IsDeleteProtected: pulumi.Bool(false),
    	ReplicaOverrides: &mysql.ReplicaReplicaOverridesArgs{
    		ConfigurationId: pulumi.String("string"),
    		MysqlVersion:    pulumi.String("string"),
    		ShapeName:       pulumi.String("string"),
    	},
    })
    
    var replicaResource = new Replica("replicaResource", ReplicaArgs.builder()        
        .dbSystemId("string")
        .definedTags(Map.of("string", "any"))
        .description("string")
        .displayName("string")
        .freeformTags(Map.of("string", "any"))
        .isDeleteProtected(false)
        .replicaOverrides(ReplicaReplicaOverridesArgs.builder()
            .configurationId("string")
            .mysqlVersion("string")
            .shapeName("string")
            .build())
        .build());
    
    replica_resource = oci.mysql.Replica("replicaResource",
        db_system_id="string",
        defined_tags={
            "string": "any",
        },
        description="string",
        display_name="string",
        freeform_tags={
            "string": "any",
        },
        is_delete_protected=False,
        replica_overrides=oci.mysql.ReplicaReplicaOverridesArgs(
            configuration_id="string",
            mysql_version="string",
            shape_name="string",
        ))
    
    const replicaResource = new oci.mysql.Replica("replicaResource", {
        dbSystemId: "string",
        definedTags: {
            string: "any",
        },
        description: "string",
        displayName: "string",
        freeformTags: {
            string: "any",
        },
        isDeleteProtected: false,
        replicaOverrides: {
            configurationId: "string",
            mysqlVersion: "string",
            shapeName: "string",
        },
    });
    
    type: oci:Mysql:Replica
    properties:
        dbSystemId: string
        definedTags:
            string: any
        description: string
        displayName: string
        freeformTags:
            string: any
        isDeleteProtected: false
        replicaOverrides:
            configurationId: string
            mysqlVersion: string
            shapeName: string
    

    Replica Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Replica resource accepts the following input properties:

    DbSystemId string
    The OCID of the DB System the read replica is associated with.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) User provided description of the read replica.
    DisplayName string
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsDeleteProtected bool
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    ReplicaOverrides ReplicaReplicaOverrides
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    DbSystemId string
    The OCID of the DB System the read replica is associated with.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) User provided description of the read replica.
    DisplayName string
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsDeleteProtected bool
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    ReplicaOverrides ReplicaReplicaOverridesArgs
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    dbSystemId String
    The OCID of the DB System the read replica is associated with.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) User provided description of the read replica.
    displayName String
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isDeleteProtected Boolean
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    replicaOverrides ReplicaReplicaOverrides
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    dbSystemId string
    The OCID of the DB System the read replica is associated with.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) User provided description of the read replica.
    displayName string
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isDeleteProtected boolean
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    replicaOverrides ReplicaReplicaOverrides
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    db_system_id str
    The OCID of the DB System the read replica is associated with.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) User provided description of the read replica.
    display_name str
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    is_delete_protected bool
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    replica_overrides mysql.ReplicaReplicaOverridesArgs
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    dbSystemId String
    The OCID of the DB System the read replica is associated with.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) User provided description of the read replica.
    displayName String
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isDeleteProtected Boolean
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    replicaOverrides Property Map
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Replica resource produces the following output properties:

    AvailabilityDomain string
    The name of the Availability Domain the read replica is located in.
    CompartmentId string
    The OCID of the compartment that contains the read replica.
    ConfigurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    FaultDomain string
    The name of the Fault Domain the read replica is located in.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    The IP address the read replica is configured to listen on.
    LifecycleDetails string
    A message describing the state of the read replica.
    MysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    Port int
    The port the read replica is configured to listen on.
    PortX int
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    SecureConnections List<ReplicaSecureConnection>
    Secure connection configuration details.
    ShapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    State string
    The state of the read replica.
    TimeCreated string
    The date and time the read replica was created, as described by RFC 3339.
    TimeUpdated string
    The time the read replica was last updated, as described by RFC 3339.
    AvailabilityDomain string
    The name of the Availability Domain the read replica is located in.
    CompartmentId string
    The OCID of the compartment that contains the read replica.
    ConfigurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    FaultDomain string
    The name of the Fault Domain the read replica is located in.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    The IP address the read replica is configured to listen on.
    LifecycleDetails string
    A message describing the state of the read replica.
    MysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    Port int
    The port the read replica is configured to listen on.
    PortX int
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    SecureConnections []ReplicaSecureConnection
    Secure connection configuration details.
    ShapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    State string
    The state of the read replica.
    TimeCreated string
    The date and time the read replica was created, as described by RFC 3339.
    TimeUpdated string
    The time the read replica was last updated, as described by RFC 3339.
    availabilityDomain String
    The name of the Availability Domain the read replica is located in.
    compartmentId String
    The OCID of the compartment that contains the read replica.
    configurationId String
    (Updatable) The OCID of the Configuration to be used by the read replica.
    faultDomain String
    The name of the Fault Domain the read replica is located in.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    The IP address the read replica is configured to listen on.
    lifecycleDetails String
    A message describing the state of the read replica.
    mysqlVersion String
    (Updatable) The MySQL version to be used by the read replica.
    port Integer
    The port the read replica is configured to listen on.
    portX Integer
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    secureConnections List<ReplicaSecureConnection>
    Secure connection configuration details.
    shapeName String

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state String
    The state of the read replica.
    timeCreated String
    The date and time the read replica was created, as described by RFC 3339.
    timeUpdated String
    The time the read replica was last updated, as described by RFC 3339.
    availabilityDomain string
    The name of the Availability Domain the read replica is located in.
    compartmentId string
    The OCID of the compartment that contains the read replica.
    configurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    faultDomain string
    The name of the Fault Domain the read replica is located in.
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddress string
    The IP address the read replica is configured to listen on.
    lifecycleDetails string
    A message describing the state of the read replica.
    mysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    port number
    The port the read replica is configured to listen on.
    portX number
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    secureConnections ReplicaSecureConnection[]
    Secure connection configuration details.
    shapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state string
    The state of the read replica.
    timeCreated string
    The date and time the read replica was created, as described by RFC 3339.
    timeUpdated string
    The time the read replica was last updated, as described by RFC 3339.
    availability_domain str
    The name of the Availability Domain the read replica is located in.
    compartment_id str
    The OCID of the compartment that contains the read replica.
    configuration_id str
    (Updatable) The OCID of the Configuration to be used by the read replica.
    fault_domain str
    The name of the Fault Domain the read replica is located in.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_address str
    The IP address the read replica is configured to listen on.
    lifecycle_details str
    A message describing the state of the read replica.
    mysql_version str
    (Updatable) The MySQL version to be used by the read replica.
    port int
    The port the read replica is configured to listen on.
    port_x int
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    secure_connections Sequence[mysql.ReplicaSecureConnection]
    Secure connection configuration details.
    shape_name str

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state str
    The state of the read replica.
    time_created str
    The date and time the read replica was created, as described by RFC 3339.
    time_updated str
    The time the read replica was last updated, as described by RFC 3339.
    availabilityDomain String
    The name of the Availability Domain the read replica is located in.
    compartmentId String
    The OCID of the compartment that contains the read replica.
    configurationId String
    (Updatable) The OCID of the Configuration to be used by the read replica.
    faultDomain String
    The name of the Fault Domain the read replica is located in.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    The IP address the read replica is configured to listen on.
    lifecycleDetails String
    A message describing the state of the read replica.
    mysqlVersion String
    (Updatable) The MySQL version to be used by the read replica.
    port Number
    The port the read replica is configured to listen on.
    portX Number
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    secureConnections List<Property Map>
    Secure connection configuration details.
    shapeName String

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state String
    The state of the read replica.
    timeCreated String
    The date and time the read replica was created, as described by RFC 3339.
    timeUpdated String
    The time the read replica was last updated, as described by RFC 3339.

    Look up Existing Replica Resource

    Get an existing Replica 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?: ReplicaState, opts?: CustomResourceOptions): Replica
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_domain: Optional[str] = None,
            compartment_id: Optional[str] = None,
            configuration_id: Optional[str] = None,
            db_system_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            fault_domain: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            ip_address: Optional[str] = None,
            is_delete_protected: Optional[bool] = None,
            lifecycle_details: Optional[str] = None,
            mysql_version: Optional[str] = None,
            port: Optional[int] = None,
            port_x: Optional[int] = None,
            replica_overrides: Optional[_mysql.ReplicaReplicaOverridesArgs] = None,
            secure_connections: Optional[Sequence[_mysql.ReplicaSecureConnectionArgs]] = None,
            shape_name: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> Replica
    func GetReplica(ctx *Context, name string, id IDInput, state *ReplicaState, opts ...ResourceOption) (*Replica, error)
    public static Replica Get(string name, Input<string> id, ReplicaState? state, CustomResourceOptions? opts = null)
    public static Replica get(String name, Output<String> id, ReplicaState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AvailabilityDomain string
    The name of the Availability Domain the read replica is located in.
    CompartmentId string
    The OCID of the compartment that contains the read replica.
    ConfigurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    DbSystemId string
    The OCID of the DB System the read replica is associated with.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) User provided description of the read replica.
    DisplayName string
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    FaultDomain string
    The name of the Fault Domain the read replica is located in.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IpAddress string
    The IP address the read replica is configured to listen on.
    IsDeleteProtected bool
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    LifecycleDetails string
    A message describing the state of the read replica.
    MysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    Port int
    The port the read replica is configured to listen on.
    PortX int
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    ReplicaOverrides ReplicaReplicaOverrides
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    SecureConnections List<ReplicaSecureConnection>
    Secure connection configuration details.
    ShapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    State string
    The state of the read replica.
    TimeCreated string
    The date and time the read replica was created, as described by RFC 3339.
    TimeUpdated string
    The time the read replica was last updated, as described by RFC 3339.
    AvailabilityDomain string
    The name of the Availability Domain the read replica is located in.
    CompartmentId string
    The OCID of the compartment that contains the read replica.
    ConfigurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    DbSystemId string
    The OCID of the DB System the read replica is associated with.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    (Updatable) User provided description of the read replica.
    DisplayName string
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    FaultDomain string
    The name of the Fault Domain the read replica is located in.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IpAddress string
    The IP address the read replica is configured to listen on.
    IsDeleteProtected bool
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    LifecycleDetails string
    A message describing the state of the read replica.
    MysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    Port int
    The port the read replica is configured to listen on.
    PortX int
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    ReplicaOverrides ReplicaReplicaOverridesArgs
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    SecureConnections []ReplicaSecureConnectionArgs
    Secure connection configuration details.
    ShapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    State string
    The state of the read replica.
    TimeCreated string
    The date and time the read replica was created, as described by RFC 3339.
    TimeUpdated string
    The time the read replica was last updated, as described by RFC 3339.
    availabilityDomain String
    The name of the Availability Domain the read replica is located in.
    compartmentId String
    The OCID of the compartment that contains the read replica.
    configurationId String
    (Updatable) The OCID of the Configuration to be used by the read replica.
    dbSystemId String
    The OCID of the DB System the read replica is associated with.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) User provided description of the read replica.
    displayName String
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    faultDomain String
    The name of the Fault Domain the read replica is located in.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ipAddress String
    The IP address the read replica is configured to listen on.
    isDeleteProtected Boolean
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    lifecycleDetails String
    A message describing the state of the read replica.
    mysqlVersion String
    (Updatable) The MySQL version to be used by the read replica.
    port Integer
    The port the read replica is configured to listen on.
    portX Integer
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    replicaOverrides ReplicaReplicaOverrides
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    secureConnections List<ReplicaSecureConnection>
    Secure connection configuration details.
    shapeName String

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state String
    The state of the read replica.
    timeCreated String
    The date and time the read replica was created, as described by RFC 3339.
    timeUpdated String
    The time the read replica was last updated, as described by RFC 3339.
    availabilityDomain string
    The name of the Availability Domain the read replica is located in.
    compartmentId string
    The OCID of the compartment that contains the read replica.
    configurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    dbSystemId string
    The OCID of the DB System the read replica is associated with.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    (Updatable) User provided description of the read replica.
    displayName string
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    faultDomain string
    The name of the Fault Domain the read replica is located in.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ipAddress string
    The IP address the read replica is configured to listen on.
    isDeleteProtected boolean
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    lifecycleDetails string
    A message describing the state of the read replica.
    mysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    port number
    The port the read replica is configured to listen on.
    portX number
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    replicaOverrides ReplicaReplicaOverrides
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    secureConnections ReplicaSecureConnection[]
    Secure connection configuration details.
    shapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state string
    The state of the read replica.
    timeCreated string
    The date and time the read replica was created, as described by RFC 3339.
    timeUpdated string
    The time the read replica was last updated, as described by RFC 3339.
    availability_domain str
    The name of the Availability Domain the read replica is located in.
    compartment_id str
    The OCID of the compartment that contains the read replica.
    configuration_id str
    (Updatable) The OCID of the Configuration to be used by the read replica.
    db_system_id str
    The OCID of the DB System the read replica is associated with.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    (Updatable) User provided description of the read replica.
    display_name str
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    fault_domain str
    The name of the Fault Domain the read replica is located in.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ip_address str
    The IP address the read replica is configured to listen on.
    is_delete_protected bool
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    lifecycle_details str
    A message describing the state of the read replica.
    mysql_version str
    (Updatable) The MySQL version to be used by the read replica.
    port int
    The port the read replica is configured to listen on.
    port_x int
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    replica_overrides mysql.ReplicaReplicaOverridesArgs
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    secure_connections Sequence[mysql.ReplicaSecureConnectionArgs]
    Secure connection configuration details.
    shape_name str

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state str
    The state of the read replica.
    time_created str
    The date and time the read replica was created, as described by RFC 3339.
    time_updated str
    The time the read replica was last updated, as described by RFC 3339.
    availabilityDomain String
    The name of the Availability Domain the read replica is located in.
    compartmentId String
    The OCID of the compartment that contains the read replica.
    configurationId String
    (Updatable) The OCID of the Configuration to be used by the read replica.
    dbSystemId String
    The OCID of the DB System the read replica is associated with.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) User provided description of the read replica.
    displayName String
    (Updatable) The user-friendly name for the read replica. It does not have to be unique.
    faultDomain String
    The name of the Fault Domain the read replica is located in.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    ipAddress String
    The IP address the read replica is configured to listen on.
    isDeleteProtected Boolean
    (Updatable) Specifies whether the read replica can be deleted. Set to true to prevent deletion, false (default) to allow. Note that if a read replica is delete protected it also prevents the entire DB System from being deleted. If the DB System is delete protected, read replicas can still be deleted individually if they are not delete protected themselves.
    lifecycleDetails String
    A message describing the state of the read replica.
    mysqlVersion String
    (Updatable) The MySQL version to be used by the read replica.
    port Number
    The port the read replica is configured to listen on.
    portX Number
    The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port.
    replicaOverrides Property Map
    (Updatable) By default a read replica inherits the MySQL version, shape, and configuration of the source DB system. If you want to override any of these, provide values in the properties, mysqlVersion, shapeName, and configurationId. If you set a property value to "", then the value is inherited from its source DB system.
    secureConnections List<Property Map>
    Secure connection configuration details.
    shapeName String

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    state String
    The state of the read replica.
    timeCreated String
    The date and time the read replica was created, as described by RFC 3339.
    timeUpdated String
    The time the read replica was last updated, as described by RFC 3339.

    Supporting Types

    ReplicaReplicaOverrides, ReplicaReplicaOverridesArgs

    ConfigurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    MysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    ShapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    ConfigurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    MysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    ShapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    configurationId String
    (Updatable) The OCID of the Configuration to be used by the read replica.
    mysqlVersion String
    (Updatable) The MySQL version to be used by the read replica.
    shapeName String

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    configurationId string
    (Updatable) The OCID of the Configuration to be used by the read replica.
    mysqlVersion string
    (Updatable) The MySQL version to be used by the read replica.
    shapeName string

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    configuration_id str
    (Updatable) The OCID of the Configuration to be used by the read replica.
    mysql_version str
    (Updatable) The MySQL version to be used by the read replica.
    shape_name str

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    configurationId String
    (Updatable) The OCID of the Configuration to be used by the read replica.
    mysqlVersion String
    (Updatable) The MySQL version to be used by the read replica.
    shapeName String

    (Updatable) The shape to be used by the read replica. The shape determines the resources allocated: CPU cores and memory for VM shapes, CPU cores, memory and storage for non-VM (bare metal) shapes. To get a list of shapes, use the ListShapes operation.

    ** 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

    ReplicaSecureConnection, ReplicaSecureConnectionArgs

    CertificateGenerationType string
    Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
    CertificateId string
    The OCID of the certificate to use.
    CertificateGenerationType string
    Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
    CertificateId string
    The OCID of the certificate to use.
    certificateGenerationType String
    Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
    certificateId String
    The OCID of the certificate to use.
    certificateGenerationType string
    Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
    certificateId string
    The OCID of the certificate to use.
    certificate_generation_type str
    Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
    certificate_id str
    The OCID of the certificate to use.
    certificateGenerationType String
    Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
    certificateId String
    The OCID of the certificate to use.

    Import

    Replicas can be imported using the id, e.g.

    $ pulumi import oci:Mysql/replica:Replica test_replica "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
    Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi