import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Replica resource in Oracle Cloud Infrastructure MySQL Database service. * * Gets the full details of the specified read replica. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testReplica = oci.mysql.getReplica({ * replicaId: testReplicaOciMysqlReplica.id, * }); * ``` */ export declare function getReplica(args: GetReplicaArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getReplica. */ export interface GetReplicaArgs { /** * The Replica [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ replicaId: string; } /** * A collection of values returned by getReplica. */ export interface GetReplicaResult { /** * The name of the Availability Domain the read replica is located in. */ readonly availabilityDomain: string; /** * The OCID of the compartment that contains the read replica. */ readonly compartmentId: string; /** * The OCID of the Configuration to be used by the read replica. */ readonly configurationId: string; /** * The OCID of the DB System the read replica is associated with. */ readonly dbSystemId: string; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: { [key: string]: string; }; /** * User provided description of the read replica. */ readonly description: string; /** * The user-friendly name for the read replica. It does not have to be unique. */ readonly displayName: string; /** * Encrypt data details. */ readonly encryptDatas: outputs.Mysql.GetReplicaEncryptData[]; /** * The name of the Fault Domain the read replica is located in. */ readonly faultDomain: string; /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: { [key: string]: string; }; /** * The OCID of the read replica. */ readonly id: string; /** * The IP address the read replica is configured to listen on. */ readonly ipAddress: string; /** * The IPv6 address the read replica is configured to listen on. */ readonly ipv6address: string; /** * 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. */ readonly isDeleteProtected: boolean; /** * A message describing the state of the read replica. */ readonly lifecycleDetails: string; /** * The MySQL version to be used by the read replica. */ readonly mysqlVersion: string; /** * Network Security Group OCIDs used for the VNIC attachment. */ readonly nsgIds: string[]; /** * The port the read replica is configured to listen on. */ readonly port: number; /** * The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port. */ readonly portX: number; readonly replicaId: string; /** * 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. */ readonly replicaOverrides: outputs.Mysql.GetReplicaReplicaOverride[]; /** * Secure connection configuration details. */ readonly secureConnections: outputs.Mysql.GetReplicaSecureConnection[]; /** * Security Attributes for this resource. Each key is predefined and scoped to a namespace. For more information, see [ZPR Artifacts](https://docs.oracle.com/en-us/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm). Example: `{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}` */ readonly securityAttributes: { [key: string]: 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](https://docs.cloud.oracle.com/iaas/api/#/en/mysql/20190415/ShapeSummary/ListShapes) operation. */ readonly shapeName: string; /** * The state of the read replica. */ readonly state: string; /** * Telemetry configuration details of a DB System or a read replica. */ readonly telemetryConfigurations: outputs.Mysql.GetReplicaTelemetryConfiguration[]; /** * The date and time the read replica was created, as described by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). */ readonly timeCreated: string; /** * The time the read replica was last updated, as described by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). */ readonly timeUpdated: string; } /** * This data source provides details about a specific Replica resource in Oracle Cloud Infrastructure MySQL Database service. * * Gets the full details of the specified read replica. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testReplica = oci.mysql.getReplica({ * replicaId: testReplicaOciMysqlReplica.id, * }); * ``` */ export declare function getReplicaOutput(args: GetReplicaOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getReplica. */ export interface GetReplicaOutputArgs { /** * The Replica [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ replicaId: pulumi.Input; } //# sourceMappingURL=getReplica.d.ts.map