Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 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[_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:
- Autonomous
Database stringId - The database OCID.
- Filters
List<Get
Autonomous Database Dataguard Associations Filter>
- Autonomous
Database stringId - The database OCID.
- Filters
[]Get
Autonomous Database Dataguard Associations Filter
- autonomous
Database StringId - The database OCID.
- filters
List<Get
Autonomous Dataguard Associations Filter>
- autonomous
Database stringId - The database OCID.
- filters
Get
Autonomous Database Dataguard Associations Filter[]
- autonomous
Database StringId - The database OCID.
- filters List<Property Map>
getAutonomousDatabaseDataguardAssociations Result
The following output properties are available:
- Autonomous
Database List<GetDataguard Associations Autonomous Database Dataguard Associations Autonomous Database Dataguard Association> - The list of autonomous_database_dataguard_associations.
- 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.
- Filters
List<Get
Autonomous Database Dataguard Associations Filter>
- Autonomous
Database []GetDataguard Associations Autonomous Database Dataguard Associations Autonomous Database Dataguard Association - The list of autonomous_database_dataguard_associations.
- 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.
- Filters
[]Get
Autonomous Database Dataguard Associations Filter
- autonomous
Database List<GetDataguard Associations Autonomous Dataguard Associations Autonomous Dataguard Association> - The list of autonomous_database_dataguard_associations.
- 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.
- filters
List<Get
Autonomous Dataguard Associations Filter>
- autonomous
Database GetDataguard Associations Autonomous Database Dataguard Associations Autonomous Database Dataguard Association[] - The list of autonomous_database_dataguard_associations.
- 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.
- filters
Get
Autonomous Database Dataguard Associations Filter[]
- autonomous_
database_ Sequence[database.dataguard_ associations Get 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[database.
Get Autonomous Database Dataguard Associations Filter]
- autonomous
Database List<Property Map>Dataguard Associations - The list of autonomous_database_dataguard_associations.
- 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.
- filters List<Property Map>
Supporting Types
GetAutonomousDatabaseDataguardAssociationsAutonomousDatabaseDataguardAssociation
- 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 stringId - The database OCID.
- Id string
- 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 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 Database.
- Peer
Role string - The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- Protection
Mode 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.
- 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.
- Time
Last stringSynced - The date and time of the last update to the apply lag, apply rate, and transport lag values.
- Transport
Lag 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 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 stringId - The database OCID.
- Id string
- 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 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 Database.
- Peer
Role string - The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- Protection
Mode 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.
- 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.
- Time
Last stringSynced - The date and time of the last update to the apply lag, apply rate, and transport lag values.
- Transport
Lag 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 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 StringId - The database OCID.
- id String
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- is
Automatic BooleanFailover Enabled - Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example :
is_automatic_failover_enabled = true
. - 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 Database.
- peer
Role String - The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- protection
Mode 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.
- 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.
- time
Last StringSynced - The date and time of the last update to the apply lag, apply rate, and transport lag values.
- transport
Lag 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 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 stringId - The database OCID.
- id string
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- is
Automatic booleanFailover Enabled - Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example :
is_automatic_failover_enabled = true
. - 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 Database.
- peer
Role string - The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- protection
Mode 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.
- 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.
- time
Last stringSynced - The date and time of the last update to the apply lag, apply rate, and transport lag values.
- transport
Lag 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
- 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 StringId - The database OCID.
- id String
- The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.
- is
Automatic BooleanFailover Enabled - Indicates whether Automatic Failover is enabled for Autonomous Container Database Dataguard Association. Output DataType: boolean. Example :
is_automatic_failover_enabled = true
. - 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 Database.
- peer
Role String - The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
- protection
Mode 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.
- 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.
- time
Last StringSynced - The date and time of the last update to the apply lag, apply rate, and transport lag values.
- transport
Lag 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
oci
Terraform Provider.