1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousContainerDatabaseDataguardAssociations
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi

oci.Database.getAutonomousContainerDatabaseDataguardAssociations

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi

    This data source provides the list of Autonomous Container Database Dataguard Associations in Oracle Cloud Infrastructure Database service.

    Gets a list of the Autonomous Container Databases with Autonomous Data Guard-enabled associated with the specified Autonomous Container Database.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAutonomousContainerDatabaseDataguardAssociations = Oci.Database.GetAutonomousContainerDatabaseDataguardAssociations.Invoke(new()
        {
            AutonomousContainerDatabaseId = oci_database_autonomous_container_database.Test_autonomous_container_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.GetAutonomousContainerDatabaseDataguardAssociations(ctx, &database.GetAutonomousContainerDatabaseDataguardAssociationsArgs{
    			AutonomousContainerDatabaseId: oci_database_autonomous_container_database.Test_autonomous_container_database.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.GetAutonomousContainerDatabaseDataguardAssociationsArgs;
    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 testAutonomousContainerDatabaseDataguardAssociations = DatabaseFunctions.getAutonomousContainerDatabaseDataguardAssociations(GetAutonomousContainerDatabaseDataguardAssociationsArgs.builder()
                .autonomousContainerDatabaseId(oci_database_autonomous_container_database.test_autonomous_container_database().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_container_database_dataguard_associations = oci.Database.get_autonomous_container_database_dataguard_associations(autonomous_container_database_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousContainerDatabaseDataguardAssociations = oci.Database.getAutonomousContainerDatabaseDataguardAssociations({
        autonomousContainerDatabaseId: oci_database_autonomous_container_database.test_autonomous_container_database.id,
    });
    
    variables:
      testAutonomousContainerDatabaseDataguardAssociations:
        fn::invoke:
          Function: oci:Database:getAutonomousContainerDatabaseDataguardAssociations
          Arguments:
            autonomousContainerDatabaseId: ${oci_database_autonomous_container_database.test_autonomous_container_database.id}
    

    Using getAutonomousContainerDatabaseDataguardAssociations

    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 getAutonomousContainerDatabaseDataguardAssociations(args: GetAutonomousContainerDatabaseDataguardAssociationsArgs, opts?: InvokeOptions): Promise<GetAutonomousContainerDatabaseDataguardAssociationsResult>
    function getAutonomousContainerDatabaseDataguardAssociationsOutput(args: GetAutonomousContainerDatabaseDataguardAssociationsOutputArgs, opts?: InvokeOptions): Output<GetAutonomousContainerDatabaseDataguardAssociationsResult>
    def get_autonomous_container_database_dataguard_associations(autonomous_container_database_id: Optional[str] = None,
                                                                 filters: Optional[Sequence[_database.GetAutonomousContainerDatabaseDataguardAssociationsFilter]] = None,
                                                                 opts: Optional[InvokeOptions] = None) -> GetAutonomousContainerDatabaseDataguardAssociationsResult
    def get_autonomous_container_database_dataguard_associations_output(autonomous_container_database_id: Optional[pulumi.Input[str]] = None,
                                                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetAutonomousContainerDatabaseDataguardAssociationsFilterArgs]]]] = None,
                                                                 opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousContainerDatabaseDataguardAssociationsResult]
    func GetAutonomousContainerDatabaseDataguardAssociations(ctx *Context, args *GetAutonomousContainerDatabaseDataguardAssociationsArgs, opts ...InvokeOption) (*GetAutonomousContainerDatabaseDataguardAssociationsResult, error)
    func GetAutonomousContainerDatabaseDataguardAssociationsOutput(ctx *Context, args *GetAutonomousContainerDatabaseDataguardAssociationsOutputArgs, opts ...InvokeOption) GetAutonomousContainerDatabaseDataguardAssociationsResultOutput

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

    public static class GetAutonomousContainerDatabaseDataguardAssociations 
    {
        public static Task<GetAutonomousContainerDatabaseDataguardAssociationsResult> InvokeAsync(GetAutonomousContainerDatabaseDataguardAssociationsArgs args, InvokeOptions? opts = null)
        public static Output<GetAutonomousContainerDatabaseDataguardAssociationsResult> Invoke(GetAutonomousContainerDatabaseDataguardAssociationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAutonomousContainerDatabaseDataguardAssociationsResult> getAutonomousContainerDatabaseDataguardAssociations(GetAutonomousContainerDatabaseDataguardAssociationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getAutonomousContainerDatabaseDataguardAssociations:getAutonomousContainerDatabaseDataguardAssociations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    autonomousContainerDatabaseId String

    The Autonomous Container Database OCID.

    filters List<Property Map>

    getAutonomousContainerDatabaseDataguardAssociations Result

    The following output properties are available:

    AutonomousContainerDatabaseDataguardAssociations List<GetAutonomousContainerDatabaseDataguardAssociationsAutonomousContainerDatabaseDataguardAssociation>

    The list of autonomous_container_database_dataguard_associations.

    AutonomousContainerDatabaseId string

    The OCID of the Autonomous Container Database that has a relationship with the peer Autonomous Container Database.

    Id string

    The provider-assigned unique ID for this managed resource.

    Filters List<GetAutonomousContainerDatabaseDataguardAssociationsFilter>
    AutonomousContainerDatabaseDataguardAssociations []GetAutonomousContainerDatabaseDataguardAssociationsAutonomousContainerDatabaseDataguardAssociation

    The list of autonomous_container_database_dataguard_associations.

    AutonomousContainerDatabaseId string

    The OCID of the Autonomous Container Database that has a relationship with the peer Autonomous Container Database.

    Id string

    The provider-assigned unique ID for this managed resource.

    Filters []GetAutonomousContainerDatabaseDataguardAssociationsFilter
    autonomousContainerDatabaseDataguardAssociations List<GetAutonomousContainerDataguardAssociationsAutonomousContainerDataguardAssociation>

    The list of autonomous_container_database_dataguard_associations.

    autonomousContainerDatabaseId String

    The OCID of the Autonomous Container Database that has a relationship with the peer Autonomous Container Database.

    id String

    The provider-assigned unique ID for this managed resource.

    filters List<GetAutonomousContainerDataguardAssociationsFilter>
    autonomousContainerDatabaseDataguardAssociations GetAutonomousContainerDatabaseDataguardAssociationsAutonomousContainerDatabaseDataguardAssociation[]

    The list of autonomous_container_database_dataguard_associations.

    autonomousContainerDatabaseId string

    The OCID of the Autonomous Container Database that has a relationship with the peer Autonomous Container Database.

    id string

    The provider-assigned unique ID for this managed resource.

    filters GetAutonomousContainerDatabaseDataguardAssociationsFilter[]
    autonomous_container_database_dataguard_associations GetAutonomousContainerDatabaseDataguardAssociationsAutonomousContainerDatabaseDataguardAssociation]

    The list of autonomous_container_database_dataguard_associations.

    autonomous_container_database_id str

    The OCID of the Autonomous Container Database that has a relationship with the peer Autonomous Container Database.

    id str

    The provider-assigned unique ID for this managed resource.

    filters GetAutonomousContainerDatabaseDataguardAssociationsFilter]
    autonomousContainerDatabaseDataguardAssociations List<Property Map>

    The list of autonomous_container_database_dataguard_associations.

    autonomousContainerDatabaseId String

    The OCID of the Autonomous Container Database that has a relationship with the peer Autonomous Container Database.

    id String

    The provider-assigned unique ID for this managed resource.

    filters List<Property Map>

    Supporting Types

    GetAutonomousContainerDatabaseDataguardAssociationsAutonomousContainerDatabaseDataguardAssociation

    ApplyLag string

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

    ApplyRate string

    The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: 180 Mb per second

    AutonomousContainerDatabaseDataguardAssociationId string
    AutonomousContainerDatabaseId string

    The Autonomous Container Database OCID.

    FastStartFailOverLagLimitInSeconds int

    The lag time for my preference based on data loss tolerance in seconds.

    Id string

    The OCID of the Autonomous Data Guard created for a given Autonomous Container Database.

    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.

    PeerAutonomousContainerDatabaseDataguardAssociationId string

    The OCID of the peer Autonomous Container Database-Autonomous Data Guard association.

    PeerAutonomousContainerDatabaseId string

    The OCID of the peer Autonomous Container Database.

    PeerLifecycleState string

    The current state of Autonomous Data Guard.

    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 Autonomous DataGuard 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 Autonomous Container Database and application of the redo data on the standby Autonomous Container Database, as computed by the reporting database. Example: 9 seconds

    ApplyRate string

    The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: 180 Mb per second

    AutonomousContainerDatabaseDataguardAssociationId string
    AutonomousContainerDatabaseId string

    The Autonomous Container Database OCID.

    FastStartFailOverLagLimitInSeconds int

    The lag time for my preference based on data loss tolerance in seconds.

    Id string

    The OCID of the Autonomous Data Guard created for a given Autonomous Container Database.

    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.

    PeerAutonomousContainerDatabaseDataguardAssociationId string

    The OCID of the peer Autonomous Container Database-Autonomous Data Guard association.

    PeerAutonomousContainerDatabaseId string

    The OCID of the peer Autonomous Container Database.

    PeerLifecycleState string

    The current state of Autonomous Data Guard.

    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 Autonomous DataGuard 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 Autonomous Container Database and application of the redo data on the standby Autonomous Container Database, as computed by the reporting database. Example: 9 seconds

    applyRate String

    The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: 180 Mb per second

    autonomousContainerDatabaseDataguardAssociationId String
    autonomousContainerDatabaseId String

    The Autonomous Container Database OCID.

    fastStartFailOverLagLimitInSeconds Integer

    The lag time for my preference based on data loss tolerance in seconds.

    id String

    The OCID of the Autonomous Data Guard created for a given Autonomous Container Database.

    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.

    peerAutonomousContainerDatabaseDataguardAssociationId String

    The OCID of the peer Autonomous Container Database-Autonomous Data Guard association.

    peerAutonomousContainerDatabaseId String

    The OCID of the peer Autonomous Container Database.

    peerLifecycleState String

    The current state of Autonomous Data Guard.

    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 Autonomous DataGuard 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 Autonomous Container Database and application of the redo data on the standby Autonomous Container Database, as computed by the reporting database. Example: 9 seconds

    applyRate string

    The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: 180 Mb per second

    autonomousContainerDatabaseDataguardAssociationId string
    autonomousContainerDatabaseId string

    The Autonomous Container Database OCID.

    fastStartFailOverLagLimitInSeconds number

    The lag time for my preference based on data loss tolerance in seconds.

    id string

    The OCID of the Autonomous Data Guard created for a given Autonomous Container Database.

    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.

    peerAutonomousContainerDatabaseDataguardAssociationId string

    The OCID of the peer Autonomous Container Database-Autonomous Data Guard association.

    peerAutonomousContainerDatabaseId string

    The OCID of the peer Autonomous Container Database.

    peerLifecycleState string

    The current state of Autonomous Data Guard.

    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 Autonomous DataGuard 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 Autonomous Container Database and application of the redo data on the standby Autonomous Container Database, as computed by the reporting database. Example: 9 seconds

    apply_rate str

    The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: 180 Mb per second

    autonomous_container_database_dataguard_association_id str
    autonomous_container_database_id str

    The Autonomous Container Database OCID.

    fast_start_fail_over_lag_limit_in_seconds int

    The lag time for my preference based on data loss tolerance in seconds.

    id str

    The OCID of the Autonomous Data Guard created for a given Autonomous Container Database.

    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_container_database_dataguard_association_id str

    The OCID of the peer Autonomous Container Database-Autonomous Data Guard association.

    peer_autonomous_container_database_id str

    The OCID of the peer Autonomous Container Database.

    peer_lifecycle_state str

    The current state of Autonomous Data Guard.

    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 Autonomous DataGuard 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 Autonomous Container Database and application of the redo data on the standby Autonomous Container Database, as computed by the reporting database. Example: 9 seconds

    applyRate String

    The rate at which redo logs are synchronized between the associated Autonomous Container Databases. Example: 180 Mb per second

    autonomousContainerDatabaseDataguardAssociationId String
    autonomousContainerDatabaseId String

    The Autonomous Container Database OCID.

    fastStartFailOverLagLimitInSeconds Number

    The lag time for my preference based on data loss tolerance in seconds.

    id String

    The OCID of the Autonomous Data Guard created for a given Autonomous Container Database.

    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.

    peerAutonomousContainerDatabaseDataguardAssociationId String

    The OCID of the peer Autonomous Container Database-Autonomous Data Guard association.

    peerAutonomousContainerDatabaseId String

    The OCID of the peer Autonomous Container Database.

    peerLifecycleState String

    The current state of Autonomous Data Guard.

    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 Autonomous DataGuard 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

    GetAutonomousContainerDatabaseDataguardAssociationsFilter

    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 v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi