oci.Mysql.Replica
Explore with Pulumi AI
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={
        "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/v2/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.StringMap{
				"foo-namespace.bar-key": pulumi.String("value"),
			},
			Description: pulumi.Any(replicaDescription),
			DisplayName: pulumi.Any(replicaDisplayName),
			FreeformTags: pulumi.StringMap{
				"bar-key": pulumi.String("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, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            is_delete_protected: Optional[bool] = None,
            replica_overrides: Optional[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.
Constructor example
The following reference example uses placeholder values for all input properties.
var replicaResource = new Oci.Mysql.Replica("replicaResource", new()
{
    DbSystemId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    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.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	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", "string"))
    .description("string")
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .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": "string",
    },
    description="string",
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    is_delete_protected=False,
    replica_overrides={
        "configuration_id": "string",
        "mysql_version": "string",
        "shape_name": "string",
    })
const replicaResource = new oci.mysql.Replica("replicaResource", {
    dbSystemId: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    isDeleteProtected: false,
    replicaOverrides: {
        configurationId: "string",
        mysqlVersion: "string",
        shapeName: "string",
    },
});
type: oci:Mysql:Replica
properties:
    dbSystemId: string
    definedTags:
        string: string
    description: string
    displayName: string
    freeformTags:
        string: string
    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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Replica resource accepts the following input properties:
- DbSystem stringId 
- The OCID of the DB System the read replica is associated with.
- Dictionary<string, string>
- (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.
- 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"}
- IsDelete boolProtected 
- (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 ReplicaReplica Overrides 
- (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.
- DbSystem stringId 
- The OCID of the DB System the read replica is associated with.
- map[string]string
- (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.
- 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"}
- IsDelete boolProtected 
- (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 ReplicaReplica Overrides Args 
- (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.
- dbSystem StringId 
- The OCID of the DB System the read replica is associated with.
- Map<String,String>
- (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.
- 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"}
- isDelete BooleanProtected 
- (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 ReplicaReplica Overrides 
- (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.
- dbSystem stringId 
- The OCID of the DB System the read replica is associated with.
- {[key: string]: string}
- (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.
- {[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"}
- isDelete booleanProtected 
- (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 ReplicaReplica Overrides 
- (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_ strid 
- The OCID of the DB System the read replica is associated with.
- Mapping[str, str]
- (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.
- 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"}
- is_delete_ boolprotected 
- (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 ReplicaReplica Overrides Args 
- (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.
- dbSystem StringId 
- The OCID of the DB System the read replica is associated with.
- Map<String>
- (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.
- 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"}
- isDelete BooleanProtected 
- (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
- 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
- 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<ReplicaSecure Connection> 
- Secure connection configuration details.
- ShapeName string
- The shape currently in use 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.
- 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
- 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
- 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 []ReplicaSecure Connection 
- Secure connection configuration details.
- ShapeName string
- The shape currently in use 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.
- 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
- 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
- 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<ReplicaSecure Connection> 
- Secure connection configuration details.
- shapeName String
- The shape currently in use 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.
- 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
- 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
- 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 ReplicaSecure Connection[] 
- Secure connection configuration details.
- shapeName string
- The shape currently in use 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.
- 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
- 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
- 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[ReplicaSecure Connection] 
- Secure connection configuration details.
- shape_name str
- The shape currently in use 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.
- 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
- 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
- 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
- The shape currently in use 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.
- 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, str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        fault_domain: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = 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[ReplicaReplicaOverridesArgs] = None,
        secure_connections: Optional[Sequence[ReplicaSecureConnectionArgs]] = None,
        shape_name: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> Replicafunc 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)resources:  _:    type: oci:Mysql:Replica    get:      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.
- 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
- The OCID of the Configuration to be used by the read replica.
- DbSystem stringId 
- The OCID of the DB System the read replica is associated with.
- Dictionary<string, string>
- (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.
- 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"}
- IpAddress string
- The IP address the read replica is configured to listen on.
- IsDelete boolProtected 
- (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
- 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 ReplicaReplica Overrides 
- (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<ReplicaSecure Connection> 
- Secure connection configuration details.
- ShapeName string
- The shape currently in use 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.
- 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
- The OCID of the Configuration to be used by the read replica.
- DbSystem stringId 
- The OCID of the DB System the read replica is associated with.
- map[string]string
- (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.
- 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"}
- IpAddress string
- The IP address the read replica is configured to listen on.
- IsDelete boolProtected 
- (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
- 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 ReplicaReplica Overrides Args 
- (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 []ReplicaSecure Connection Args 
- Secure connection configuration details.
- ShapeName string
- The shape currently in use 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.
- 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
- The OCID of the Configuration to be used by the read replica.
- dbSystem StringId 
- The OCID of the DB System the read replica is associated with.
- Map<String,String>
- (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.
- 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"}
- ipAddress String
- The IP address the read replica is configured to listen on.
- isDelete BooleanProtected 
- (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
- 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 ReplicaReplica Overrides 
- (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<ReplicaSecure Connection> 
- Secure connection configuration details.
- shapeName String
- The shape currently in use 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.
- 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
- The OCID of the Configuration to be used by the read replica.
- dbSystem stringId 
- The OCID of the DB System the read replica is associated with.
- {[key: string]: string}
- (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.
- {[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"}
- ipAddress string
- The IP address the read replica is configured to listen on.
- isDelete booleanProtected 
- (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
- 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 ReplicaReplica Overrides 
- (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 ReplicaSecure Connection[] 
- Secure connection configuration details.
- shapeName string
- The shape currently in use 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.
- 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
- The OCID of the Configuration to be used by the read replica.
- db_system_ strid 
- The OCID of the DB System the read replica is associated with.
- Mapping[str, str]
- (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.
- 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"}
- ip_address str
- The IP address the read replica is configured to listen on.
- is_delete_ boolprotected 
- (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
- 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 ReplicaReplica Overrides Args 
- (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[ReplicaSecure Connection Args] 
- Secure connection configuration details.
- shape_name str
- The shape currently in use 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.
- 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
- The OCID of the Configuration to be used by the read replica.
- dbSystem StringId 
- The OCID of the DB System the read replica is associated with.
- Map<String>
- (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.
- 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"}
- ipAddress String
- The IP address the read replica is configured to listen on.
- isDelete BooleanProtected 
- (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
- 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
- The shape currently in use 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.
- 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      
- CertificateGeneration stringType 
- Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
- CertificateId string
- The OCID of the certificate to use.
- CertificateGeneration stringType 
- Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
- CertificateId string
- The OCID of the certificate to use.
- certificateGeneration StringType 
- Select whether to use MySQL Database Service-managed certificate (SYSTEM) or your own certificate (BYOC).
- certificateId String
- The OCID of the certificate to use.
- certificateGeneration stringType 
- 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_ strtype 
- 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.
- certificateGeneration StringType 
- 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 ociTerraform Provider.