1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousDatabaseDataguardAssociations
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.Database.getAutonomousDatabaseDataguardAssociations

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    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[_database.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[_database.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getAutonomousDatabaseDataguardAssociations:getAutonomousDatabaseDataguardAssociations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getAutonomousDatabaseDataguardAssociations Result

    The following output properties are available:

    AutonomousDatabaseDataguardAssociations List<GetAutonomousDatabaseDataguardAssociationsAutonomousDatabaseDataguardAssociation>
    The list of autonomous_database_dataguard_associations.
    AutonomousDatabaseId string
    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<GetAutonomousDatabaseDataguardAssociationsFilter>
    AutonomousDatabaseDataguardAssociations []GetAutonomousDatabaseDataguardAssociationsAutonomousDatabaseDataguardAssociation
    The list of autonomous_database_dataguard_associations.
    AutonomousDatabaseId string
    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 []GetAutonomousDatabaseDataguardAssociationsFilter
    autonomousDatabaseDataguardAssociations List<GetAutonomousDataguardAssociationsAutonomousDataguardAssociation>
    The list of autonomous_database_dataguard_associations.
    autonomousDatabaseId String
    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<GetAutonomousDataguardAssociationsFilter>
    autonomousDatabaseDataguardAssociations GetAutonomousDatabaseDataguardAssociationsAutonomousDatabaseDataguardAssociation[]
    The list of autonomous_database_dataguard_associations.
    autonomousDatabaseId string
    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 GetAutonomousDatabaseDataguardAssociationsFilter[]
    autonomous_database_dataguard_associations Sequence[database.GetAutonomousDatabaseDataguardAssociationsAutonomousDatabaseDataguardAssociation]
    The list of autonomous_database_dataguard_associations.
    autonomous_database_id str
    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[database.GetAutonomousDatabaseDataguardAssociationsFilter]
    autonomousDatabaseDataguardAssociations List<Property Map>
    The list of autonomous_database_dataguard_associations.
    autonomousDatabaseId String
    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
    AutonomousDatabaseId string
    The database OCID.
    Id string
    The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
    IsAutomaticFailoverEnabled bool
    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.
    PeerAutonomousDatabaseId string
    The OCID of the peer Autonomous Database.
    PeerAutonomousDatabaseLifeCycleState string
    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.
    TimeLastRoleChanged string
    The date and time when the last role change action happened.
    TimeLastSynced string
    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
    AutonomousDatabaseId string
    The database OCID.
    Id string
    The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
    IsAutomaticFailoverEnabled bool
    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.
    PeerAutonomousDatabaseId string
    The OCID of the peer Autonomous Database.
    PeerAutonomousDatabaseLifeCycleState string
    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.
    TimeLastRoleChanged string
    The date and time when the last role change action happened.
    TimeLastSynced string
    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
    autonomousDatabaseId String
    The database OCID.
    id String
    The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
    isAutomaticFailoverEnabled Boolean
    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.
    peerAutonomousDatabaseId String
    The OCID of the peer Autonomous Database.
    peerAutonomousDatabaseLifeCycleState String
    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.
    timeLastRoleChanged String
    The date and time when the last role change action happened.
    timeLastSynced String
    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
    autonomousDatabaseId string
    The database OCID.
    id string
    The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
    isAutomaticFailoverEnabled boolean
    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.
    peerAutonomousDatabaseId string
    The OCID of the peer Autonomous Database.
    peerAutonomousDatabaseLifeCycleState string
    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.
    timeLastRoleChanged string
    The date and time when the last role change action happened.
    timeLastSynced string
    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_id str
    The database OCID.
    id str
    The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
    is_automatic_failover_enabled bool
    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_database_id str
    The OCID of the peer Autonomous Database.
    peer_autonomous_database_life_cycle_state str
    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_role_changed str
    The date and time when the last role change action happened.
    time_last_synced str
    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
    autonomousDatabaseId String
    The database OCID.
    id String
    The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
    isAutomaticFailoverEnabled Boolean
    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.
    peerAutonomousDatabaseId String
    The OCID of the peer Autonomous Database.
    peerAutonomousDatabaseLifeCycleState String
    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.
    timeLastRoleChanged String
    The date and time when the last role change action happened.
    timeLastSynced String
    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

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi