Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi
oci.Database.getDataGuardAssociations
Explore with Pulumi AI
This data source provides the list of Data Guard Associations in Oracle Cloud Infrastructure Database service.
Lists all Data Guard associations for the specified database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataGuardAssociations = oci.Database.getDataGuardAssociations({
databaseId: testDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_data_guard_associations = oci.Database.get_data_guard_associations(database_id=test_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.GetDataGuardAssociations(ctx, &database.GetDataGuardAssociationsArgs{
DatabaseId: testDatabase.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 testDataGuardAssociations = Oci.Database.GetDataGuardAssociations.Invoke(new()
{
DatabaseId = testDatabase.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.GetDataGuardAssociationsArgs;
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 testDataGuardAssociations = DatabaseFunctions.getDataGuardAssociations(GetDataGuardAssociationsArgs.builder()
.databaseId(testDatabase.id())
.build());
}
}
variables:
testDataGuardAssociations:
fn::invoke:
function: oci:Database:getDataGuardAssociations
arguments:
databaseId: ${testDatabase.id}
Using getDataGuardAssociations
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 getDataGuardAssociations(args: GetDataGuardAssociationsArgs, opts?: InvokeOptions): Promise<GetDataGuardAssociationsResult>
function getDataGuardAssociationsOutput(args: GetDataGuardAssociationsOutputArgs, opts?: InvokeOptions): Output<GetDataGuardAssociationsResult>
def get_data_guard_associations(database_id: Optional[str] = None,
filters: Optional[Sequence[_database.GetDataGuardAssociationsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetDataGuardAssociationsResult
def get_data_guard_associations_output(database_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDataGuardAssociationsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataGuardAssociationsResult]
func GetDataGuardAssociations(ctx *Context, args *GetDataGuardAssociationsArgs, opts ...InvokeOption) (*GetDataGuardAssociationsResult, error)
func GetDataGuardAssociationsOutput(ctx *Context, args *GetDataGuardAssociationsOutputArgs, opts ...InvokeOption) GetDataGuardAssociationsResultOutput
> Note: This function is named GetDataGuardAssociations
in the Go SDK.
public static class GetDataGuardAssociations
{
public static Task<GetDataGuardAssociationsResult> InvokeAsync(GetDataGuardAssociationsArgs args, InvokeOptions? opts = null)
public static Output<GetDataGuardAssociationsResult> Invoke(GetDataGuardAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataGuardAssociationsResult> getDataGuardAssociations(GetDataGuardAssociationsArgs args, InvokeOptions options)
public static Output<GetDataGuardAssociationsResult> getDataGuardAssociations(GetDataGuardAssociationsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Database/getDataGuardAssociations:getDataGuardAssociations
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id This property is required. string - The database OCID.
- Filters
Changes to this property will trigger replacement.
Data Guard Associations Filter>
- Database
Id This property is required. string - The database OCID.
- Filters
Changes to this property will trigger replacement.
Data Guard Associations Filter
- database
Id This property is required. String - The database OCID.
- filters
Changes to this property will trigger replacement.
Data Guard Associations Filter>
- database
Id This property is required. string - The database OCID.
- filters
Changes to this property will trigger replacement.
Data Guard Associations Filter[]
- database_
id This property is required. str - The database OCID.
- filters
Changes to this property will trigger replacement.
Get Data Guard Associations Filter]
- database
Id This property is required. String - The database OCID.
- filters
Changes to this property will trigger replacement.
getDataGuardAssociations Result
The following output properties are available:
- Data
Guard List<GetAssociations Data Guard Associations Data Guard Association> - The list of data_guard_associations.
- Database
Id string - The OCID of the reporting database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Data Guard Associations Filter>
- Data
Guard []GetAssociations Data Guard Associations Data Guard Association - The list of data_guard_associations.
- Database
Id string - The OCID of the reporting database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Data Guard Associations Filter
- data
Guard List<GetAssociations Data Guard Associations Data Guard Association> - The list of data_guard_associations.
- database
Id String - The OCID of the reporting database.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Data Guard Associations Filter>
- data
Guard GetAssociations Data Guard Associations Data Guard Association[] - The list of data_guard_associations.
- database
Id string - The OCID of the reporting database.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Data Guard Associations Filter[]
- data_
guard_ Sequence[database.associations Get Data Guard Associations Data Guard Association] - The list of data_guard_associations.
- database_
id str - The OCID of the reporting database.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[database.
Get Data Guard Associations Filter]
- data
Guard List<Property Map>Associations - The list of data_guard_associations.
- database
Id String - The OCID of the reporting database.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetDataGuardAssociationsDataGuardAssociation
- Apply
Lag This property is required. 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 This property is required. string - The rate at which redo logs are synced between the associated databases. Example:
180 Mb per second
- Availability
Domain This property is required. string - Backup
Network Nsg Ids This property is required. List<string> - Cpu
Core Count This property is required. int - Create
Async This property is required. bool - Creation
Type This property is required. string - Data
Collection Options This property is required. List<GetData Guard Associations Data Guard Association Data Collection Option> - Database
Admin Password This property is required. string This property is required. Dictionary<string, string>This property is required. Dictionary<string, string>- Database
Id This property is required. string - The database OCID.
- Database
Software Image Id This property is required. string This property is required. Dictionary<string, string>This property is required. Dictionary<string, string>- Db
System Security Attributes This property is required. Dictionary<string, string> - Delete
Standby Db Home On Delete This property is required. string - Display
Name This property is required. string - Domain
This property is required. string - Fault
Domains This property is required. List<string> - Hostname
This property is required. string - Id
This property is required. string - The OCID of the Data Guard association.
- Is
Active Data Guard Enabled This property is required. bool - True if active Data Guard is enabled.
- License
Model This property is required. string - Lifecycle
Details This property is required. string - Additional information about the current lifecycleState, if available.
- Migrate
Trigger This property is required. int - Node
Count This property is required. int - Nsg
Ids This property is required. List<string> - Peer
Data Guard Association Id This property is required. string - The OCID of the peer database's Data Guard association.
- Peer
Database Id This property is required. string - The OCID of the associated peer database.
- Peer
Db Home Id This property is required. string - The OCID of the Database Home containing the associated peer database.
- Peer
Db System Id This property is required. string - The OCID of the DB system containing the associated peer database.
- Peer
Db Unique Name This property is required. string - Peer
Role This property is required. string - The role of the peer database in this Data Guard association.
- Peer
Sid Prefix This property is required. string - Peer
Vm Cluster Id This property is required. string - Private
Ip This property is required. string - Private
Ip V6 This property is required. string - Protection
Mode This property is required. 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
This property is required. string - The role of the reporting database in this Data Guard association.
- Shape
This property is required. string - State
This property is required. string - The current state of the Data Guard association.
- Storage
Volume Performance Mode This property is required. string - Subnet
Id This property is required. string - Time
Created This property is required. string - The date and time the Data Guard association was created.
- Time
Zone This property is required. string - Transport
Type This property is required. string - The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.
- Apply
Lag This property is required. 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 This property is required. string - The rate at which redo logs are synced between the associated databases. Example:
180 Mb per second
- Availability
Domain This property is required. string - Backup
Network Nsg Ids This property is required. []string - Cpu
Core Count This property is required. int - Create
Async This property is required. bool - Creation
Type This property is required. string - Data
Collection Options This property is required. []GetData Guard Associations Data Guard Association Data Collection Option - Database
Admin Password This property is required. string This property is required. map[string]stringThis property is required. map[string]string- Database
Id This property is required. string - The database OCID.
- Database
Software Image Id This property is required. string This property is required. map[string]stringThis property is required. map[string]string- Db
System Security Attributes This property is required. map[string]string - Delete
Standby Db Home On Delete This property is required. string - Display
Name This property is required. string - Domain
This property is required. string - Fault
Domains This property is required. []string - Hostname
This property is required. string - Id
This property is required. string - The OCID of the Data Guard association.
- Is
Active Data Guard Enabled This property is required. bool - True if active Data Guard is enabled.
- License
Model This property is required. string - Lifecycle
Details This property is required. string - Additional information about the current lifecycleState, if available.
- Migrate
Trigger This property is required. int - Node
Count This property is required. int - Nsg
Ids This property is required. []string - Peer
Data Guard Association Id This property is required. string - The OCID of the peer database's Data Guard association.
- Peer
Database Id This property is required. string - The OCID of the associated peer database.
- Peer
Db Home Id This property is required. string - The OCID of the Database Home containing the associated peer database.
- Peer
Db System Id This property is required. string - The OCID of the DB system containing the associated peer database.
- Peer
Db Unique Name This property is required. string - Peer
Role This property is required. string - The role of the peer database in this Data Guard association.
- Peer
Sid Prefix This property is required. string - Peer
Vm Cluster Id This property is required. string - Private
Ip This property is required. string - Private
Ip V6 This property is required. string - Protection
Mode This property is required. 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
This property is required. string - The role of the reporting database in this Data Guard association.
- Shape
This property is required. string - State
This property is required. string - The current state of the Data Guard association.
- Storage
Volume Performance Mode This property is required. string - Subnet
Id This property is required. string - Time
Created This property is required. string - The date and time the Data Guard association was created.
- Time
Zone This property is required. string - Transport
Type This property is required. string - The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.
- apply
Lag This property is required. 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 This property is required. String - The rate at which redo logs are synced between the associated databases. Example:
180 Mb per second
- availability
Domain This property is required. String - backup
Network Nsg Ids This property is required. List<String> - cpu
Core Count This property is required. Integer - create
Async This property is required. Boolean - creation
Type This property is required. String - data
Collection Options This property is required. List<GetData Guard Associations Data Guard Association Data Collection Option> - database
Admin Password This property is required. String This property is required. Map<String,String>This property is required. Map<String,String>- database
Id This property is required. String - The database OCID.
- database
Software Image Id This property is required. String This property is required. Map<String,String>This property is required. Map<String,String>- db
System Security Attributes This property is required. Map<String,String> - delete
Standby Db Home On Delete This property is required. String - display
Name This property is required. String - domain
This property is required. String - fault
Domains This property is required. List<String> - hostname
This property is required. String - id
This property is required. String - The OCID of the Data Guard association.
- is
Active Data Guard Enabled This property is required. Boolean - True if active Data Guard is enabled.
- license
Model This property is required. String - lifecycle
Details This property is required. String - Additional information about the current lifecycleState, if available.
- migrate
Trigger This property is required. Integer - node
Count This property is required. Integer - nsg
Ids This property is required. List<String> - peer
Data Guard Association Id This property is required. String - The OCID of the peer database's Data Guard association.
- peer
Database Id This property is required. String - The OCID of the associated peer database.
- peer
Db Home Id This property is required. String - The OCID of the Database Home containing the associated peer database.
- peer
Db System Id This property is required. String - The OCID of the DB system containing the associated peer database.
- peer
Db Unique Name This property is required. String - peer
Role This property is required. String - The role of the peer database in this Data Guard association.
- peer
Sid Prefix This property is required. String - peer
Vm Cluster Id This property is required. String - private
Ip This property is required. String - private
Ip V6 This property is required. String - protection
Mode This property is required. 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
This property is required. String - The role of the reporting database in this Data Guard association.
- shape
This property is required. String - state
This property is required. String - The current state of the Data Guard association.
- storage
Volume Performance Mode This property is required. String - subnet
Id This property is required. String - time
Created This property is required. String - The date and time the Data Guard association was created.
- time
Zone This property is required. String - transport
Type This property is required. String - The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.
- apply
Lag This property is required. 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 This property is required. string - The rate at which redo logs are synced between the associated databases. Example:
180 Mb per second
- availability
Domain This property is required. string - backup
Network Nsg Ids This property is required. string[] - cpu
Core Count This property is required. number - create
Async This property is required. boolean - creation
Type This property is required. string - data
Collection Options This property is required. GetData Guard Associations Data Guard Association Data Collection Option[] - database
Admin Password This property is required. string This property is required. {[key: string]: string}This property is required. {[key: string]: string}- database
Id This property is required. string - The database OCID.
- database
Software Image Id This property is required. string This property is required. {[key: string]: string}This property is required. {[key: string]: string}- db
System Security Attributes This property is required. {[key: string]: string} - delete
Standby Db Home On Delete This property is required. string - display
Name This property is required. string - domain
This property is required. string - fault
Domains This property is required. string[] - hostname
This property is required. string - id
This property is required. string - The OCID of the Data Guard association.
- is
Active Data Guard Enabled This property is required. boolean - True if active Data Guard is enabled.
- license
Model This property is required. string - lifecycle
Details This property is required. string - Additional information about the current lifecycleState, if available.
- migrate
Trigger This property is required. number - node
Count This property is required. number - nsg
Ids This property is required. string[] - peer
Data Guard Association Id This property is required. string - The OCID of the peer database's Data Guard association.
- peer
Database Id This property is required. string - The OCID of the associated peer database.
- peer
Db Home Id This property is required. string - The OCID of the Database Home containing the associated peer database.
- peer
Db System Id This property is required. string - The OCID of the DB system containing the associated peer database.
- peer
Db Unique Name This property is required. string - peer
Role This property is required. string - The role of the peer database in this Data Guard association.
- peer
Sid Prefix This property is required. string - peer
Vm Cluster Id This property is required. string - private
Ip This property is required. string - private
Ip V6 This property is required. string - protection
Mode This property is required. 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
This property is required. string - The role of the reporting database in this Data Guard association.
- shape
This property is required. string - state
This property is required. string - The current state of the Data Guard association.
- storage
Volume Performance Mode This property is required. string - subnet
Id This property is required. string - time
Created This property is required. string - The date and time the Data Guard association was created.
- time
Zone This property is required. string - transport
Type This property is required. string - The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.
- apply_
lag This property is required. 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 This property is required. str - The rate at which redo logs are synced between the associated databases. Example:
180 Mb per second
- availability_
domain This property is required. str - backup_
network_ nsg_ ids This property is required. Sequence[str] - cpu_
core_ count This property is required. int - create_
async This property is required. bool - creation_
type This property is required. str - data_
collection_ options This property is required. Sequence[database.Get Data Guard Associations Data Guard Association Data Collection Option] - database_
admin_ password This property is required. str This property is required. Mapping[str, str]This property is required. Mapping[str, str]- database_
id This property is required. str - The database OCID.
- database_
software_ image_ id This property is required. str This property is required. Mapping[str, str]This property is required. Mapping[str, str]- db_
system_ security_ attributes This property is required. Mapping[str, str] - delete_
standby_ db_ home_ on_ delete This property is required. str - display_
name This property is required. str - domain
This property is required. str - fault_
domains This property is required. Sequence[str] - hostname
This property is required. str - id
This property is required. str - The OCID of the Data Guard association.
- is_
active_ data_ guard_ enabled This property is required. bool - True if active Data Guard is enabled.
- license_
model This property is required. str - lifecycle_
details This property is required. str - Additional information about the current lifecycleState, if available.
- migrate_
trigger This property is required. int - node_
count This property is required. int - nsg_
ids This property is required. Sequence[str] - peer_
data_ guard_ association_ id This property is required. str - The OCID of the peer database's Data Guard association.
- peer_
database_ id This property is required. str - The OCID of the associated peer database.
- peer_
db_ home_ id This property is required. str - The OCID of the Database Home containing the associated peer database.
- peer_
db_ system_ id This property is required. str - The OCID of the DB system containing the associated peer database.
- peer_
db_ unique_ name This property is required. str - peer_
role This property is required. str - The role of the peer database in this Data Guard association.
- peer_
sid_ prefix This property is required. str - peer_
vm_ cluster_ id This property is required. str - private_
ip This property is required. str - private_
ip_ v6 This property is required. str - protection_
mode This property is required. 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
This property is required. str - The role of the reporting database in this Data Guard association.
- shape
This property is required. str - state
This property is required. str - The current state of the Data Guard association.
- storage_
volume_ performance_ mode This property is required. str - subnet_
id This property is required. str - time_
created This property is required. str - The date and time the Data Guard association was created.
- time_
zone This property is required. str - transport_
type This property is required. str - The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.
- apply
Lag This property is required. 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 This property is required. String - The rate at which redo logs are synced between the associated databases. Example:
180 Mb per second
- availability
Domain This property is required. String - backup
Network Nsg Ids This property is required. List<String> - cpu
Core Count This property is required. Number - create
Async This property is required. Boolean - creation
Type This property is required. String - data
Collection Options This property is required. List<Property Map> - database
Admin Password This property is required. String This property is required. Map<String>This property is required. Map<String>- database
Id This property is required. String - The database OCID.
- database
Software Image Id This property is required. String This property is required. Map<String>This property is required. Map<String>- db
System Security Attributes This property is required. Map<String> - delete
Standby Db Home On Delete This property is required. String - display
Name This property is required. String - domain
This property is required. String - fault
Domains This property is required. List<String> - hostname
This property is required. String - id
This property is required. String - The OCID of the Data Guard association.
- is
Active Data Guard Enabled This property is required. Boolean - True if active Data Guard is enabled.
- license
Model This property is required. String - lifecycle
Details This property is required. String - Additional information about the current lifecycleState, if available.
- migrate
Trigger This property is required. Number - node
Count This property is required. Number - nsg
Ids This property is required. List<String> - peer
Data Guard Association Id This property is required. String - The OCID of the peer database's Data Guard association.
- peer
Database Id This property is required. String - The OCID of the associated peer database.
- peer
Db Home Id This property is required. String - The OCID of the Database Home containing the associated peer database.
- peer
Db System Id This property is required. String - The OCID of the DB system containing the associated peer database.
- peer
Db Unique Name This property is required. String - peer
Role This property is required. String - The role of the peer database in this Data Guard association.
- peer
Sid Prefix This property is required. String - peer
Vm Cluster Id This property is required. String - private
Ip This property is required. String - private
Ip V6 This property is required. String - protection
Mode This property is required. 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
This property is required. String - The role of the reporting database in this Data Guard association.
- shape
This property is required. String - state
This property is required. String - The current state of the Data Guard association.
- storage
Volume Performance Mode This property is required. String - subnet
Id This property is required. String - time
Created This property is required. String - The date and time the Data Guard association was created.
- time
Zone This property is required. String - transport
Type This property is required. String - The redo transport type used by this Data Guard association. For more information, see Redo Transport Services in the Oracle Data Guard documentation.
GetDataGuardAssociationsDataGuardAssociationDataCollectionOption
- Is
Diagnostics Events Enabled This property is required. bool - Is
Health Monitoring Enabled This property is required. bool - Is
Incident Logs Enabled This property is required. bool
- Is
Diagnostics Events Enabled This property is required. bool - Is
Health Monitoring Enabled This property is required. bool - Is
Incident Logs Enabled This property is required. bool
- is
Diagnostics Events Enabled This property is required. Boolean - is
Health Monitoring Enabled This property is required. Boolean - is
Incident Logs Enabled This property is required. Boolean
- is
Diagnostics Events Enabled This property is required. boolean - is
Health Monitoring Enabled This property is required. boolean - is
Incident Logs Enabled This property is required. boolean
- is_
diagnostics_ events_ enabled This property is required. bool - is_
health_ monitoring_ enabled This property is required. bool - is_
incident_ logs_ enabled This property is required. bool
- is
Diagnostics Events Enabled This property is required. Boolean - is
Health Monitoring Enabled This property is required. Boolean - is
Incident Logs Enabled This property is required. Boolean
GetDataGuardAssociationsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.