azure-native.sql.getDistributedAvailabilityGroup
Explore with Pulumi AI
Gets a distributed availability group info.
Uses Azure REST API version 2023-08-01.
Other available API versions: 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 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)
public static Output<GetDistributedAvailabilityGroupResult> getDistributedAvailabilityGroup(GetDistributedAvailabilityGroupArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:sql:getDistributedAvailabilityGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Distributed
Availability stringGroup Name - The distributed availability group name.
- Managed
Instance stringName - The name of the managed instance.
- 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.
- Distributed
Availability stringGroup Name - The distributed availability group name.
- Managed
Instance stringName - The name of the managed instance.
- 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.
- distributed
Availability StringGroup Name - The distributed availability group name.
- managed
Instance StringName - The name of the managed instance.
- 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.
- distributed
Availability stringGroup Name - The distributed availability group name.
- managed
Instance stringName - The name of the managed instance.
- 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.
- distributed_
availability_ strgroup_ name - The distributed availability group name.
- managed_
instance_ strname - The name of the managed instance.
- 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.
- distributed
Availability StringGroup Name - The distributed availability group name.
- managed
Instance StringName - The name of the managed instance.
- 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.
getDistributedAvailabilityGroup Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Distributed
Availability stringGroup Id - ID of the distributed availability group
- Distributed
Availability stringGroup Name - Name of the distributed availability group
- Id string
- Resource ID.
- Name string
- Resource name.
- Partner
Link stringRole - SQL server side link role
- Type string
- Resource type.
- Databases
List<Pulumi.
Azure Native. Sql. Outputs. Distributed Availability Group Database Response> - Databases in the distributed availability group
- Failover
Mode string - The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.
- Instance
Availability stringGroup Name - Managed instance side availability group name
- Instance
Link stringRole - Managed instance side link role
- Partner
Availability stringGroup Name - SQL server side availability group name
- Partner
Endpoint string - SQL server side endpoint - IP or DNS resolvable name
- Replication
Mode string - Replication mode of the link
- Seeding
Mode string - Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
- Azure
Api stringVersion - The Azure API version of the resource.
- Distributed
Availability stringGroup Id - ID of the distributed availability group
- Distributed
Availability stringGroup Name - Name of the distributed availability group
- Id string
- Resource ID.
- Name string
- Resource name.
- Partner
Link stringRole - SQL server side link role
- Type string
- Resource type.
- Databases
[]Distributed
Availability Group Database Response - Databases in the distributed availability group
- Failover
Mode string - The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.
- Instance
Availability stringGroup Name - Managed instance side availability group name
- Instance
Link stringRole - Managed instance side link role
- Partner
Availability stringGroup Name - SQL server side availability group name
- Partner
Endpoint string - SQL server side endpoint - IP or DNS resolvable name
- Replication
Mode string - Replication mode of the link
- Seeding
Mode string - Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
- azure
Api StringVersion - The Azure API version of the resource.
- distributed
Availability StringGroup Id - ID of the distributed availability group
- distributed
Availability StringGroup Name - Name of the distributed availability group
- id String
- Resource ID.
- name String
- Resource name.
- partner
Link StringRole - SQL server side link role
- type String
- Resource type.
- databases
List<Distributed
Availability Group Database Response> - Databases in the distributed availability group
- failover
Mode String - The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.
- instance
Availability StringGroup Name - Managed instance side availability group name
- instance
Link StringRole - Managed instance side link role
- partner
Availability StringGroup Name - SQL server side availability group name
- partner
Endpoint String - SQL server side endpoint - IP or DNS resolvable name
- replication
Mode String - Replication mode of the link
- seeding
Mode String - Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
- azure
Api stringVersion - The Azure API version of the resource.
- distributed
Availability stringGroup Id - ID of the distributed availability group
- distributed
Availability stringGroup Name - Name of the distributed availability group
- id string
- Resource ID.
- name string
- Resource name.
- partner
Link stringRole - SQL server side link role
- type string
- Resource type.
- databases
Distributed
Availability Group Database Response[] - Databases in the distributed availability group
- failover
Mode string - The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.
- instance
Availability stringGroup Name - Managed instance side availability group name
- instance
Link stringRole - Managed instance side link role
- partner
Availability stringGroup Name - SQL server side availability group name
- partner
Endpoint string - SQL server side endpoint - IP or DNS resolvable name
- replication
Mode string - Replication mode of the link
- seeding
Mode string - Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
- azure_
api_ strversion - The Azure API version of the resource.
- distributed_
availability_ strgroup_ id - ID of the distributed availability group
- distributed_
availability_ strgroup_ name - Name of the distributed availability group
- id str
- Resource ID.
- name str
- Resource name.
- partner_
link_ strrole - SQL server side link role
- type str
- Resource type.
- databases
Sequence[Distributed
Availability Group Database Response] - Databases in the distributed availability group
- failover_
mode str - The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.
- instance_
availability_ strgroup_ name - Managed instance side availability group name
- instance_
link_ strrole - Managed instance side link role
- partner_
availability_ strgroup_ name - SQL server side availability group name
- partner_
endpoint str - SQL server side endpoint - IP or DNS resolvable name
- replication_
mode str - Replication mode of the link
- seeding_
mode str - Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
- azure
Api StringVersion - The Azure API version of the resource.
- distributed
Availability StringGroup Id - ID of the distributed availability group
- distributed
Availability StringGroup Name - Name of the distributed availability group
- id String
- Resource ID.
- name String
- Resource name.
- partner
Link StringRole - SQL server side link role
- type String
- Resource type.
- databases List<Property Map>
- Databases in the distributed availability group
- failover
Mode String - The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure.
- instance
Availability StringGroup Name - Managed instance side availability group name
- instance
Link StringRole - Managed instance side link role
- partner
Availability StringGroup Name - SQL server side availability group name
- partner
Endpoint String - SQL server side endpoint - IP or DNS resolvable name
- replication
Mode String - Replication mode of the link
- seeding
Mode String - Database seeding mode – can be Automatic (default), or Manual for supported scenarios.
Supporting Types
CertificateInfoResponse
- Certificate
Name string - The certificate name
- Expiry
Date string - The certificate expiry date
- Certificate
Name string - The certificate name
- Expiry
Date string - The certificate expiry date
- certificate
Name String - The certificate name
- expiry
Date String - The certificate expiry date
- certificate
Name string - The certificate name
- expiry
Date string - The certificate expiry date
- certificate_
name str - The certificate name
- expiry_
date str - The certificate expiry date
- certificate
Name String - The certificate name
- expiry
Date String - The certificate expiry date
DistributedAvailabilityGroupDatabaseResponse
- Connected
State string - Link connected state
- Instance
Redo intReplication Lag Seconds - Redo lag when Managed Instance link side is primary
- Instance
Replica stringId - Managed instance replica id
- Instance
Send intReplication Lag Seconds - Replication lag when Managed Instance link side is primary
- Last
Backup stringLsn - Last backup LSN
- Last
Backup stringTime - Last backup LSN time
- Last
Commit stringLsn - Last commit LSN
- Last
Commit stringTime - Last commit LSN time
- Last
Hardened stringLsn - Last hardened LSN
- Last
Hardened stringTime - Last hardened LSN time
- Last
Received stringLsn - Last received LSN
- Last
Received stringTime - Last received LSN time
- Last
Sent stringLsn - Last sent LSN
- Last
Sent stringTime - Last sent LSN time
- Most
Recent stringLink Error - The most recent link connection error description
- Partner
Auth Pulumi.Cert Validity Azure Native. Sql. Inputs. Certificate Info Response - SQL server certificate validity
- Partner
Replica stringId - SQL server replica id
- Replica
State string - Current link state
- Seeding
Progress string - Seeding progress
- Synchronization
Health string - Link health state
- Database
Name string - The name of the database in link
- Connected
State string - Link connected state
- Instance
Redo intReplication Lag Seconds - Redo lag when Managed Instance link side is primary
- Instance
Replica stringId - Managed instance replica id
- Instance
Send intReplication Lag Seconds - Replication lag when Managed Instance link side is primary
- Last
Backup stringLsn - Last backup LSN
- Last
Backup stringTime - Last backup LSN time
- Last
Commit stringLsn - Last commit LSN
- Last
Commit stringTime - Last commit LSN time
- Last
Hardened stringLsn - Last hardened LSN
- Last
Hardened stringTime - Last hardened LSN time
- Last
Received stringLsn - Last received LSN
- Last
Received stringTime - Last received LSN time
- Last
Sent stringLsn - Last sent LSN
- Last
Sent stringTime - Last sent LSN time
- Most
Recent stringLink Error - The most recent link connection error description
- Partner
Auth CertificateCert Validity Info Response - SQL server certificate validity
- Partner
Replica stringId - SQL server replica id
- Replica
State string - Current link state
- Seeding
Progress string - Seeding progress
- Synchronization
Health string - Link health state
- Database
Name string - The name of the database in link
- connected
State String - Link connected state
- instance
Redo IntegerReplication Lag Seconds - Redo lag when Managed Instance link side is primary
- instance
Replica StringId - Managed instance replica id
- instance
Send IntegerReplication Lag Seconds - Replication lag when Managed Instance link side is primary
- last
Backup StringLsn - Last backup LSN
- last
Backup StringTime - Last backup LSN time
- last
Commit StringLsn - Last commit LSN
- last
Commit StringTime - Last commit LSN time
- last
Hardened StringLsn - Last hardened LSN
- last
Hardened StringTime - Last hardened LSN time
- last
Received StringLsn - Last received LSN
- last
Received StringTime - Last received LSN time
- last
Sent StringLsn - Last sent LSN
- last
Sent StringTime - Last sent LSN time
- most
Recent StringLink Error - The most recent link connection error description
- partner
Auth CertificateCert Validity Info Response - SQL server certificate validity
- partner
Replica StringId - SQL server replica id
- replica
State String - Current link state
- seeding
Progress String - Seeding progress
- synchronization
Health String - Link health state
- database
Name String - The name of the database in link
- connected
State string - Link connected state
- instance
Redo numberReplication Lag Seconds - Redo lag when Managed Instance link side is primary
- instance
Replica stringId - Managed instance replica id
- instance
Send numberReplication Lag Seconds - Replication lag when Managed Instance link side is primary
- last
Backup stringLsn - Last backup LSN
- last
Backup stringTime - Last backup LSN time
- last
Commit stringLsn - Last commit LSN
- last
Commit stringTime - Last commit LSN time
- last
Hardened stringLsn - Last hardened LSN
- last
Hardened stringTime - Last hardened LSN time
- last
Received stringLsn - Last received LSN
- last
Received stringTime - Last received LSN time
- last
Sent stringLsn - Last sent LSN
- last
Sent stringTime - Last sent LSN time
- most
Recent stringLink Error - The most recent link connection error description
- partner
Auth CertificateCert Validity Info Response - SQL server certificate validity
- partner
Replica stringId - SQL server replica id
- replica
State string - Current link state
- seeding
Progress string - Seeding progress
- synchronization
Health string - Link health state
- database
Name string - The name of the database in link
- connected_
state str - Link connected state
- instance_
redo_ intreplication_ lag_ seconds - Redo lag when Managed Instance link side is primary
- instance_
replica_ strid - Managed instance replica id
- instance_
send_ intreplication_ lag_ seconds - Replication lag when Managed Instance link side is primary
- last_
backup_ strlsn - Last backup LSN
- last_
backup_ strtime - Last backup LSN time
- last_
commit_ strlsn - Last commit LSN
- last_
commit_ strtime - Last commit LSN time
- last_
hardened_ strlsn - Last hardened LSN
- last_
hardened_ strtime - Last hardened LSN time
- last_
received_ strlsn - Last received LSN
- last_
received_ strtime - Last received LSN time
- last_
sent_ strlsn - Last sent LSN
- last_
sent_ strtime - Last sent LSN time
- most_
recent_ strlink_ error - The most recent link connection error description
- partner_
auth_ Certificatecert_ validity Info Response - SQL server certificate validity
- partner_
replica_ strid - SQL server replica id
- replica_
state str - Current link state
- seeding_
progress str - Seeding progress
- synchronization_
health str - Link health state
- database_
name str - The name of the database in link
- connected
State String - Link connected state
- instance
Redo NumberReplication Lag Seconds - Redo lag when Managed Instance link side is primary
- instance
Replica StringId - Managed instance replica id
- instance
Send NumberReplication Lag Seconds - Replication lag when Managed Instance link side is primary
- last
Backup StringLsn - Last backup LSN
- last
Backup StringTime - Last backup LSN time
- last
Commit StringLsn - Last commit LSN
- last
Commit StringTime - Last commit LSN time
- last
Hardened StringLsn - Last hardened LSN
- last
Hardened StringTime - Last hardened LSN time
- last
Received StringLsn - Last received LSN
- last
Received StringTime - Last received LSN time
- last
Sent StringLsn - Last sent LSN
- last
Sent StringTime - Last sent LSN time
- most
Recent StringLink Error - The most recent link connection error description
- partner
Auth Property MapCert Validity - SQL server certificate validity
- partner
Replica StringId - SQL server replica id
- replica
State String - Current link state
- seeding
Progress String - Seeding progress
- synchronization
Health String - Link health state
- database
Name String - The name of the database in link
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0