User
Represents a user who has access to one or more shares on the Data Box Edge/Gateway device. Uses Azure REST API version 2022-03-01. In version 1.x of the Azure Native provider, it used API version 2020-12-01. Other available API versions: 2021-02-01-preview, 2023-01-01-preview, 2023-07-01, 2023-12-01.
Example Usage
UserPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var user = new AzureNative.DataBoxEdge.User("user", new()
{
DeviceName = "testedgedevice",
EncryptedPassword = new AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecretArgs
{
EncryptionAlgorithm = AzureNative.DataBoxEdge.EncryptionAlgorithm.None,
EncryptionCertThumbprint = "blah",
Value = "<value>",
},
Name = "user1",
ResourceGroupName = "GroupForEdgeAutomation",
UserType = AzureNative.DataBoxEdge.UserType.Share,
});
});
Content copied to clipboard
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewUser(ctx, "user", &databoxedge.UserArgs{
DeviceName: pulumi.String("testedgedevice"),
EncryptedPassword: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String(databoxedge.EncryptionAlgorithmNone),
EncryptionCertThumbprint: pulumi.String("blah"),
Value: pulumi.String("<value>"),
},
Name: pulumi.String("user1"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
UserType: pulumi.String(databoxedge.UserTypeShare),
})
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.User;
import com.pulumi.azurenative.databoxedge.UserArgs;
import com.pulumi.azurenative.databoxedge.inputs.AsymmetricEncryptedSecretArgs;
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 user = new User("user", UserArgs.builder()
.deviceName("testedgedevice")
.encryptedPassword(AsymmetricEncryptedSecretArgs.builder()
.encryptionAlgorithm("None")
.encryptionCertThumbprint("blah")
.value("<value>")
.build())
.name("user1")
.resourceGroupName("GroupForEdgeAutomation")
.userType("Share")
.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:User user1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name}
Content copied to clipboard
Properties
Link copied to clipboard
The password details.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
List of shares that the user has rights on. This field should not be specified during user creation.
Link copied to clipboard
Metadata pertaining to creation and last modification of User