azure-native.sql.getDistributedAvailabilityGroup

Explore with Pulumi AI

Gets a distributed availability group info. API Version: 2021-05-01-preview.

Using getDistributedAvailabilityGroup

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 getDistributedAvailabilityGroup(args: GetDistributedAvailabilityGroupArgs, opts?: InvokeOptions): Promise<GetDistributedAvailabilityGroupResult>
function getDistributedAvailabilityGroupOutput(args: GetDistributedAvailabilityGroupOutputArgs, opts?: InvokeOptions): Output<GetDistributedAvailabilityGroupResult>
def get_distributed_availability_group(distributed_availability_group_name: Optional[str] = None,
                                       managed_instance_name: Optional[str] = None,
                                       resource_group_name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetDistributedAvailabilityGroupResult
def get_distributed_availability_group_output(distributed_availability_group_name: Optional[pulumi.Input[str]] = None,
                                       managed_instance_name: Optional[pulumi.Input[str]] = None,
                                       resource_group_name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetDistributedAvailabilityGroupResult]
func LookupDistributedAvailabilityGroup(ctx *Context, args *LookupDistributedAvailabilityGroupArgs, opts ...InvokeOption) (*LookupDistributedAvailabilityGroupResult, error)
func LookupDistributedAvailabilityGroupOutput(ctx *Context, args *LookupDistributedAvailabilityGroupOutputArgs, opts ...InvokeOption) LookupDistributedAvailabilityGroupResultOutput

> Note: This function is named LookupDistributedAvailabilityGroup in the Go SDK.

public static class GetDistributedAvailabilityGroup 
{
    public static Task<GetDistributedAvailabilityGroupResult> InvokeAsync(GetDistributedAvailabilityGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetDistributedAvailabilityGroupResult> Invoke(GetDistributedAvailabilityGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDistributedAvailabilityGroupResult> getDistributedAvailabilityGroup(GetDistributedAvailabilityGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure-native:sql:getDistributedAvailabilityGroup
  arguments:
    # arguments dictionary

The following arguments are supported:

DistributedAvailabilityGroupName string

The distributed availability group name.

ManagedInstanceName string

The name of the managed instance.

ResourceGroupName 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.

DistributedAvailabilityGroupName string

The distributed availability group name.

ManagedInstanceName string

The name of the managed instance.

ResourceGroupName 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.

distributedAvailabilityGroupName String

The distributed availability group name.

managedInstanceName String

The name of the managed instance.

resourceGroupName 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.

distributedAvailabilityGroupName string

The distributed availability group name.

managedInstanceName string

The name of the managed instance.

resourceGroupName 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.

distributed_availability_group_name str

The distributed availability group name.

managed_instance_name str

The name of the managed instance.

resource_group_name str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

distributedAvailabilityGroupName String

The distributed availability group name.

managedInstanceName String

The name of the managed instance.

resourceGroupName 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.

getDistributedAvailabilityGroup Result

The following output properties are available:

DistributedAvailabilityGroupId string

The distributed availability group id

Id string

Resource ID.

LastHardenedLsn string

The last hardened lsn

LinkState string

The link state

Name string

Resource name.

SourceReplicaId string

The source replica id

TargetReplicaId string

The target replica id

Type string

Resource type.

PrimaryAvailabilityGroupName string

The primary availability group name

ReplicationMode string

The replication mode of a distributed availability group. Parameter will be ignored during link creation.

SecondaryAvailabilityGroupName string

The secondary availability group name

SourceEndpoint string

The source endpoint

TargetDatabase string

The name of the target database

DistributedAvailabilityGroupId string

The distributed availability group id

Id string

Resource ID.

LastHardenedLsn string

The last hardened lsn

LinkState string

The link state

Name string

Resource name.

SourceReplicaId string

The source replica id

TargetReplicaId string

The target replica id

Type string

Resource type.

PrimaryAvailabilityGroupName string

The primary availability group name

ReplicationMode string

The replication mode of a distributed availability group. Parameter will be ignored during link creation.

SecondaryAvailabilityGroupName string

The secondary availability group name

SourceEndpoint string

The source endpoint

TargetDatabase string

The name of the target database

distributedAvailabilityGroupId String

The distributed availability group id

id String

Resource ID.

lastHardenedLsn String

The last hardened lsn

linkState String

The link state

name String

Resource name.

sourceReplicaId String

The source replica id

targetReplicaId String

The target replica id

type String

Resource type.

primaryAvailabilityGroupName String

The primary availability group name

replicationMode String

The replication mode of a distributed availability group. Parameter will be ignored during link creation.

secondaryAvailabilityGroupName String

The secondary availability group name

sourceEndpoint String

The source endpoint

targetDatabase String

The name of the target database

distributedAvailabilityGroupId string

The distributed availability group id

id string

Resource ID.

lastHardenedLsn string

The last hardened lsn

linkState string

The link state

name string

Resource name.

sourceReplicaId string

The source replica id

targetReplicaId string

The target replica id

type string

Resource type.

primaryAvailabilityGroupName string

The primary availability group name

replicationMode string

The replication mode of a distributed availability group. Parameter will be ignored during link creation.

secondaryAvailabilityGroupName string

The secondary availability group name

sourceEndpoint string

The source endpoint

targetDatabase string

The name of the target database

distributed_availability_group_id str

The distributed availability group id

id str

Resource ID.

last_hardened_lsn str

The last hardened lsn

link_state str

The link state

name str

Resource name.

source_replica_id str

The source replica id

target_replica_id str

The target replica id

type str

Resource type.

primary_availability_group_name str

The primary availability group name

replication_mode str

The replication mode of a distributed availability group. Parameter will be ignored during link creation.

secondary_availability_group_name str

The secondary availability group name

source_endpoint str

The source endpoint

target_database str

The name of the target database

distributedAvailabilityGroupId String

The distributed availability group id

id String

Resource ID.

lastHardenedLsn String

The last hardened lsn

linkState String

The link state

name String

Resource name.

sourceReplicaId String

The source replica id

targetReplicaId String

The target replica id

type String

Resource type.

primaryAvailabilityGroupName String

The primary availability group name

replicationMode String

The replication mode of a distributed availability group. Parameter will be ignored during link creation.

secondaryAvailabilityGroupName String

The secondary availability group name

sourceEndpoint String

The source endpoint

targetDatabase String

The name of the target database

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0