Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getDataGuardAssociation
Explore with Pulumi AI
This data source provides details about a specific Data Guard Association resource in Oracle Cloud Infrastructure Database service.
Gets the specified Data Guard association’s configuration information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataGuardAssociation = oci.Database.getDataGuardAssociation({
dataGuardAssociationId: testDataGuardAssociationOciDatabaseDataGuardAssociation.id,
databaseId: testDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_data_guard_association = oci.Database.get_data_guard_association(data_guard_association_id=test_data_guard_association_oci_database_data_guard_association["id"],
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.GetDataGuardAssociation(ctx, &database.GetDataGuardAssociationArgs{
DataGuardAssociationId: testDataGuardAssociationOciDatabaseDataGuardAssociation.Id,
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 testDataGuardAssociation = Oci.Database.GetDataGuardAssociation.Invoke(new()
{
DataGuardAssociationId = testDataGuardAssociationOciDatabaseDataGuardAssociation.Id,
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.GetDataGuardAssociationArgs;
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 testDataGuardAssociation = DatabaseFunctions.getDataGuardAssociation(GetDataGuardAssociationArgs.builder()
.dataGuardAssociationId(testDataGuardAssociationOciDatabaseDataGuardAssociation.id())
.databaseId(testDatabase.id())
.build());
}
}
variables:
testDataGuardAssociation:
fn::invoke:
Function: oci:Database:getDataGuardAssociation
Arguments:
dataGuardAssociationId: ${testDataGuardAssociationOciDatabaseDataGuardAssociation.id}
databaseId: ${testDatabase.id}
Using getDataGuardAssociation
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 getDataGuardAssociation(args: GetDataGuardAssociationArgs, opts?: InvokeOptions): Promise<GetDataGuardAssociationResult>
function getDataGuardAssociationOutput(args: GetDataGuardAssociationOutputArgs, opts?: InvokeOptions): Output<GetDataGuardAssociationResult>
def get_data_guard_association(data_guard_association_id: Optional[str] = None,
database_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataGuardAssociationResult
def get_data_guard_association_output(data_guard_association_id: Optional[pulumi.Input[str]] = None,
database_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataGuardAssociationResult]
func GetDataGuardAssociation(ctx *Context, args *GetDataGuardAssociationArgs, opts ...InvokeOption) (*GetDataGuardAssociationResult, error)
func GetDataGuardAssociationOutput(ctx *Context, args *GetDataGuardAssociationOutputArgs, opts ...InvokeOption) GetDataGuardAssociationResultOutput
> Note: This function is named GetDataGuardAssociation
in the Go SDK.
public static class GetDataGuardAssociation
{
public static Task<GetDataGuardAssociationResult> InvokeAsync(GetDataGuardAssociationArgs args, InvokeOptions? opts = null)
public static Output<GetDataGuardAssociationResult> Invoke(GetDataGuardAssociationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataGuardAssociationResult> getDataGuardAssociation(GetDataGuardAssociationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDataGuardAssociation:getDataGuardAssociation
arguments:
# arguments dictionary
The following arguments are supported:
- Data
Guard stringAssociation Id - The Data Guard association's OCID.
- Database
Id string - The database OCID.
- Data
Guard stringAssociation Id - The Data Guard association's OCID.
- Database
Id string - The database OCID.
- data
Guard StringAssociation Id - The Data Guard association's OCID.
- database
Id String - The database OCID.
- data
Guard stringAssociation Id - The Data Guard association's OCID.
- database
Id string - The database OCID.
- data_
guard_ strassociation_ id - The Data Guard association's OCID.
- database_
id str - The database OCID.
- data
Guard StringAssociation Id - The Data Guard association's OCID.
- database
Id String - The database OCID.
getDataGuardAssociation Result
The following output properties are available:
- 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 Association Data Collection Option> - Data
Guard stringAssociation Id - Database
Admin stringPassword - Dictionary<string, string>
- Dictionary<string, string>
- Database
Id string - The OCID of the reporting database.
- Database
Software stringImage Id - Dictionary<string, string>
- Dictionary<string, string>
- Db
System Dictionary<string, string>Security Attributes - Delete
Standby stringDb Home On Delete - Display
Name string - Domain 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 Association Data Collection Option - Data
Guard stringAssociation Id - Database
Admin stringPassword - map[string]string
- map[string]string
- Database
Id string - The OCID of the reporting database.
- Database
Software stringImage Id - map[string]string
- map[string]string
- Db
System map[string]stringSecurity Attributes - Delete
Standby stringDb Home On Delete - Display
Name string - Domain 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 Association Data Collection Option> - data
Guard StringAssociation Id - database
Admin StringPassword - Map<String,String>
- Map<String,String>
- database
Id String - The OCID of the reporting database.
- database
Software StringImage Id - Map<String,String>
- Map<String,String>
- db
System Map<String,String>Security Attributes - delete
Standby StringDb Home On Delete - display
Name String - domain 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 Association Data Collection Option[] - data
Guard stringAssociation Id - database
Admin stringPassword - {[key: string]: string}
- {[key: string]: string}
- database
Id string - The OCID of the reporting database.
- database
Software stringImage Id - {[key: string]: string}
- {[key: string]: string}
- db
System {[key: string]: string}Security Attributes - delete
Standby stringDb Home On Delete - display
Name string - domain 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_ Sequence[database.options Get Data Guard Association Data Collection Option] - data_
guard_ strassociation_ id - database_
admin_ strpassword - Mapping[str, str]
- Mapping[str, str]
- database_
id str - The OCID of the reporting database.
- database_
software_ strimage_ id - Mapping[str, str]
- Mapping[str, str]
- db_
system_ Mapping[str, str]security_ attributes - delete_
standby_ strdb_ home_ on_ delete - display_
name str - domain 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 - data
Guard StringAssociation Id - database
Admin StringPassword - Map<String>
- Map<String>
- database
Id String - The OCID of the reporting database.
- database
Software StringImage Id - Map<String>
- Map<String>
- db
System Map<String>Security Attributes - delete
Standby StringDb Home On Delete - display
Name String - domain 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.
Supporting Types
GetDataGuardAssociationDataCollectionOption
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.