This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getSyncMember.go
64 lines (59 loc) · 2.62 KB
/
getSyncMember.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20200202preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupSyncMember(ctx *pulumi.Context, args *LookupSyncMemberArgs, opts ...pulumi.InvokeOption) (*LookupSyncMemberResult, error) {
var rv LookupSyncMemberResult
err := ctx.Invoke("azure-nextgen:sql/v20200202preview:getSyncMember", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupSyncMemberArgs struct {
// The name of the database on which the sync group is hosted.
DatabaseName string `pulumi:"databaseName"`
// 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 `pulumi:"resourceGroupName"`
// The name of the server.
ServerName string `pulumi:"serverName"`
// The name of the sync group on which the sync member is hosted.
SyncGroupName string `pulumi:"syncGroupName"`
// The name of the sync member.
SyncMemberName string `pulumi:"syncMemberName"`
}
// An Azure SQL Database sync member.
type LookupSyncMemberResult struct {
// Database name of the member database in the sync member.
DatabaseName *string `pulumi:"databaseName"`
// Database type of the sync member.
DatabaseType *string `pulumi:"databaseType"`
// Resource ID.
Id string `pulumi:"id"`
// Resource name.
Name string `pulumi:"name"`
// Password of the member database in the sync member.
Password *string `pulumi:"password"`
// Private endpoint name of the sync member if use private link connection is enabled, for sync members in Azure.
PrivateEndpointName string `pulumi:"privateEndpointName"`
// Server name of the member database in the sync member
ServerName *string `pulumi:"serverName"`
// SQL Server database id of the sync member.
SqlServerDatabaseId *string `pulumi:"sqlServerDatabaseId"`
// ARM resource id of the sync agent in the sync member.
SyncAgentId *string `pulumi:"syncAgentId"`
// Sync direction of the sync member.
SyncDirection *string `pulumi:"syncDirection"`
// ARM resource id of the sync member logical database, for sync members in Azure.
SyncMemberAzureDatabaseResourceId *string `pulumi:"syncMemberAzureDatabaseResourceId"`
// Sync state of the sync member.
SyncState string `pulumi:"syncState"`
// Resource type.
Type string `pulumi:"type"`
// Whether to use private link connection.
UsePrivateLinkConnection *bool `pulumi:"usePrivateLinkConnection"`
// User name of the member database in the sync member.
UserName *string `pulumi:"userName"`
}