1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getDisasterRecoveryConfiguration
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.29.0 published on Friday, Feb 16, 2024 by Pulumi

azure-native.sql.getDisasterRecoveryConfiguration

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.29.0 published on Friday, Feb 16, 2024 by Pulumi

    Gets a disaster recovery configuration. Azure REST 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:

    DisasterRecoveryConfigurationName string
    The name of the disaster recovery configuration.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    ServerName string
    The name of the server.
    DisasterRecoveryConfigurationName string
    The name of the disaster recovery configuration.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    ServerName string
    The name of the server.
    disasterRecoveryConfigurationName String
    The name of the disaster recovery configuration.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName String
    The name of the server.
    disasterRecoveryConfigurationName string
    The name of the disaster recovery configuration.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName string
    The name of the server.
    disaster_recovery_configuration_name str
    The name of the disaster recovery configuration.
    resource_group_name str
    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.
    disasterRecoveryConfigurationName String
    The name of the disaster recovery configuration.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName String
    The name of the server.

    getDisasterRecoveryConfiguration Result

    The following output properties are available:

    AutoFailover string
    Whether or not failover can be done automatically.
    FailoverPolicy string
    How aggressive the automatic failover should be.
    Id string
    Resource ID.
    Location string
    Location of the server that contains this disaster recovery configuration.
    LogicalServerName string
    Logical name of the server.
    Name string
    Resource name.
    PartnerLogicalServerName string
    Logical name of the partner server.
    PartnerServerId string
    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.
    AutoFailover string
    Whether or not failover can be done automatically.
    FailoverPolicy string
    How aggressive the automatic failover should be.
    Id string
    Resource ID.
    Location string
    Location of the server that contains this disaster recovery configuration.
    LogicalServerName string
    Logical name of the server.
    Name string
    Resource name.
    PartnerLogicalServerName string
    Logical name of the partner server.
    PartnerServerId string
    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.
    autoFailover String
    Whether or not failover can be done automatically.
    failoverPolicy String
    How aggressive the automatic failover should be.
    id String
    Resource ID.
    location String
    Location of the server that contains this disaster recovery configuration.
    logicalServerName String
    Logical name of the server.
    name String
    Resource name.
    partnerLogicalServerName String
    Logical name of the partner server.
    partnerServerId String
    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.
    autoFailover string
    Whether or not failover can be done automatically.
    failoverPolicy string
    How aggressive the automatic failover should be.
    id string
    Resource ID.
    location string
    Location of the server that contains this disaster recovery configuration.
    logicalServerName string
    Logical name of the server.
    name string
    Resource name.
    partnerLogicalServerName string
    Logical name of the partner server.
    partnerServerId string
    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_name str
    Logical name of the server.
    name str
    Resource name.
    partner_logical_server_name str
    Logical name of the partner server.
    partner_server_id str
    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.
    autoFailover String
    Whether or not failover can be done automatically.
    failoverPolicy String
    How aggressive the automatic failover should be.
    id String
    Resource ID.
    location String
    Location of the server that contains this disaster recovery configuration.
    logicalServerName String
    Logical name of the server.
    name String
    Resource name.
    partnerLogicalServerName String
    Logical name of the partner server.
    partnerServerId String
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.29.0 published on Friday, Feb 16, 2024 by Pulumi