ServerEndpointArgs

data class ServerEndpointArgs(val cloudTiering: Output<Either<String, FeatureStatus>>? = null, val friendlyName: Output<String>? = null, val initialDownloadPolicy: Output<Either<String, InitialDownloadPolicy>>? = null, val initialUploadPolicy: Output<Either<String, InitialUploadPolicy>>? = null, val localCacheMode: Output<Either<String, LocalCacheMode>>? = null, val offlineDataTransfer: Output<Either<String, FeatureStatus>>? = null, val offlineDataTransferShareName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serverEndpointName: Output<String>? = null, val serverLocalPath: Output<String>? = null, val serverResourceId: Output<String>? = null, val storageSyncServiceName: Output<String>? = null, val syncGroupName: Output<String>? = null, val tierFilesOlderThanDays: Output<Int>? = null, val volumeFreeSpacePercent: Output<Int>? = null) : ConvertibleToJava<ServerEndpointArgs>

Server Endpoint object. Uses Azure REST API version 2022-06-01. In version 1.x of the Azure Native provider, it used API version 2020-03-01. Other available API versions: 2022-09-01.

Example Usage

ServerEndpoints_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverEndpoint = new AzureNative.StorageSync.ServerEndpoint("serverEndpoint", new()
{
CloudTiering = AzureNative.StorageSync.FeatureStatus.Off,
InitialDownloadPolicy = AzureNative.StorageSync.InitialDownloadPolicy.NamespaceThenModifiedFiles,
InitialUploadPolicy = AzureNative.StorageSync.InitialUploadPolicy.ServerAuthoritative,
LocalCacheMode = AzureNative.StorageSync.LocalCacheMode.UpdateLocallyCachedFiles,
OfflineDataTransfer = AzureNative.StorageSync.FeatureStatus.@On,
OfflineDataTransferShareName = "myfileshare",
ResourceGroupName = "SampleResourceGroup_1",
ServerEndpointName = "SampleServerEndpoint_1",
ServerLocalPath = "D:\\SampleServerEndpoint_1",
ServerResourceId = "/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a",
StorageSyncServiceName = "SampleStorageSyncService_1",
SyncGroupName = "SampleSyncGroup_1",
TierFilesOlderThanDays = 0,
VolumeFreeSpacePercent = 100,
});
});
package main
import (
storagesync "github.com/pulumi/pulumi-azure-native-sdk/storagesync/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagesync.NewServerEndpoint(ctx, "serverEndpoint", &storagesync.ServerEndpointArgs{
CloudTiering: pulumi.String(storagesync.FeatureStatusOff),
InitialDownloadPolicy: pulumi.String(storagesync.InitialDownloadPolicyNamespaceThenModifiedFiles),
InitialUploadPolicy: pulumi.String(storagesync.InitialUploadPolicyServerAuthoritative),
LocalCacheMode: pulumi.String(storagesync.LocalCacheModeUpdateLocallyCachedFiles),
OfflineDataTransfer: pulumi.String(storagesync.FeatureStatusOn),
OfflineDataTransferShareName: pulumi.String("myfileshare"),
ResourceGroupName: pulumi.String("SampleResourceGroup_1"),
ServerEndpointName: pulumi.String("SampleServerEndpoint_1"),
ServerLocalPath: pulumi.String("D:\\SampleServerEndpoint_1"),
ServerResourceId: pulumi.String("/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a"),
StorageSyncServiceName: pulumi.String("SampleStorageSyncService_1"),
SyncGroupName: pulumi.String("SampleSyncGroup_1"),
TierFilesOlderThanDays: pulumi.Int(0),
VolumeFreeSpacePercent: pulumi.Int(100),
})
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.storagesync.ServerEndpoint;
import com.pulumi.azurenative.storagesync.ServerEndpointArgs;
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 serverEndpoint = new ServerEndpoint("serverEndpoint", ServerEndpointArgs.builder()
.cloudTiering("off")
.initialDownloadPolicy("NamespaceThenModifiedFiles")
.initialUploadPolicy("ServerAuthoritative")
.localCacheMode("UpdateLocallyCachedFiles")
.offlineDataTransfer("on")
.offlineDataTransferShareName("myfileshare")
.resourceGroupName("SampleResourceGroup_1")
.serverEndpointName("SampleServerEndpoint_1")
.serverLocalPath("D:\\SampleServerEndpoint_1")
.serverResourceId("/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a")
.storageSyncServiceName("SampleStorageSyncService_1")
.syncGroupName("SampleSyncGroup_1")
.tierFilesOlderThanDays(0)
.volumeFreeSpacePercent(100)
.build());
}
}

Import

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

$ pulumi import azure-native:storagesync:ServerEndpoint SampleServerEndpoint_1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}

Constructors

Link copied to clipboard
constructor(cloudTiering: Output<Either<String, FeatureStatus>>? = null, friendlyName: Output<String>? = null, initialDownloadPolicy: Output<Either<String, InitialDownloadPolicy>>? = null, initialUploadPolicy: Output<Either<String, InitialUploadPolicy>>? = null, localCacheMode: Output<Either<String, LocalCacheMode>>? = null, offlineDataTransfer: Output<Either<String, FeatureStatus>>? = null, offlineDataTransferShareName: Output<String>? = null, resourceGroupName: Output<String>? = null, serverEndpointName: Output<String>? = null, serverLocalPath: Output<String>? = null, serverResourceId: Output<String>? = null, storageSyncServiceName: Output<String>? = null, syncGroupName: Output<String>? = null, tierFilesOlderThanDays: Output<Int>? = null, volumeFreeSpacePercent: Output<Int>? = null)

Properties

Link copied to clipboard
val cloudTiering: Output<Either<String, FeatureStatus>>? = null

Cloud Tiering.

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

Friendly Name

Link copied to clipboard
val initialDownloadPolicy: Output<Either<String, InitialDownloadPolicy>>? = null

Policy for how namespace and files are recalled during FastDr.

Link copied to clipboard
val initialUploadPolicy: Output<Either<String, InitialUploadPolicy>>? = null

Policy for how the initial upload sync session is performed.

Link copied to clipboard
val localCacheMode: Output<Either<String, LocalCacheMode>>? = null

Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access.

Link copied to clipboard
val offlineDataTransfer: Output<Either<String, FeatureStatus>>? = null

Offline data transfer

Link copied to clipboard

Offline data transfer share name

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

The name of the resource group. The name is case insensitive.

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

Name of Server Endpoint object.

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

Server Local path.

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

Server Resource Id.

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

Name of Storage Sync Service resource.

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

Name of Sync Group resource.

Link copied to clipboard
val tierFilesOlderThanDays: Output<Int>? = null

Tier files older than days.

Link copied to clipboard
val volumeFreeSpacePercent: Output<Int>? = null

Level of free space to be maintained by Cloud Tiering if it is enabled.

Functions

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