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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.sql.getFailoverGroup
Explore with Pulumi AI
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a failover group. Azure REST API version: 2021-11-01.
Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Using getFailoverGroup
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 getFailoverGroup(args: GetFailoverGroupArgs, opts?: InvokeOptions): Promise<GetFailoverGroupResult>
function getFailoverGroupOutput(args: GetFailoverGroupOutputArgs, opts?: InvokeOptions): Output<GetFailoverGroupResult>def get_failover_group(failover_group_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       server_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetFailoverGroupResult
def get_failover_group_output(failover_group_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[GetFailoverGroupResult]func LookupFailoverGroup(ctx *Context, args *LookupFailoverGroupArgs, opts ...InvokeOption) (*LookupFailoverGroupResult, error)
func LookupFailoverGroupOutput(ctx *Context, args *LookupFailoverGroupOutputArgs, opts ...InvokeOption) LookupFailoverGroupResultOutput> Note: This function is named LookupFailoverGroup in the Go SDK.
public static class GetFailoverGroup 
{
    public static Task<GetFailoverGroupResult> InvokeAsync(GetFailoverGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetFailoverGroupResult> Invoke(GetFailoverGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFailoverGroupResult> getFailoverGroup(GetFailoverGroupArgs args, InvokeOptions options)
public static Output<GetFailoverGroupResult> getFailoverGroup(GetFailoverGroupArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getFailoverGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FailoverGroup stringName 
- The name of the failover group.
- ResourceGroup 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.
- ServerName string
- The name of the server containing the failover group.
- FailoverGroup stringName 
- The name of the failover group.
- ResourceGroup 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.
- ServerName string
- The name of the server containing the failover group.
- failoverGroup StringName 
- The name of the failover group.
- resourceGroup 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.
- serverName String
- The name of the server containing the failover group.
- failoverGroup stringName 
- The name of the failover group.
- resourceGroup 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.
- serverName string
- The name of the server containing the failover group.
- failover_group_ strname 
- The name of the failover group.
- 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 containing the failover group.
- failoverGroup StringName 
- The name of the failover group.
- resourceGroup 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.
- serverName String
- The name of the server containing the failover group.
getFailoverGroup Result
The following output properties are available:
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- Resource name.
- PartnerServers List<Pulumi.Azure Native. Sql. Outputs. Partner Info Response> 
- List of partner server information for the failover group.
- ReadWrite Pulumi.Endpoint Azure Native. Sql. Outputs. Failover Group Read Write Endpoint Response 
- Read-write endpoint of the failover group instance.
- ReplicationRole string
- Local replication role of the failover group instance.
- ReplicationState string
- Replication state of the failover group instance.
- Type string
- Resource type.
- Databases List<string>
- List of databases in the failover group.
- ReadOnly Pulumi.Endpoint Azure Native. Sql. Outputs. Failover Group Read Only Endpoint Response 
- Read-only endpoint of the failover group instance.
- Dictionary<string, string>
- Resource tags.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- Resource name.
- PartnerServers []PartnerInfo Response 
- List of partner server information for the failover group.
- ReadWrite FailoverEndpoint Group Read Write Endpoint Response 
- Read-write endpoint of the failover group instance.
- ReplicationRole string
- Local replication role of the failover group instance.
- ReplicationState string
- Replication state of the failover group instance.
- Type string
- Resource type.
- Databases []string
- List of databases in the failover group.
- ReadOnly FailoverEndpoint Group Read Only Endpoint Response 
- Read-only endpoint of the failover group instance.
- map[string]string
- Resource tags.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- Resource name.
- partnerServers List<PartnerInfo Response> 
- List of partner server information for the failover group.
- readWrite FailoverEndpoint Group Read Write Endpoint Response 
- Read-write endpoint of the failover group instance.
- replicationRole String
- Local replication role of the failover group instance.
- replicationState String
- Replication state of the failover group instance.
- type String
- Resource type.
- databases List<String>
- List of databases in the failover group.
- readOnly FailoverEndpoint Group Read Only Endpoint Response 
- Read-only endpoint of the failover group instance.
- Map<String,String>
- Resource tags.
- id string
- Resource ID.
- location string
- Resource location.
- name string
- Resource name.
- partnerServers PartnerInfo Response[] 
- List of partner server information for the failover group.
- readWrite FailoverEndpoint Group Read Write Endpoint Response 
- Read-write endpoint of the failover group instance.
- replicationRole string
- Local replication role of the failover group instance.
- replicationState string
- Replication state of the failover group instance.
- type string
- Resource type.
- databases string[]
- List of databases in the failover group.
- readOnly FailoverEndpoint Group Read Only Endpoint Response 
- Read-only endpoint of the failover group instance.
- {[key: string]: string}
- Resource tags.
- id str
- Resource ID.
- location str
- Resource location.
- name str
- Resource name.
- partner_servers Sequence[PartnerInfo Response] 
- List of partner server information for the failover group.
- read_write_ Failoverendpoint Group Read Write Endpoint Response 
- Read-write endpoint of the failover group instance.
- replication_role str
- Local replication role of the failover group instance.
- replication_state str
- Replication state of the failover group instance.
- type str
- Resource type.
- databases Sequence[str]
- List of databases in the failover group.
- read_only_ Failoverendpoint Group Read Only Endpoint Response 
- Read-only endpoint of the failover group instance.
- Mapping[str, str]
- Resource tags.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- Resource name.
- partnerServers List<Property Map>
- List of partner server information for the failover group.
- readWrite Property MapEndpoint 
- Read-write endpoint of the failover group instance.
- replicationRole String
- Local replication role of the failover group instance.
- replicationState String
- Replication state of the failover group instance.
- type String
- Resource type.
- databases List<String>
- List of databases in the failover group.
- readOnly Property MapEndpoint 
- Read-only endpoint of the failover group instance.
- Map<String>
- Resource tags.
Supporting Types
FailoverGroupReadOnlyEndpointResponse     
- FailoverPolicy string
- Failover policy of the read-only endpoint for the failover group.
- FailoverPolicy string
- Failover policy of the read-only endpoint for the failover group.
- failoverPolicy String
- Failover policy of the read-only endpoint for the failover group.
- failoverPolicy string
- Failover policy of the read-only endpoint for the failover group.
- failover_policy str
- Failover policy of the read-only endpoint for the failover group.
- failoverPolicy String
- Failover policy of the read-only endpoint for the failover group.
FailoverGroupReadWriteEndpointResponse     
- FailoverPolicy string
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- FailoverWith intData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- FailoverPolicy string
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- FailoverWith intData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverPolicy String
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverWith IntegerData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverPolicy string
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverWith numberData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover_policy str
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover_with_ intdata_ loss_ grace_ period_ minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverPolicy String
- Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failoverWith NumberData Loss Grace Period Minutes 
- Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
PartnerInfoResponse  
- Id string
- Resource identifier of the partner server.
- Location string
- Geo location of the partner server.
- ReplicationRole string
- Replication role of the partner server.
- Id string
- Resource identifier of the partner server.
- Location string
- Geo location of the partner server.
- ReplicationRole string
- Replication role of the partner server.
- id String
- Resource identifier of the partner server.
- location String
- Geo location of the partner server.
- replicationRole String
- Replication role of the partner server.
- id string
- Resource identifier of the partner server.
- location string
- Geo location of the partner server.
- replicationRole string
- Replication role of the partner server.
- id str
- Resource identifier of the partner server.
- location str
- Geo location of the partner server.
- replication_role str
- Replication role of the partner server.
- id String
- Resource identifier of the partner server.
- location String
- Geo location of the partner server.
- replicationRole String
- Replication role of the partner server.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi