ServerEndpoint

class ServerEndpoint : KotlinCustomResource

Server Endpoint object. Uses Azure REST API version 2022-09-01. In version 2.x of the Azure Native provider, it used API version 2022-06-01. Other available API versions: 2022-06-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storagesync [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val cloudTiering: Output<String>?

Cloud Tiering.

Link copied to clipboard

Cloud tiering status. Only populated if cloud tiering is enabled.

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

Friendly Name

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Policy for how namespace and files are recalled during FastDr.

Link copied to clipboard

Policy for how the initial upload sync session is performed.

Link copied to clipboard

Resource Last Operation Name

Link copied to clipboard
val lastWorkflowId: Output<String>

ServerEndpoint lastWorkflowId

Link copied to clipboard
val localCacheMode: Output<String>?

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 name: Output<String>

The name of the resource

Link copied to clipboard

Offline data transfer

Link copied to clipboard

Offline data transfer share name

Offline data transfer storage account resource ID

Offline data transfer storage account tenant ID

Link copied to clipboard

ServerEndpoint Provisioning State

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Recall status. Only populated if cloud tiering is enabled.

Link copied to clipboard

Server Endpoint provisioning status

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

Server Local path.

Link copied to clipboard
val serverName: Output<String>

Server name

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

Server Resource Id.

Link copied to clipboard

Server Endpoint sync status

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard

Tier files older than days.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

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