Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getDataGuardAssociation

This data source provides details about a specific Data Guard Association resource in Oracle Cloud Infrastructure Database service.

Gets the specified Data Guard association’s configuration information.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDataGuardAssociation = Output.Create(Oci.Database.GetDataGuardAssociation.InvokeAsync(new Oci.Database.GetDataGuardAssociationArgs
        {
            DataGuardAssociationId = oci_database_data_guard_association.Test_data_guard_association.Id,
            DatabaseId = oci_database_database.Test_database.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Database.GetDataGuardAssociation(ctx, &database.GetDataGuardAssociationArgs{
			DataGuardAssociationId: oci_database_data_guard_association.Test_data_guard_association.Id,
			DatabaseId:             oci_database_database.Test_database.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_data_guard_association = oci.Database.get_data_guard_association(data_guard_association_id=oci_database_data_guard_association["test_data_guard_association"]["id"],
    database_id=oci_database_database["test_database"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDataGuardAssociation = oci.Database.getDataGuardAssociation({
    dataGuardAssociationId: oci_database_data_guard_association.test_data_guard_association.id,
    databaseId: oci_database_database.test_database.id,
});

Coming soon!

Using getDataGuardAssociation

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDataGuardAssociation(args: GetDataGuardAssociationArgs, opts?: InvokeOptions): Promise<GetDataGuardAssociationResult>
function getDataGuardAssociationOutput(args: GetDataGuardAssociationOutputArgs, opts?: InvokeOptions): Output<GetDataGuardAssociationResult>
def get_data_guard_association(data_guard_association_id: Optional[str] = None,
                               database_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDataGuardAssociationResult
def get_data_guard_association_output(data_guard_association_id: Optional[pulumi.Input[str]] = None,
                               database_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDataGuardAssociationResult]
func GetDataGuardAssociation(ctx *Context, args *GetDataGuardAssociationArgs, opts ...InvokeOption) (*GetDataGuardAssociationResult, error)
func GetDataGuardAssociationOutput(ctx *Context, args *GetDataGuardAssociationOutputArgs, opts ...InvokeOption) GetDataGuardAssociationResultOutput

> Note: This function is named GetDataGuardAssociation in the Go SDK.

public static class GetDataGuardAssociation 
{
    public static Task<GetDataGuardAssociationResult> InvokeAsync(GetDataGuardAssociationArgs args, InvokeOptions? opts = null)
    public static Output<GetDataGuardAssociationResult> Invoke(GetDataGuardAssociationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataGuardAssociationResult> getDataGuardAssociation(GetDataGuardAssociationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Database/getDataGuardAssociation:getDataGuardAssociation
  Arguments:
    # Arguments dictionary

The following arguments are supported:

DataGuardAssociationId string

The Data Guard association's OCID.

DatabaseId string

The database OCID.

DataGuardAssociationId string

The Data Guard association's OCID.

DatabaseId string

The database OCID.

dataGuardAssociationId String

The Data Guard association's OCID.

databaseId String

The database OCID.

dataGuardAssociationId string

The Data Guard association's OCID.

databaseId string

The database OCID.

data_guard_association_id str

The Data Guard association's OCID.

database_id str

The database OCID.

dataGuardAssociationId String

The Data Guard association's OCID.

databaseId String

The database OCID.

getDataGuardAssociation Result

The following output properties are available:

ApplyLag string

The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database. Example: 9 seconds

ApplyRate string

The rate at which redo logs are synced between the associated databases. Example: 180 Mb per second

AvailabilityDomain string
BackupNetworkNsgIds List<string>
CreateAsync bool
CreationType string
DataGuardAssociationId string
DatabaseAdminPassword string
DatabaseId string

The OCID of the reporting database.

DatabaseSoftwareImageId string
DeleteStandbyDbHomeOnDelete string
DisplayName string
Hostname string
Id string

The OCID of the Data Guard association.

IsActiveDataGuardEnabled bool

True if active Data Guard is enabled.

LifecycleDetails string

Additional information about the current lifecycleState, if available.

NsgIds List<string>
PeerDataGuardAssociationId string

The OCID of the peer database's Data Guard association.

PeerDatabaseId string

The OCID of the associated peer database.

PeerDbHomeId string

The OCID of the Database Home containing the associated peer database.

PeerDbSystemId string

The OCID of the DB system containing the associated peer database.

PeerDbUniqueName string
PeerRole string

The role of the peer database in this Data Guard association.

PeerSidPrefix string
PeerVmClusterId string
ProtectionMode string

The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

Role string

The role of the reporting database in this Data Guard association.

Shape string
State string

The current state of the Data Guard association.

SubnetId string
TimeCreated string

The date and time the Data Guard association was created.

TransportType string

The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.

ApplyLag string

The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database. Example: 9 seconds

ApplyRate string

The rate at which redo logs are synced between the associated databases. Example: 180 Mb per second

AvailabilityDomain string
BackupNetworkNsgIds []string
CreateAsync bool
CreationType string
DataGuardAssociationId string
DatabaseAdminPassword string
DatabaseId string

The OCID of the reporting database.

DatabaseSoftwareImageId string
DeleteStandbyDbHomeOnDelete string
DisplayName string
Hostname string
Id string

The OCID of the Data Guard association.

IsActiveDataGuardEnabled bool

True if active Data Guard is enabled.

LifecycleDetails string

Additional information about the current lifecycleState, if available.

NsgIds []string
PeerDataGuardAssociationId string

The OCID of the peer database's Data Guard association.

PeerDatabaseId string

The OCID of the associated peer database.

PeerDbHomeId string

The OCID of the Database Home containing the associated peer database.

PeerDbSystemId string

The OCID of the DB system containing the associated peer database.

PeerDbUniqueName string
PeerRole string

The role of the peer database in this Data Guard association.

PeerSidPrefix string
PeerVmClusterId string
ProtectionMode string

The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

Role string

The role of the reporting database in this Data Guard association.

Shape string
State string

The current state of the Data Guard association.

SubnetId string
TimeCreated string

The date and time the Data Guard association was created.

TransportType string

The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.

applyLag String

The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database. Example: 9 seconds

applyRate String

The rate at which redo logs are synced between the associated databases. Example: 180 Mb per second

availabilityDomain String
backupNetworkNsgIds List<String>
createAsync Boolean
creationType String
dataGuardAssociationId String
databaseAdminPassword String
databaseId String

The OCID of the reporting database.

databaseSoftwareImageId String
deleteStandbyDbHomeOnDelete String
displayName String
hostname String
id String

The OCID of the Data Guard association.

isActiveDataGuardEnabled Boolean

True if active Data Guard is enabled.

lifecycleDetails String

Additional information about the current lifecycleState, if available.

nsgIds List<String>
peerDataGuardAssociationId String

The OCID of the peer database's Data Guard association.

peerDatabaseId String

The OCID of the associated peer database.

peerDbHomeId String

The OCID of the Database Home containing the associated peer database.

peerDbSystemId String

The OCID of the DB system containing the associated peer database.

peerDbUniqueName String
peerRole String

The role of the peer database in this Data Guard association.

peerSidPrefix String
peerVmClusterId String
protectionMode String

The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

role String

The role of the reporting database in this Data Guard association.

shape String
state String

The current state of the Data Guard association.

subnetId String
timeCreated String

The date and time the Data Guard association was created.

transportType String

The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.

applyLag string

The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database. Example: 9 seconds

applyRate string

The rate at which redo logs are synced between the associated databases. Example: 180 Mb per second

availabilityDomain string
backupNetworkNsgIds string[]
createAsync boolean
creationType string
dataGuardAssociationId string
databaseAdminPassword string
databaseId string

The OCID of the reporting database.

databaseSoftwareImageId string
deleteStandbyDbHomeOnDelete string
displayName string
hostname string
id string

The OCID of the Data Guard association.

isActiveDataGuardEnabled boolean

True if active Data Guard is enabled.

lifecycleDetails string

Additional information about the current lifecycleState, if available.

nsgIds string[]
peerDataGuardAssociationId string

The OCID of the peer database's Data Guard association.

peerDatabaseId string

The OCID of the associated peer database.

peerDbHomeId string

The OCID of the Database Home containing the associated peer database.

peerDbSystemId string

The OCID of the DB system containing the associated peer database.

peerDbUniqueName string
peerRole string

The role of the peer database in this Data Guard association.

peerSidPrefix string
peerVmClusterId string
protectionMode string

The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

role string

The role of the reporting database in this Data Guard association.

shape string
state string

The current state of the Data Guard association.

subnetId string
timeCreated string

The date and time the Data Guard association was created.

transportType string

The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.

apply_lag str

The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database. Example: 9 seconds

apply_rate str

The rate at which redo logs are synced between the associated databases. Example: 180 Mb per second

availability_domain str
backup_network_nsg_ids Sequence[str]
create_async bool
creation_type str
data_guard_association_id str
database_admin_password str
database_id str

The OCID of the reporting database.

database_software_image_id str
delete_standby_db_home_on_delete str
display_name str
hostname str
id str

The OCID of the Data Guard association.

is_active_data_guard_enabled bool

True if active Data Guard is enabled.

lifecycle_details str

Additional information about the current lifecycleState, if available.

nsg_ids Sequence[str]
peer_data_guard_association_id str

The OCID of the peer database's Data Guard association.

peer_database_id str

The OCID of the associated peer database.

peer_db_home_id str

The OCID of the Database Home containing the associated peer database.

peer_db_system_id str

The OCID of the DB system containing the associated peer database.

peer_db_unique_name str
peer_role str

The role of the peer database in this Data Guard association.

peer_sid_prefix str
peer_vm_cluster_id str
protection_mode str

The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

role str

The role of the reporting database in this Data Guard association.

shape str
state str

The current state of the Data Guard association.

subnet_id str
time_created str

The date and time the Data Guard association was created.

transport_type str

The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.

applyLag String

The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database. Example: 9 seconds

applyRate String

The rate at which redo logs are synced between the associated databases. Example: 180 Mb per second

availabilityDomain String
backupNetworkNsgIds List<String>
createAsync Boolean
creationType String
dataGuardAssociationId String
databaseAdminPassword String
databaseId String

The OCID of the reporting database.

databaseSoftwareImageId String
deleteStandbyDbHomeOnDelete String
displayName String
hostname String
id String

The OCID of the Data Guard association.

isActiveDataGuardEnabled Boolean

True if active Data Guard is enabled.

lifecycleDetails String

Additional information about the current lifecycleState, if available.

nsgIds List<String>
peerDataGuardAssociationId String

The OCID of the peer database's Data Guard association.

peerDatabaseId String

The OCID of the associated peer database.

peerDbHomeId String

The OCID of the Database Home containing the associated peer database.

peerDbSystemId String

The OCID of the DB system containing the associated peer database.

peerDbUniqueName String
peerRole String

The role of the peer database in this Data Guard association.

peerSidPrefix String
peerVmClusterId String
protectionMode String

The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

role String

The role of the reporting database in this Data Guard association.

shape String
state String

The current state of the Data Guard association.

subnetId String
timeCreated String

The date and time the Data Guard association was created.

transportType String

The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.