Share
Represents a share on the Data Box Edge/Gateway device. API Version: 2020-12-01.
Example Usage
SharePut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var share = new AzureNative.DataBoxEdge.Share("share", new()
{
AccessProtocol = "SMB",
AzureContainerInfo = new AzureNative.DataBoxEdge.Inputs.AzureContainerInfoArgs
{
ContainerName = "testContainerSMB",
DataFormat = "BlockBlob",
StorageAccountCredentialId = "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/sac1",
},
DataPolicy = "Cloud",
Description = "",
DeviceName = "testedgedevice",
MonitoringStatus = "Enabled",
Name = "smbshare",
ResourceGroupName = "GroupForEdgeAutomation",
ShareStatus = "Online",
UserAccessRights = new[]
{
new AzureNative.DataBoxEdge.Inputs.UserAccessRightArgs
{
AccessType = "Change",
UserId = "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/users/user2",
},
},
});
});
Content copied to clipboard
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewShare(ctx, "share", &databoxedge.ShareArgs{
AccessProtocol: pulumi.String("SMB"),
AzureContainerInfo: &databoxedge.AzureContainerInfoArgs{
ContainerName: pulumi.String("testContainerSMB"),
DataFormat: pulumi.String("BlockBlob"),
StorageAccountCredentialId: pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/sac1"),
},
DataPolicy: pulumi.String("Cloud"),
Description: pulumi.String(""),
DeviceName: pulumi.String("testedgedevice"),
MonitoringStatus: pulumi.String("Enabled"),
Name: pulumi.String("smbshare"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
ShareStatus: pulumi.String("Online"),
UserAccessRights: []databoxedge.UserAccessRightArgs{
{
AccessType: pulumi.String("Change"),
UserId: pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/users/user2"),
},
},
})
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.databoxedge.Share;
import com.pulumi.azurenative.databoxedge.ShareArgs;
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 share = new Share("share", ShareArgs.builder()
.accessProtocol("SMB")
.azureContainerInfo(Map.ofEntries(
Map.entry("containerName", "testContainerSMB"),
Map.entry("dataFormat", "BlockBlob"),
Map.entry("storageAccountCredentialId", "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/sac1")
))
.dataPolicy("Cloud")
.description("")
.deviceName("testedgedevice")
.monitoringStatus("Enabled")
.name("smbshare")
.resourceGroupName("GroupForEdgeAutomation")
.shareStatus("Online")
.userAccessRights(Map.ofEntries(
Map.entry("accessType", "Change"),
Map.entry("userId", "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/users/user2")
))
.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:databoxedge:Share smbshare /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/smbshare
Content copied to clipboard
Properties
Link copied to clipboard
Access protocol to be used by the share.
Link copied to clipboard
Azure container mapping for the share.
Link copied to clipboard
List of IP addresses and corresponding access rights on the share(required for NFS protocol).
Link copied to clipboard
Data policy of the share.
Link copied to clipboard
Description for the share.
Link copied to clipboard
Current monitoring status of the share.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Details of the refresh job on this share.
Link copied to clipboard
Share mount point to the role.
Link copied to clipboard
Current status of the share.
Link copied to clipboard
Share on ASE device
Link copied to clipboard
Mapping of users and corresponding access rights on the share (required for SMB protocol).