Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getAutonomousDatabaseDataguardAssociations
Explore with Pulumi AI
This data source provides the list of Autonomous Database Dataguard Associations in Oracle Cloud Infrastructure Database service.
Gets a list of the Autonomous Data Guard-enabled databases associated with the specified Autonomous Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDatabaseDataguardAssociations = oci.Database.getAutonomousDatabaseDataguardAssociations({
    autonomousDatabaseId: testAutonomousDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_autonomous_database_dataguard_associations = oci.Database.get_autonomous_database_dataguard_associations(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.GetAutonomousDatabaseDataguardAssociations(ctx, &database.GetAutonomousDatabaseDataguardAssociationsArgs{
			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 testAutonomousDatabaseDataguardAssociations = Oci.Database.GetAutonomousDatabaseDataguardAssociations.Invoke(new()
    {
        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.GetAutonomousDatabaseDataguardAssociationsArgs;
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 testAutonomousDatabaseDataguardAssociations = DatabaseFunctions.getAutonomousDatabaseDataguardAssociations(GetAutonomousDatabaseDataguardAssociationsArgs.builder()
            .autonomousDatabaseId(testAutonomousDatabase.id())
            .build());
    }
}
variables:
  testAutonomousDatabaseDataguardAssociations:
    fn::invoke:
      function: oci:Database:getAutonomousDatabaseDataguardAssociations
      arguments:
        autonomousDatabaseId: ${testAutonomousDatabase.id}
Using getAutonomousDatabaseDataguardAssociations
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 getAutonomousDatabaseDataguardAssociations(args: GetAutonomousDatabaseDataguardAssociationsArgs, opts?: InvokeOptions): Promise<GetAutonomousDatabaseDataguardAssociationsResult>
function getAutonomousDatabaseDataguardAssociationsOutput(args: GetAutonomousDatabaseDataguardAssociationsOutputArgs, opts?: InvokeOptions): Output<GetAutonomousDatabaseDataguardAssociationsResult>def get_autonomous_database_dataguard_associations(autonomous_database_id: Optional[str] = None,
                                                   filters: Optional[Sequence[GetAutonomousDatabaseDataguardAssociationsFilter]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetAutonomousDatabaseDataguardAssociationsResult
def get_autonomous_database_dataguard_associations_output(autonomous_database_id: Optional[pulumi.Input[str]] = None,
                                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAutonomousDatabaseDataguardAssociationsFilterArgs]]]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousDatabaseDataguardAssociationsResult]func GetAutonomousDatabaseDataguardAssociations(ctx *Context, args *GetAutonomousDatabaseDataguardAssociationsArgs, opts ...InvokeOption) (*GetAutonomousDatabaseDataguardAssociationsResult, error)
func GetAutonomousDatabaseDataguardAssociationsOutput(ctx *Context, args *GetAutonomousDatabaseDataguardAssociationsOutputArgs, opts ...InvokeOption) GetAutonomousDatabaseDataguardAssociationsResultOutput> Note: This function is named GetAutonomousDatabaseDataguardAssociations in the Go SDK.
public static class GetAutonomousDatabaseDataguardAssociations 
{
    public static Task<GetAutonomousDatabaseDataguardAssociationsResult> InvokeAsync(GetAutonomousDatabaseDataguardAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousDatabaseDataguardAssociationsResult> Invoke(GetAutonomousDatabaseDataguardAssociationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutonomousDatabaseDataguardAssociationsResult> getAutonomousDatabaseDataguardAssociations(GetAutonomousDatabaseDataguardAssociationsArgs args, InvokeOptions options)
public static Output<GetAutonomousDatabaseDataguardAssociationsResult> getAutonomousDatabaseDataguardAssociations(GetAutonomousDatabaseDataguardAssociationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getAutonomousDatabaseDataguardAssociations:getAutonomousDatabaseDataguardAssociations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AutonomousDatabase stringId 
- The database OCID.
- Filters
List<GetAutonomous Database Dataguard Associations Filter> 
- AutonomousDatabase stringId 
- The database OCID.
- Filters
[]GetAutonomous Database Dataguard Associations Filter 
- autonomousDatabase StringId 
- The database OCID.
- filters
List<GetAutonomous Dataguard Associations Filter> 
- autonomousDatabase stringId 
- The database OCID.
- filters
GetAutonomous Database Dataguard Associations Filter[] 
- autonomousDatabase StringId 
- The database OCID.
- filters List<Property Map>
getAutonomousDatabaseDataguardAssociations Result
The following output properties are available:
- AutonomousDatabase List<GetDataguard Associations Autonomous Database Dataguard Associations Autonomous Database Dataguard Association> 
- The list of autonomous_database_dataguard_associations.
- AutonomousDatabase 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.
- Filters
List<GetAutonomous Database Dataguard Associations Filter> 
- AutonomousDatabase []GetDataguard Associations Autonomous Database Dataguard Associations Autonomous Database Dataguard Association 
- The list of autonomous_database_dataguard_associations.
- AutonomousDatabase 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.
- Filters
[]GetAutonomous Database Dataguard Associations Filter 
- autonomousDatabase List<GetDataguard Associations Autonomous Dataguard Associations Autonomous Dataguard Association> 
- The list of autonomous_database_dataguard_associations.
- autonomousDatabase 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.
- filters
List<GetAutonomous Dataguard Associations Filter> 
- autonomousDatabase GetDataguard Associations Autonomous Database Dataguard Associations Autonomous Database Dataguard Association[] 
- The list of autonomous_database_dataguard_associations.
- autonomousDatabase 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.
- filters
GetAutonomous Database Dataguard Associations Filter[] 
- autonomous_database_ Sequence[Getdataguard_ associations Autonomous Database Dataguard Associations Autonomous Database Dataguard Association] 
- The list of autonomous_database_dataguard_associations.
- 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.
- filters
Sequence[GetAutonomous Database Dataguard Associations Filter] 
- autonomousDatabase List<Property Map>Dataguard Associations 
- The list of autonomous_database_dataguard_associations.
- autonomousDatabase 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.
- filters List<Property Map>
Supporting Types
GetAutonomousDatabaseDataguardAssociationsAutonomousDatabaseDataguardAssociation        
- 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
- AutonomousDatabase stringId 
- The database OCID.
- Id string
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- IsAutomatic boolFailover Enabled 
- Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example : is_automatic_failover_enabled = true.
- LifecycleDetails string
- Additional information about the current lifecycleState, if available.
- PeerAutonomous stringDatabase Id 
- The OCID of the peer Autonomous Database.
- PeerAutonomous stringDatabase Life Cycle State 
- The current state of the Autonomous Database.
- PeerRole string
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- ProtectionMode string
- The protection mode of this Autonomous Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- Role string
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- State string
- The current state of Autonomous Data Guard.
- TimeCreated string
- The date and time the Data Guard association was created.
- TimeLast stringRole Changed 
- The date and time when the last role change action happened.
- TimeLast stringSynced 
- The date and time of the last update to the apply lag, apply rate, and transport lag values.
- TransportLag string
- The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: 7 seconds
- 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
- AutonomousDatabase stringId 
- The database OCID.
- Id string
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- IsAutomatic boolFailover Enabled 
- Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example : is_automatic_failover_enabled = true.
- LifecycleDetails string
- Additional information about the current lifecycleState, if available.
- PeerAutonomous stringDatabase Id 
- The OCID of the peer Autonomous Database.
- PeerAutonomous stringDatabase Life Cycle State 
- The current state of the Autonomous Database.
- PeerRole string
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- ProtectionMode string
- The protection mode of this Autonomous Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- Role string
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- State string
- The current state of Autonomous Data Guard.
- TimeCreated string
- The date and time the Data Guard association was created.
- TimeLast stringRole Changed 
- The date and time when the last role change action happened.
- TimeLast stringSynced 
- The date and time of the last update to the apply lag, apply rate, and transport lag values.
- TransportLag string
- The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: 7 seconds
- 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
- autonomousDatabase StringId 
- The database OCID.
- id String
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- isAutomatic BooleanFailover Enabled 
- Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example : is_automatic_failover_enabled = true.
- lifecycleDetails String
- Additional information about the current lifecycleState, if available.
- peerAutonomous StringDatabase Id 
- The OCID of the peer Autonomous Database.
- peerAutonomous StringDatabase Life Cycle State 
- The current state of the Autonomous Database.
- peerRole String
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- protectionMode String
- The protection mode of this Autonomous Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- role String
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- state String
- The current state of Autonomous Data Guard.
- timeCreated String
- The date and time the Data Guard association was created.
- timeLast StringRole Changed 
- The date and time when the last role change action happened.
- timeLast StringSynced 
- The date and time of the last update to the apply lag, apply rate, and transport lag values.
- transportLag String
- The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: 7 seconds
- 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
- autonomousDatabase stringId 
- The database OCID.
- id string
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- isAutomatic booleanFailover Enabled 
- Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example : is_automatic_failover_enabled = true.
- lifecycleDetails string
- Additional information about the current lifecycleState, if available.
- peerAutonomous stringDatabase Id 
- The OCID of the peer Autonomous Database.
- peerAutonomous stringDatabase Life Cycle State 
- The current state of the Autonomous Database.
- peerRole string
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- protectionMode string
- The protection mode of this Autonomous Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- role string
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- state string
- The current state of Autonomous Data Guard.
- timeCreated string
- The date and time the Data Guard association was created.
- timeLast stringRole Changed 
- The date and time when the last role change action happened.
- timeLast stringSynced 
- The date and time of the last update to the apply lag, apply rate, and transport lag values.
- transportLag string
- The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: 7 seconds
- 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_ strid 
- The database OCID.
- id str
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- is_automatic_ boolfailover_ enabled 
- Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example : is_automatic_failover_enabled = true.
- 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 Database.
- peer_role str
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- protection_mode str
- The protection mode of this Autonomous Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- role str
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- state str
- The current state of Autonomous Data Guard.
- 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.
- time_last_ strsynced 
- The date and time of the last update to the apply lag, apply rate, and transport lag values.
- transport_lag str
- The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: 7 seconds
- 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
- autonomousDatabase StringId 
- The database OCID.
- id String
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- isAutomatic BooleanFailover Enabled 
- Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example : is_automatic_failover_enabled = true.
- lifecycleDetails String
- Additional information about the current lifecycleState, if available.
- peerAutonomous StringDatabase Id 
- The OCID of the peer Autonomous Database.
- peerAutonomous StringDatabase Life Cycle State 
- The current state of the Autonomous Database.
- peerRole String
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- protectionMode String
- The protection mode of this Autonomous Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.
- role String
- The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- state String
- The current state of Autonomous Data Guard.
- timeCreated String
- The date and time the Data Guard association was created.
- timeLast StringRole Changed 
- The date and time when the last role change action happened.
- timeLast StringSynced 
- The date and time of the last update to the apply lag, apply rate, and transport lag values.
- transportLag String
- The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database. Example: 7 seconds
GetAutonomousDatabaseDataguardAssociationsFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.