Oracle Cloud Infrastructure
getDataGuardAssociation
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testDataGuardAssociation = Output.Create(Oci.Database.GetDataGuardAssociation.InvokeAsync(new Oci.Database.GetDataGuardAssociationArgs
{
DataGuardAssociationId = oci_database_data_guard_association.Test_data_guard_association.Id,
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.GetDataGuardAssociation(ctx, &database.GetDataGuardAssociationArgs{
DataGuardAssociationId: oci_database_data_guard_association.Test_data_guard_association.Id,
DatabaseId: oci_database_database.Test_database.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_data_guard_association = oci.Database.get_data_guard_association(data_guard_association_id=oci_database_data_guard_association["test_data_guard_association"]["id"],
database_id=oci_database_database["test_database"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDataGuardAssociation = oci.Database.getDataGuardAssociation({
dataGuardAssociationId: oci_database_data_guard_association.test_data_guard_association.id,
databaseId: oci_database_database.test_database.id,
});
Coming soon!
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 - Create
Async bool - Creation
Type string - Data
Guard stringAssociation Id - Database
Admin stringPassword - Database
Id string The OCID of the reporting database.
- Database
Software stringImage Id - Delete
Standby stringDb Home On Delete - Display
Name string - Hostname string
- Id string
The OCID of the Data Guard association.
- Is
Active boolData Guard Enabled True if active Data Guard is enabled.
- Lifecycle
Details string Additional information about the current lifecycleState, if available.
- 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 - 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.
- Subnet
Id string - Time
Created string The date and time the Data Guard association was created.
- 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 - Create
Async bool - Creation
Type string - Data
Guard stringAssociation Id - Database
Admin stringPassword - Database
Id string The OCID of the reporting database.
- Database
Software stringImage Id - Delete
Standby stringDb Home On Delete - Display
Name string - Hostname string
- Id string
The OCID of the Data Guard association.
- Is
Active boolData Guard Enabled True if active Data Guard is enabled.
- Lifecycle
Details string Additional information about the current lifecycleState, if available.
- 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 - 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.
- Subnet
Id string - Time
Created string The date and time the Data Guard association was created.
- 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 - create
Async Boolean - creation
Type String - data
Guard StringAssociation Id - database
Admin StringPassword - database
Id String The OCID of the reporting database.
- database
Software StringImage Id - delete
Standby StringDb Home On Delete - display
Name String - hostname String
- id String
The OCID of the Data Guard association.
- is
Active BooleanData Guard Enabled True if active Data Guard is enabled.
- lifecycle
Details String Additional information about the current lifecycleState, if available.
- 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 - 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.
- subnet
Id String - time
Created String The date and time the Data Guard association was created.
- 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 - create
Async boolean - creation
Type string - data
Guard stringAssociation Id - database
Admin stringPassword - database
Id string The OCID of the reporting database.
- database
Software stringImage Id - delete
Standby stringDb Home On Delete - display
Name string - hostname string
- id string
The OCID of the Data Guard association.
- is
Active booleanData Guard Enabled True if active Data Guard is enabled.
- lifecycle
Details string Additional information about the current lifecycleState, if available.
- 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 - 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.
- subnet
Id string - time
Created string The date and time the Data Guard association was created.
- 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 - create_
async bool - creation_
type str - data_
guard_ strassociation_ id - database_
admin_ strpassword - database_
id str The OCID of the reporting database.
- database_
software_ strimage_ id - delete_
standby_ strdb_ home_ on_ delete - display_
name str - hostname str
- id str
The OCID of the Data Guard association.
- is_
active_ booldata_ guard_ enabled True if active Data Guard is enabled.
- lifecycle_
details str Additional information about the current lifecycleState, if available.
- 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 - 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.
- subnet_
id str - time_
created str The date and time the Data Guard association was created.
- 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 - create
Async Boolean - creation
Type String - data
Guard StringAssociation Id - database
Admin StringPassword - database
Id String The OCID of the reporting database.
- database
Software StringImage Id - delete
Standby StringDb Home On Delete - display
Name String - hostname String
- id String
The OCID of the Data Guard association.
- is
Active BooleanData Guard Enabled True if active Data Guard is enabled.
- lifecycle
Details String Additional information about the current lifecycleState, if available.
- 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 - 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.
- subnet
Id String - time
Created String The date and time the Data Guard association was created.
- 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.