Server Endpoint Args
data class ServerEndpointArgs(val cloudTiering: Output<Either<String, FeatureStatus>>? = null, val friendlyName: Output<String>? = null, val initialDownloadPolicy: Output<Either<String, InitialDownloadPolicy>>? = 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. API Version: 2020-03-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 = "off",
InitialDownloadPolicy = "NamespaceThenModifiedFiles",
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,
});
});
Content copied to clipboard
package main
import (
storagesync "github.com/pulumi/pulumi-azure-native-sdk/storagesync"
"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("off"),
InitialDownloadPolicy: pulumi.String("NamespaceThenModifiedFiles"),
LocalCacheMode: pulumi.String("UpdateLocallyCachedFiles"),
OfflineDataTransfer: pulumi.String("on"),
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
})
}
Content copied to clipboard
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")
.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());
}
}
Content copied to clipboard
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/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/syncGroups/SampleSyncGroup_1/serverEndpoints/SampleServerEndpoint_1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(cloudTiering: Output<Either<String, FeatureStatus>>? = null, friendlyName: Output<String>? = null, initialDownloadPolicy: Output<Either<String, InitialDownloadPolicy>>? = 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
Cloud Tiering.
Link copied to clipboard
Friendly Name
Link copied to clipboard
Policy for how namespace and files are recalled during FastDr.
Link copied to clipboard
Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access.
Link copied to clipboard
Offline data transfer
Link copied to clipboard
Offline data transfer share name
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Name of Server Endpoint object.
Link copied to clipboard
Server Local path.
Link copied to clipboard
Server Resource Id.
Link copied to clipboard
Name of Storage Sync Service resource.
Link copied to clipboard
Name of Sync Group resource.
Link copied to clipboard
Tier files older than days.
Link copied to clipboard
Level of free space to be maintained by Cloud Tiering if it is enabled.