azure-native.sql.getFailoverGroup
Gets a failover group. API Version: 2020-11-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)
// Output-based functions aren't available in Java yet
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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Failover
Policy string Failover policy of the read-only endpoint for the failover group.
- failover
Policy String Failover policy of the read-only endpoint for the failover group.
- failover
Policy 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.
- failover
Policy String Failover policy of the read-only endpoint for the failover group.
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