Oracle Cloud Infrastructure
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 Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testDataGuardAssociations = Output.Create(Oci.Database.GetDataGuardAssociations.InvokeAsync(new Oci.Database.GetDataGuardAssociationsArgs
{
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
})
}
Coming soon!
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,
});
Coming soon!
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 - Create
Async bool - Creation
Type string - Database
Admin stringPassword - Database
Id string The database OCID.
- 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 - Database
Admin stringPassword - Database
Id string The database OCID.
- 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 - database
Admin StringPassword - database
Id String The database OCID.
- 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 - database
Admin stringPassword - database
Id string The database OCID.
- 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 - database_
admin_ strpassword - database_
id str The database OCID.
- 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 - database
Admin StringPassword - database
Id String The database OCID.
- 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.
GetDataGuardAssociationsFilter
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.