SyncMemberArgs

data class SyncMemberArgs(val databaseName: Output<String>? = null, val databaseType: Output<Either<String, SyncMemberDbType>>? = null, val password: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serverName: Output<String>? = null, val sqlServerDatabaseId: Output<String>? = null, val syncAgentId: Output<String>? = null, val syncDirection: Output<Either<String, SyncDirection>>? = null, val syncGroupName: Output<String>? = null, val syncMemberAzureDatabaseResourceId: Output<String>? = null, val syncMemberName: Output<String>? = null, val usePrivateLinkConnection: Output<Boolean>? = null, val userName: Output<String>? = null) : ConvertibleToJava<SyncMemberArgs>

An Azure SQL Database sync member. Uses Azure REST API version 2021-11-01. In version 1.x of the Azure Native provider, it used API version 2020-11-01-preview. Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01, 2023-08-01-preview, 2024-05-01-preview.

Example Usage

Create a new sync member

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var syncMember = new AzureNative.Sql.SyncMember("syncMember", new()
{
DatabaseName = "syncgroupcrud-7421",
DatabaseType = AzureNative.Sql.SyncMemberDbType.AzureSqlDatabase,
ResourceGroupName = "syncgroupcrud-65440",
ServerName = "syncgroupcrud-8475",
SyncDirection = AzureNative.Sql.SyncDirection.Bidirectional,
SyncGroupName = "syncgroupcrud-3187",
SyncMemberAzureDatabaseResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
SyncMemberName = "syncmembercrud-4879",
UsePrivateLinkConnection = true,
UserName = "myUser",
});
});
package main
import (
sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewSyncMember(ctx, "syncMember", &sql.SyncMemberArgs{
DatabaseName: pulumi.String("syncgroupcrud-7421"),
DatabaseType: pulumi.String(sql.SyncMemberDbTypeAzureSqlDatabase),
ResourceGroupName: pulumi.String("syncgroupcrud-65440"),
ServerName: pulumi.String("syncgroupcrud-8475"),
SyncDirection: pulumi.String(sql.SyncDirectionBidirectional),
SyncGroupName: pulumi.String("syncgroupcrud-3187"),
SyncMemberAzureDatabaseResourceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"),
SyncMemberName: pulumi.String("syncmembercrud-4879"),
UsePrivateLinkConnection: pulumi.Bool(true),
UserName: pulumi.String("myUser"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.SyncMember;
import com.pulumi.azurenative.sql.SyncMemberArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var syncMember = new SyncMember("syncMember", SyncMemberArgs.builder()
.databaseName("syncgroupcrud-7421")
.databaseType("AzureSqlDatabase")
.resourceGroupName("syncgroupcrud-65440")
.serverName("syncgroupcrud-8475")
.syncDirection("Bidirectional")
.syncGroupName("syncgroupcrud-3187")
.syncMemberAzureDatabaseResourceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328")
.syncMemberName("syncmembercrud-4879")
.usePrivateLinkConnection(true)
.userName("myUser")
.build());
}
}

Update a sync member

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var syncMember = new AzureNative.Sql.SyncMember("syncMember", new()
{
DatabaseName = "syncgroupcrud-7421",
DatabaseType = AzureNative.Sql.SyncMemberDbType.AzureSqlDatabase,
ResourceGroupName = "syncgroupcrud-65440",
ServerName = "syncgroupcrud-8475",
SyncDirection = AzureNative.Sql.SyncDirection.Bidirectional,
SyncGroupName = "syncgroupcrud-3187",
SyncMemberAzureDatabaseResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
SyncMemberName = "syncmembercrud-4879",
UsePrivateLinkConnection = true,
UserName = "myUser",
});
});
package main
import (
sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewSyncMember(ctx, "syncMember", &sql.SyncMemberArgs{
DatabaseName: pulumi.String("syncgroupcrud-7421"),
DatabaseType: pulumi.String(sql.SyncMemberDbTypeAzureSqlDatabase),
ResourceGroupName: pulumi.String("syncgroupcrud-65440"),
ServerName: pulumi.String("syncgroupcrud-8475"),
SyncDirection: pulumi.String(sql.SyncDirectionBidirectional),
SyncGroupName: pulumi.String("syncgroupcrud-3187"),
SyncMemberAzureDatabaseResourceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328"),
SyncMemberName: pulumi.String("syncmembercrud-4879"),
UsePrivateLinkConnection: pulumi.Bool(true),
UserName: pulumi.String("myUser"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.SyncMember;
import com.pulumi.azurenative.sql.SyncMemberArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var syncMember = new SyncMember("syncMember", SyncMemberArgs.builder()
.databaseName("syncgroupcrud-7421")
.databaseType("AzureSqlDatabase")
.resourceGroupName("syncgroupcrud-65440")
.serverName("syncgroupcrud-8475")
.syncDirection("Bidirectional")
.syncGroupName("syncgroupcrud-3187")
.syncMemberAzureDatabaseResourceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328")
.syncMemberName("syncmembercrud-4879")
.usePrivateLinkConnection(true)
.userName("myUser")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:sql:SyncMember syncmembercrud-4879 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}

Constructors

Link copied to clipboard
constructor(databaseName: Output<String>? = null, databaseType: Output<Either<String, SyncMemberDbType>>? = null, password: Output<String>? = null, resourceGroupName: Output<String>? = null, serverName: Output<String>? = null, sqlServerDatabaseId: Output<String>? = null, syncAgentId: Output<String>? = null, syncDirection: Output<Either<String, SyncDirection>>? = null, syncGroupName: Output<String>? = null, syncMemberAzureDatabaseResourceId: Output<String>? = null, syncMemberName: Output<String>? = null, usePrivateLinkConnection: Output<Boolean>? = null, userName: Output<String>? = null)

Properties

Link copied to clipboard
val databaseName: Output<String>? = null

Database name of the member database in the sync member.

Link copied to clipboard
val databaseType: Output<Either<String, SyncMemberDbType>>? = null

Database type of the sync member.

Link copied to clipboard
val password: Output<String>? = null

Password of the member database in the sync member.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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

Link copied to clipboard
val serverName: Output<String>? = null

Server name of the member database in the sync member

Link copied to clipboard
val sqlServerDatabaseId: Output<String>? = null

SQL Server database id of the sync member.

Link copied to clipboard
val syncAgentId: Output<String>? = null

ARM resource id of the sync agent in the sync member.

Link copied to clipboard
val syncDirection: Output<Either<String, SyncDirection>>? = null

Sync direction of the sync member.

Link copied to clipboard
val syncGroupName: Output<String>? = null

The name of the sync group on which the sync member is hosted.

Link copied to clipboard

ARM resource id of the sync member logical database, for sync members in Azure.

Link copied to clipboard
val syncMemberName: Output<String>? = null

The name of the sync member.

Link copied to clipboard
val usePrivateLinkConnection: Output<Boolean>? = null

Whether to use private link connection.

Link copied to clipboard
val userName: Output<String>? = null

User name of the member database in the sync member.

Functions

Link copied to clipboard
open override fun toJava(): SyncMemberArgs