oci.Database.getDataGuardAssociations
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDataGuardAssociations = Oci.Database.GetDataGuardAssociations.Invoke(new()
{
DatabaseId = oci_database_database.Test_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.GetDataGuardAssociations(ctx, &database.GetDataGuardAssociationsArgs{
DatabaseId: oci_database_database.Test_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.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(oci_database_database.test_database().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_data_guard_associations = oci.Database.get_data_guard_associations(database_id=oci_database_database["test_database"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataGuardAssociations = oci.Database.getDataGuardAssociations({
databaseId: oci_database_database.test_database.id,
});
variables:
testDataGuardAssociations:
fn::invoke:
Function: oci:Database:getDataGuardAssociations
Arguments:
databaseId: ${oci_database_database.test_database.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDataGuardAssociations:getDataGuardAssociations
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id string The database OCID.
- Filters
List<Get
Data Guard Associations Filter>
- Database
Id string The database OCID.
- Filters
[]Get
Data Guard Associations Filter
- database
Id String The database OCID.
- filters
List<Get
Data Guard Associations Filter>
- database
Id string The database OCID.
- filters
Get
Data Guard Associations Filter[]
- database_
id str The database OCID.
- filters
Get
Data Guard Associations Filter]
- database
Id String The database OCID.
- filters List<Property Map>
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_ Getassociations 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
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 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
- Availability
Domain string - Backup
Network List<string>Nsg Ids - Cpu
Core intCount - Create
Async bool - Creation
Type string - Data
Collection List<GetOptions Data Guard Associations Data Guard Association Data Collection Option> - Database
Admin stringPassword - Dictionary<string, object>
- Dictionary<string, object>
- Database
Id string The database OCID.
- Database
Software stringImage Id - Dictionary<string, object>
- Dictionary<string, object>
- Delete
Standby stringDb Home On Delete - Display
Name string - Fault
Domains List<string> - Hostname string
- Id string
The OCID of the Data Guard association.
- Is
Active boolData Guard Enabled True if active Data Guard is enabled.
- License
Model string - Lifecycle
Details string Additional information about the current lifecycleState, if available.
- Node
Count int - Nsg
Ids List<string> - Peer
Data stringGuard Association Id The OCID of the peer database's Data Guard association.
- Peer
Database stringId The OCID of the associated peer database.
- Peer
Db stringHome Id The OCID of the Database Home containing the associated peer database.
- Peer
Db stringSystem Id The OCID of the DB system containing the associated peer database.
- Peer
Db stringUnique Name - Peer
Role string The role of the peer database in this Data Guard association.
- Peer
Sid stringPrefix - Peer
Vm stringCluster Id - Private
Ip string - Protection
Mode 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 string
The role of the reporting database in this Data Guard association.
- Shape string
- State string
The current state of the Data Guard association.
- Storage
Volume stringPerformance Mode - Subnet
Id string - Time
Created string The date and time the Data Guard association was created.
- Time
Zone string - Transport
Type 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 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
- Availability
Domain string - Backup
Network []stringNsg Ids - Cpu
Core intCount - Create
Async bool - Creation
Type string - Data
Collection []GetOptions Data Guard Associations Data Guard Association Data Collection Option - Database
Admin stringPassword - map[string]interface{}
- map[string]interface{}
- Database
Id string The database OCID.
- Database
Software stringImage Id - map[string]interface{}
- map[string]interface{}
- Delete
Standby stringDb Home On Delete - Display
Name string - Fault
Domains []string - Hostname string
- Id string
The OCID of the Data Guard association.
- Is
Active boolData Guard Enabled True if active Data Guard is enabled.
- License
Model string - Lifecycle
Details string Additional information about the current lifecycleState, if available.
- Node
Count int - Nsg
Ids []string - Peer
Data stringGuard Association Id The OCID of the peer database's Data Guard association.
- Peer
Database stringId The OCID of the associated peer database.
- Peer
Db stringHome Id The OCID of the Database Home containing the associated peer database.
- Peer
Db stringSystem Id The OCID of the DB system containing the associated peer database.
- Peer
Db stringUnique Name - Peer
Role string The role of the peer database in this Data Guard association.
- Peer
Sid stringPrefix - Peer
Vm stringCluster Id - Private
Ip string - Protection
Mode 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 string
The role of the reporting database in this Data Guard association.
- Shape string
- State string
The current state of the Data Guard association.
- Storage
Volume stringPerformance Mode - Subnet
Id string - Time
Created string The date and time the Data Guard association was created.
- Time
Zone string - Transport
Type 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 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
- availability
Domain String - backup
Network List<String>Nsg Ids - cpu
Core IntegerCount - create
Async Boolean - creation
Type String - data
Collection List<GetOptions Data Guard Associations Data Guard Association Data Collection Option> - database
Admin StringPassword - Map<String,Object>
- Map<String,Object>
- database
Id String The database OCID.
- database
Software StringImage Id - Map<String,Object>
- Map<String,Object>
- delete
Standby StringDb Home On Delete - display
Name String - fault
Domains List<String> - hostname String
- id String
The OCID of the Data Guard association.
- is
Active BooleanData Guard Enabled True if active Data Guard is enabled.
- license
Model String - lifecycle
Details String Additional information about the current lifecycleState, if available.
- node
Count Integer - nsg
Ids List<String> - peer
Data StringGuard Association Id The OCID of the peer database's Data Guard association.
- peer
Database StringId The OCID of the associated peer database.
- peer
Db StringHome Id The OCID of the Database Home containing the associated peer database.
- peer
Db StringSystem Id The OCID of the DB system containing the associated peer database.
- peer
Db StringUnique Name - peer
Role String The role of the peer database in this Data Guard association.
- peer
Sid StringPrefix - peer
Vm StringCluster Id - private
Ip String - protection
Mode 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 String
The role of the reporting database in this Data Guard association.
- shape String
- state String
The current state of the Data Guard association.
- storage
Volume StringPerformance Mode - subnet
Id String - time
Created String The date and time the Data Guard association was created.
- time
Zone String - transport
Type 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 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
- availability
Domain string - backup
Network string[]Nsg Ids - cpu
Core numberCount - create
Async boolean - creation
Type string - data
Collection GetOptions Data Guard Associations Data Guard Association Data Collection Option[] - database
Admin stringPassword - {[key: string]: any}
- {[key: string]: any}
- database
Id string The database OCID.
- database
Software stringImage Id - {[key: string]: any}
- {[key: string]: any}
- delete
Standby stringDb Home On Delete - display
Name string - fault
Domains string[] - hostname string
- id string
The OCID of the Data Guard association.
- is
Active booleanData Guard Enabled True if active Data Guard is enabled.
- license
Model string - lifecycle
Details string Additional information about the current lifecycleState, if available.
- node
Count number - nsg
Ids string[] - peer
Data stringGuard Association Id The OCID of the peer database's Data Guard association.
- peer
Database stringId The OCID of the associated peer database.
- peer
Db stringHome Id The OCID of the Database Home containing the associated peer database.
- peer
Db stringSystem Id The OCID of the DB system containing the associated peer database.
- peer
Db stringUnique Name - peer
Role string The role of the peer database in this Data Guard association.
- peer
Sid stringPrefix - peer
Vm stringCluster Id - private
Ip string - protection
Mode 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 string
The role of the reporting database in this Data Guard association.
- shape string
- state string
The current state of the Data Guard association.
- storage
Volume stringPerformance Mode - subnet
Id string - time
Created string The date and time the Data Guard association was created.
- time
Zone string - transport
Type 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 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
- availability_
domain str - backup_
network_ Sequence[str]nsg_ ids - cpu_
core_ intcount - create_
async bool - creation_
type str - data_
collection_ Getoptions Data Guard Associations Data Guard Association Data Collection Option] - database_
admin_ strpassword - Mapping[str, Any]
- Mapping[str, Any]
- database_
id str The database OCID.
- database_
software_ strimage_ id - Mapping[str, Any]
- Mapping[str, Any]
- delete_
standby_ strdb_ home_ on_ delete - display_
name str - fault_
domains Sequence[str] - hostname str
- id str
The OCID of the Data Guard association.
- is_
active_ booldata_ guard_ enabled True if active Data Guard is enabled.
- license_
model str - lifecycle_
details str Additional information about the current lifecycleState, if available.
- node_
count int - nsg_
ids Sequence[str] - peer_
data_ strguard_ association_ id The OCID of the peer database's Data Guard association.
- peer_
database_ strid The OCID of the associated peer database.
- peer_
db_ strhome_ id The OCID of the Database Home containing the associated peer database.
- peer_
db_ strsystem_ id The OCID of the DB system containing the associated peer database.
- peer_
db_ strunique_ name - peer_
role str The role of the peer database in this Data Guard association.
- peer_
sid_ strprefix - peer_
vm_ strcluster_ id - private_
ip str - protection_
mode 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 str
The role of the reporting database in this Data Guard association.
- shape str
- state str
The current state of the Data Guard association.
- storage_
volume_ strperformance_ mode - subnet_
id str - time_
created str The date and time the Data Guard association was created.
- time_
zone str - transport_
type 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 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
- availability
Domain String - backup
Network List<String>Nsg Ids - cpu
Core NumberCount - create
Async Boolean - creation
Type String - data
Collection List<Property Map>Options - database
Admin StringPassword - Map<Any>
- Map<Any>
- database
Id String The database OCID.
- database
Software StringImage Id - Map<Any>
- Map<Any>
- delete
Standby StringDb Home On Delete - display
Name String - fault
Domains List<String> - hostname String
- id String
The OCID of the Data Guard association.
- is
Active BooleanData Guard Enabled True if active Data Guard is enabled.
- license
Model String - lifecycle
Details String Additional information about the current lifecycleState, if available.
- node
Count Number - nsg
Ids List<String> - peer
Data StringGuard Association Id The OCID of the peer database's Data Guard association.
- peer
Database StringId The OCID of the associated peer database.
- peer
Db StringHome Id The OCID of the Database Home containing the associated peer database.
- peer
Db StringSystem Id The OCID of the DB system containing the associated peer database.
- peer
Db StringUnique Name - peer
Role String The role of the peer database in this Data Guard association.
- peer
Sid StringPrefix - peer
Vm StringCluster Id - private
Ip String - protection
Mode 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 String
The role of the reporting database in this Data Guard association.
- shape String
- state String
The current state of the Data Guard association.
- storage
Volume StringPerformance Mode - subnet
Id String - time
Created String The date and time the Data Guard association was created.
- time
Zone String - transport
Type 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 BooleanEvents Enabled - is
Health BooleanMonitoring Enabled - is
Incident BooleanLogs Enabled
- is
Diagnostics booleanEvents Enabled - is
Health booleanMonitoring Enabled - is
Incident booleanLogs Enabled
- is
Diagnostics BooleanEvents Enabled - is
Health BooleanMonitoring Enabled - is
Incident BooleanLogs Enabled
GetDataGuardAssociationsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.