azure-native.sql.getDisasterRecoveryConfiguration
Gets a disaster recovery configuration. API Version: 2014-04-01.
Using getDisasterRecoveryConfiguration
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 getDisasterRecoveryConfiguration(args: GetDisasterRecoveryConfigurationArgs, opts?: InvokeOptions): Promise<GetDisasterRecoveryConfigurationResult>
function getDisasterRecoveryConfigurationOutput(args: GetDisasterRecoveryConfigurationOutputArgs, opts?: InvokeOptions): Output<GetDisasterRecoveryConfigurationResult>
def get_disaster_recovery_configuration(disaster_recovery_configuration_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDisasterRecoveryConfigurationResult
def get_disaster_recovery_configuration_output(disaster_recovery_configuration_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
server_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDisasterRecoveryConfigurationResult]
func LookupDisasterRecoveryConfiguration(ctx *Context, args *LookupDisasterRecoveryConfigurationArgs, opts ...InvokeOption) (*LookupDisasterRecoveryConfigurationResult, error)
func LookupDisasterRecoveryConfigurationOutput(ctx *Context, args *LookupDisasterRecoveryConfigurationOutputArgs, opts ...InvokeOption) LookupDisasterRecoveryConfigurationResultOutput
> Note: This function is named LookupDisasterRecoveryConfiguration
in the Go SDK.
public static class GetDisasterRecoveryConfiguration
{
public static Task<GetDisasterRecoveryConfigurationResult> InvokeAsync(GetDisasterRecoveryConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetDisasterRecoveryConfigurationResult> Invoke(GetDisasterRecoveryConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDisasterRecoveryConfigurationResult> getDisasterRecoveryConfiguration(GetDisasterRecoveryConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:sql:getDisasterRecoveryConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- Disaster
Recovery stringConfiguration Name The name of the disaster recovery configuration.
- Resource
Group stringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string The name of the server.
- Disaster
Recovery stringConfiguration Name The name of the disaster recovery configuration.
- Resource
Group stringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string The name of the server.
- disaster
Recovery StringConfiguration Name The name of the disaster recovery configuration.
- resource
Group StringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String The name of the server.
- disaster
Recovery stringConfiguration Name The name of the disaster recovery configuration.
- resource
Group stringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name string The name of the server.
- disaster_
recovery_ strconfiguration_ name The name of the disaster recovery configuration.
- resource_
group_ strname The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server_
name str The name of the server.
- disaster
Recovery StringConfiguration Name The name of the disaster recovery configuration.
- resource
Group StringName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String The name of the server.
getDisasterRecoveryConfiguration Result
The following output properties are available:
- Auto
Failover string Whether or not failover can be done automatically.
- Failover
Policy string How aggressive the automatic failover should be.
- Id string
Resource ID.
- Location string
Location of the server that contains this disaster recovery configuration.
- Logical
Server stringName Logical name of the server.
- Name string
Resource name.
- Partner
Logical stringServer Name Logical name of the partner server.
- Partner
Server stringId Id of the partner server.
- Role string
The role of the current server in the disaster recovery configuration.
- Status string
The status of the disaster recovery configuration.
- Type string
Resource type.
- Auto
Failover string Whether or not failover can be done automatically.
- Failover
Policy string How aggressive the automatic failover should be.
- Id string
Resource ID.
- Location string
Location of the server that contains this disaster recovery configuration.
- Logical
Server stringName Logical name of the server.
- Name string
Resource name.
- Partner
Logical stringServer Name Logical name of the partner server.
- Partner
Server stringId Id of the partner server.
- Role string
The role of the current server in the disaster recovery configuration.
- Status string
The status of the disaster recovery configuration.
- Type string
Resource type.
- auto
Failover String Whether or not failover can be done automatically.
- failover
Policy String How aggressive the automatic failover should be.
- id String
Resource ID.
- location String
Location of the server that contains this disaster recovery configuration.
- logical
Server StringName Logical name of the server.
- name String
Resource name.
- partner
Logical StringServer Name Logical name of the partner server.
- partner
Server StringId Id of the partner server.
- role String
The role of the current server in the disaster recovery configuration.
- status String
The status of the disaster recovery configuration.
- type String
Resource type.
- auto
Failover string Whether or not failover can be done automatically.
- failover
Policy string How aggressive the automatic failover should be.
- id string
Resource ID.
- location string
Location of the server that contains this disaster recovery configuration.
- logical
Server stringName Logical name of the server.
- name string
Resource name.
- partner
Logical stringServer Name Logical name of the partner server.
- partner
Server stringId Id of the partner server.
- role string
The role of the current server in the disaster recovery configuration.
- status string
The status of the disaster recovery configuration.
- type string
Resource type.
- auto_
failover str Whether or not failover can be done automatically.
- failover_
policy str How aggressive the automatic failover should be.
- id str
Resource ID.
- location str
Location of the server that contains this disaster recovery configuration.
- logical_
server_ strname Logical name of the server.
- name str
Resource name.
- partner_
logical_ strserver_ name Logical name of the partner server.
- partner_
server_ strid Id of the partner server.
- role str
The role of the current server in the disaster recovery configuration.
- status str
The status of the disaster recovery configuration.
- type str
Resource type.
- auto
Failover String Whether or not failover can be done automatically.
- failover
Policy String How aggressive the automatic failover should be.
- id String
Resource ID.
- location String
Location of the server that contains this disaster recovery configuration.
- logical
Server StringName Logical name of the server.
- name String
Resource name.
- partner
Logical StringServer Name Logical name of the partner server.
- partner
Server StringId Id of the partner server.
- role String
The role of the current server in the disaster recovery configuration.
- status String
The status of the disaster recovery configuration.
- type String
Resource type.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0