azure-native.sql.getFailoverGroup
Explore with Pulumi AI
Gets a failover group.
Uses Azure REST API version 2023-08-01.
Other available API versions: 2015-05-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]
. See the version guide for details.
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 dictionary
The following arguments are supported:
- Failover
Group stringName - The name of the failover group.
- 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 containing the failover group.
- Failover
Group stringName - The name of the failover group.
- 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 containing the failover group.
- failover
Group StringName - The name of the failover group.
- 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 containing the failover group.
- failover
Group stringName - The name of the failover group.
- 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 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.
- failover
Group StringName - The name of the failover group.
- 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 containing the failover group.
getFailoverGroup Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- Resource name.
- Partner
Servers List<Pulumi.Azure Native. Sql. Outputs. Partner Info Response> - List of partner server information for the failover group.
- Read
Write Pulumi.Endpoint Azure Native. Sql. Outputs. Failover Group Read Write Endpoint Response - Read-write endpoint of the failover group instance.
- Replication
Role string - Local replication role of the failover group instance.
- Replication
State string - Replication state of the failover group instance.
- Type string
- Resource type.
- Databases List<string>
- List of databases in the failover group.
- Read
Only 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.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource ID.
- Location string
- Resource location.
- Name string
- Resource name.
- Partner
Servers []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 string - Local replication role of the failover group instance.
- Replication
State string - Replication state of the failover group instance.
- Type string
- Resource type.
- Databases []string
- List of databases in the failover group.
- Read
Only FailoverEndpoint Group Read Only Endpoint Response - Read-only endpoint of the failover group instance.
- map[string]string
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- Resource name.
- partner
Servers List<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 String - Local replication role of the failover group instance.
- replication
State String - Replication state of the failover group instance.
- type String
- Resource type.
- databases List<String>
- List of databases in the failover group.
- read
Only FailoverEndpoint Group Read Only Endpoint Response - Read-only endpoint of the failover group instance.
- Map<String,String>
- Resource tags.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Resource ID.
- location string
- Resource location.
- name string
- Resource name.
- partner
Servers 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 string - Local replication role of the failover group instance.
- replication
State string - Replication state of the failover group instance.
- type string
- Resource type.
- databases string[]
- List of databases in the failover group.
- read
Only FailoverEndpoint Group Read Only Endpoint Response - Read-only endpoint of the failover group instance.
- {[key: string]: string}
- Resource tags.
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource ID.
- location String
- Resource location.
- name String
- Resource name.
- partner
Servers List<Property Map> - List of partner server information for the failover group.
- read
Write Property MapEndpoint - Read-write endpoint of the failover group instance.
- replication
Role String - Local replication role of the failover group instance.
- replication
State String - Replication state of the failover group instance.
- type String
- Resource type.
- databases List<String>
- List of databases in the failover group.
- read
Only Property MapEndpoint - Read-only endpoint of the failover group instance.
- Map<String>
- Resource tags.
Supporting Types
FailoverGroupReadOnlyEndpointResponse
- Failover
Policy string - Failover policy of the read-only endpoint for the failover group.
- Target
Server string - The target partner server where the read-only endpoint points to.
- Failover
Policy string - Failover policy of the read-only endpoint for the failover group.
- Target
Server string - The target partner server where the read-only endpoint points to.
- failover
Policy String - Failover policy of the read-only endpoint for the failover group.
- target
Server String - The target partner server where the read-only endpoint points to.
- failover
Policy string - Failover policy of the read-only endpoint for the failover group.
- target
Server string - The target partner server where the read-only endpoint points to.
- failover_
policy str - Failover policy of the read-only endpoint for the failover group.
- target_
server str - The target partner server where the read-only endpoint points to.
- failover
Policy String - Failover policy of the read-only endpoint for the failover group.
- target
Server String - The target partner server where the read-only endpoint points to.
FailoverGroupReadWriteEndpointResponse
- Failover
Policy string - 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.
- Failover
Policy string - 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.
- failover
Policy String - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover
With 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.
- failover
Policy string - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover
With 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.
- failover
Policy String - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
- failover
With 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.
- Replication
Role string - Replication role of the partner server.
- Id string
- Resource identifier of the partner server.
- Location string
- Geo location of the partner server.
- Replication
Role string - Replication role of the partner server.
- id String
- Resource identifier of the partner server.
- location String
- Geo location of the partner server.
- replication
Role String - Replication role of the partner server.
- id string
- Resource identifier of the partner server.
- location string
- Geo location of the partner server.
- replication
Role 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.
- replication
Role String - Replication role of the partner server.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0