Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Database.getAutonomousDatabaseDataguardAssociation
Explore with Pulumi AI
This data source provides details about a specific Autonomous Database Dataguard Association resource in Oracle Cloud Infrastructure Database service.
Gets an Autonomous Database dataguard assocation for the specified Autonomous Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDatabaseDataguardAssociation = oci.Database.getAutonomousDatabaseDataguardAssociation({
    autonomousDatabaseDataguardAssociationId: testAutonomousDatabaseDataguardAssociationOciDatabaseAutonomousDatabaseDataguardAssociation.id,
    autonomousDatabaseId: testAutonomousDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_autonomous_database_dataguard_association = oci.Database.get_autonomous_database_dataguard_association(autonomous_database_dataguard_association_id=test_autonomous_database_dataguard_association_oci_database_autonomous_database_dataguard_association["id"],
    autonomous_database_id=test_autonomous_database["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetAutonomousDatabaseDataguardAssociation(ctx, &database.GetAutonomousDatabaseDataguardAssociationArgs{
			AutonomousDatabaseDataguardAssociationId: testAutonomousDatabaseDataguardAssociationOciDatabaseAutonomousDatabaseDataguardAssociation.Id,
			AutonomousDatabaseId:                     testAutonomousDatabase.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testAutonomousDatabaseDataguardAssociation = Oci.Database.GetAutonomousDatabaseDataguardAssociation.Invoke(new()
    {
        AutonomousDatabaseDataguardAssociationId = testAutonomousDatabaseDataguardAssociationOciDatabaseAutonomousDatabaseDataguardAssociation.Id,
        AutonomousDatabaseId = testAutonomousDatabase.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetAutonomousDatabaseDataguardAssociationArgs;
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) {
        final var testAutonomousDatabaseDataguardAssociation = DatabaseFunctions.getAutonomousDatabaseDataguardAssociation(GetAutonomousDatabaseDataguardAssociationArgs.builder()
            .autonomousDatabaseDataguardAssociationId(testAutonomousDatabaseDataguardAssociationOciDatabaseAutonomousDatabaseDataguardAssociation.id())
            .autonomousDatabaseId(testAutonomousDatabase.id())
            .build());
    }
}
variables:
  testAutonomousDatabaseDataguardAssociation:
    fn::invoke:
      function: oci:Database:getAutonomousDatabaseDataguardAssociation
      arguments:
        autonomousDatabaseDataguardAssociationId: ${testAutonomousDatabaseDataguardAssociationOciDatabaseAutonomousDatabaseDataguardAssociation.id}
        autonomousDatabaseId: ${testAutonomousDatabase.id}
Using getAutonomousDatabaseDataguardAssociation
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 getAutonomousDatabaseDataguardAssociation(args: GetAutonomousDatabaseDataguardAssociationArgs, opts?: InvokeOptions): Promise<GetAutonomousDatabaseDataguardAssociationResult>
function getAutonomousDatabaseDataguardAssociationOutput(args: GetAutonomousDatabaseDataguardAssociationOutputArgs, opts?: InvokeOptions): Output<GetAutonomousDatabaseDataguardAssociationResult>def get_autonomous_database_dataguard_association(autonomous_database_dataguard_association_id: Optional[str] = None,
                                                  autonomous_database_id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetAutonomousDatabaseDataguardAssociationResult
def get_autonomous_database_dataguard_association_output(autonomous_database_dataguard_association_id: Optional[pulumi.Input[str]] = None,
                                                  autonomous_database_id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousDatabaseDataguardAssociationResult]func GetAutonomousDatabaseDataguardAssociation(ctx *Context, args *GetAutonomousDatabaseDataguardAssociationArgs, opts ...InvokeOption) (*GetAutonomousDatabaseDataguardAssociationResult, error)
func GetAutonomousDatabaseDataguardAssociationOutput(ctx *Context, args *GetAutonomousDatabaseDataguardAssociationOutputArgs, opts ...InvokeOption) GetAutonomousDatabaseDataguardAssociationResultOutput> Note: This function is named GetAutonomousDatabaseDataguardAssociation in the Go SDK.
public static class GetAutonomousDatabaseDataguardAssociation 
{
    public static Task<GetAutonomousDatabaseDataguardAssociationResult> InvokeAsync(GetAutonomousDatabaseDataguardAssociationArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousDatabaseDataguardAssociationResult> Invoke(GetAutonomousDatabaseDataguardAssociationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutonomousDatabaseDataguardAssociationResult> getAutonomousDatabaseDataguardAssociation(GetAutonomousDatabaseDataguardAssociationArgs args, InvokeOptions options)
public static Output<GetAutonomousDatabaseDataguardAssociationResult> getAutonomousDatabaseDataguardAssociation(GetAutonomousDatabaseDataguardAssociationArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getAutonomousDatabaseDataguardAssociation:getAutonomousDatabaseDataguardAssociation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Autonomous
Database stringDataguard Association Id  - The Autonomous Database Dataguard Association OCID.
 - Autonomous
Database stringId  - The database OCID.
 
- Autonomous
Database stringDataguard Association Id  - The Autonomous Database Dataguard Association OCID.
 - Autonomous
Database stringId  - The database OCID.
 
- autonomous
Database StringDataguard Association Id  - The Autonomous Database Dataguard Association OCID.
 - autonomous
Database StringId  - The database OCID.
 
- autonomous
Database stringDataguard Association Id  - The Autonomous Database Dataguard Association OCID.
 - autonomous
Database stringId  - The database OCID.
 
- autonomous_
database_ strdataguard_ association_ id  - The Autonomous Database Dataguard Association OCID.
 - autonomous_
database_ strid  - The database OCID.
 
- autonomous
Database StringDataguard Association Id  - The Autonomous Database Dataguard Association OCID.
 - autonomous
Database StringId  - The database OCID.
 
getAutonomousDatabaseDataguardAssociation Result
The following output properties are available:
- Apply
Lag 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 - Apply
Rate string - The rate at which redo logs are synced between the associated databases. Example: 
180 Mb per second - Autonomous
Database stringDataguard Association Id  - Autonomous
Database stringId  - The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Lifecycle
Details string - Additional information about the current lifecycleState, if available.
 - Peer
Autonomous stringDatabase Id  - The OCID of the peer Autonomous Database.
 - Peer
Autonomous stringDatabase Life Cycle State  - The current state of the Autonomous Dataguard.
 - Peer
Role string - The role of the Autonomous Dataguard enabled Autonomous Container Database.
 - Protection
Mode 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 Autonomous Dataguard enabled Autonomous Container Database.
 - State string
 - The current state of the Autonomous Dataguard.
 - Time
Created string - The date and time the Data Guard association was created.
 - Time
Last stringRole Changed  - The date and time when the last role change action happened.
 
- Apply
Lag 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 - Apply
Rate string - The rate at which redo logs are synced between the associated databases. Example: 
180 Mb per second - Autonomous
Database stringDataguard Association Id  - Autonomous
Database stringId  - The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Lifecycle
Details string - Additional information about the current lifecycleState, if available.
 - Peer
Autonomous stringDatabase Id  - The OCID of the peer Autonomous Database.
 - Peer
Autonomous stringDatabase Life Cycle State  - The current state of the Autonomous Dataguard.
 - Peer
Role string - The role of the Autonomous Dataguard enabled Autonomous Container Database.
 - Protection
Mode 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 Autonomous Dataguard enabled Autonomous Container Database.
 - State string
 - The current state of the Autonomous Dataguard.
 - Time
Created string - The date and time the Data Guard association was created.
 - Time
Last stringRole Changed  - The date and time when the last role change action happened.
 
- apply
Lag 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 - apply
Rate String - The rate at which redo logs are synced between the associated databases. Example: 
180 Mb per second - autonomous
Database StringDataguard Association Id  - autonomous
Database StringId  - The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - lifecycle
Details String - Additional information about the current lifecycleState, if available.
 - peer
Autonomous StringDatabase Id  - The OCID of the peer Autonomous Database.
 - peer
Autonomous StringDatabase Life Cycle State  - The current state of the Autonomous Dataguard.
 - peer
Role String - The role of the Autonomous Dataguard enabled Autonomous Container Database.
 - protection
Mode 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 Autonomous Dataguard enabled Autonomous Container Database.
 - state String
 - The current state of the Autonomous Dataguard.
 - time
Created String - The date and time the Data Guard association was created.
 - time
Last StringRole Changed  - The date and time when the last role change action happened.
 
- apply
Lag 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 - apply
Rate string - The rate at which redo logs are synced between the associated databases. Example: 
180 Mb per second - autonomous
Database stringDataguard Association Id  - autonomous
Database stringId  - The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - lifecycle
Details string - Additional information about the current lifecycleState, if available.
 - peer
Autonomous stringDatabase Id  - The OCID of the peer Autonomous Database.
 - peer
Autonomous stringDatabase Life Cycle State  - The current state of the Autonomous Dataguard.
 - peer
Role string - The role of the Autonomous Dataguard enabled Autonomous Container Database.
 - protection
Mode 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 Autonomous Dataguard enabled Autonomous Container Database.
 - state string
 - The current state of the Autonomous Dataguard.
 - time
Created string - The date and time the Data Guard association was created.
 - time
Last stringRole Changed  - The date and time when the last role change action happened.
 
- 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 - autonomous_
database_ strdataguard_ association_ id  - autonomous_
database_ strid  - The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - lifecycle_
details str - Additional information about the current lifecycleState, if available.
 - peer_
autonomous_ strdatabase_ id  - The OCID of the peer Autonomous Database.
 - peer_
autonomous_ strdatabase_ life_ cycle_ state  - The current state of the Autonomous Dataguard.
 - peer_
role str - The role of the Autonomous Dataguard enabled Autonomous Container Database.
 - 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 Autonomous Dataguard enabled Autonomous Container Database.
 - state str
 - The current state of the Autonomous Dataguard.
 - time_
created str - The date and time the Data Guard association was created.
 - time_
last_ strrole_ changed  - The date and time when the last role change action happened.
 
- apply
Lag 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 - apply
Rate String - The rate at which redo logs are synced between the associated databases. Example: 
180 Mb per second - autonomous
Database StringDataguard Association Id  - autonomous
Database StringId  - The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - lifecycle
Details String - Additional information about the current lifecycleState, if available.
 - peer
Autonomous StringDatabase Id  - The OCID of the peer Autonomous Database.
 - peer
Autonomous StringDatabase Life Cycle State  - The current state of the Autonomous Dataguard.
 - peer
Role String - The role of the Autonomous Dataguard enabled Autonomous Container Database.
 - protection
Mode 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 Autonomous Dataguard enabled Autonomous Container Database.
 - state String
 - The current state of the Autonomous Dataguard.
 - time
Created String - The date and time the Data Guard association was created.
 - time
Last StringRole Changed  - The date and time when the last role change action happened.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.