import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing Microsoft Azure SQL Failover Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.mssql.getFailoverGroup({ * name: "example", * serverId: "example-sql-server", * }); * export const mssqlFailoverGroupId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Sql` - 2023-08-01-preview */ export declare function getFailoverGroup(args: GetFailoverGroupArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getFailoverGroup. */ export interface GetFailoverGroupArgs { /** * The name of the Failover Group. */ name: string; /** * The ID of the primary SQL Server where the Failover Group exists. */ serverId: string; } /** * A collection of values returned by getFailoverGroup. */ export interface GetFailoverGroupResult { /** * A set of database names in the Failover Group. */ readonly databases: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * A `partnerServer` block as defined below. */ readonly partnerServers: outputs.mssql.GetFailoverGroupPartnerServer[]; /** * A `readWriteEndpointFailoverPolicy` block as defined below. */ readonly readWriteEndpointFailoverPolicies: outputs.mssql.GetFailoverGroupReadWriteEndpointFailoverPolicy[]; /** * Whether failover is enabled for the readonly endpoint. */ readonly readonlyEndpointFailoverPolicyEnabled: boolean; readonly serverId: string; /** * A mapping of tags which are assigned to the resource. */ readonly tags: { [key: string]: string; }; } /** * Use this data source to access information about an existing Microsoft Azure SQL Failover Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.mssql.getFailoverGroup({ * name: "example", * serverId: "example-sql-server", * }); * export const mssqlFailoverGroupId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Sql` - 2023-08-01-preview */ export declare function getFailoverGroupOutput(args: GetFailoverGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getFailoverGroup. */ export interface GetFailoverGroupOutputArgs { /** * The name of the Failover Group. */ name: pulumi.Input; /** * The ID of the primary SQL Server where the Failover Group exists. */ serverId: pulumi.Input; }