UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

96 lines (95 loc) 4.14 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a failover group. * * Uses Azure REST API version 2023-08-01. * * Other available API versions: 2017-10-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, 2024-11-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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getInstanceFailoverGroup(args: GetInstanceFailoverGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceFailoverGroupResult>; export interface GetInstanceFailoverGroupArgs { /** * The name of the failover group. */ failoverGroupName: string; /** * The name of the region where the resource is located. */ locationName: 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. */ resourceGroupName: string; } /** * An instance failover group. */ export interface GetInstanceFailoverGroupResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Resource ID. */ readonly id: string; /** * List of managed instance pairs in the failover group. */ readonly managedInstancePairs: outputs.sql.ManagedInstancePairInfoResponse[]; /** * Resource name. */ readonly name: string; /** * Partner region information for the failover group. */ readonly partnerRegions: outputs.sql.PartnerRegionInfoResponse[]; /** * Read-only endpoint of the failover group instance. */ readonly readOnlyEndpoint?: outputs.sql.InstanceFailoverGroupReadOnlyEndpointResponse; /** * Read-write endpoint of the failover group instance. */ readonly readWriteEndpoint: outputs.sql.InstanceFailoverGroupReadWriteEndpointResponse; /** * Local replication role of the failover group instance. */ readonly replicationRole: string; /** * Replication state of the failover group instance. */ readonly replicationState: string; /** * Type of the geo-secondary instance. Set 'Standby' if the instance is used as a DR option only. */ readonly secondaryType?: string; /** * Resource type. */ readonly type: string; } /** * Gets a failover group. * * Uses Azure REST API version 2023-08-01. * * Other available API versions: 2017-10-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, 2024-11-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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getInstanceFailoverGroupOutput(args: GetInstanceFailoverGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceFailoverGroupResult>; export interface GetInstanceFailoverGroupOutputArgs { /** * The name of the failover group. */ failoverGroupName: pulumi.Input<string>; /** * The name of the region where the resource is located. */ locationName: pulumi.Input<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. */ resourceGroupName: pulumi.Input<string>; }