User Args
data class UserArgs(val deviceName: Output<String>? = null, val encryptedPassword: Output<AsymmetricEncryptedSecretArgs>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val userType: Output<Either<String, UserType>>? = null) : ConvertibleToJava<UserArgs>
Represents a user who has access to one or more shares on the Data Box Edge/Gateway device. API Version: 2020-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 = "None",
EncryptionCertThumbprint = "blah",
Value = "<value>",
},
Name = "user1",
ResourceGroupName = "GroupForEdgeAutomation",
UserType = "Share",
});
});
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.NewUser(ctx, "user", &databoxedge.UserArgs{
DeviceName: pulumi.String("testedgedevice"),
EncryptedPassword: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String("None"),
EncryptionCertThumbprint: pulumi.String("blah"),
Value: pulumi.String("<value>"),
},
Name: pulumi.String("user1"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
UserType: pulumi.String("Share"),
})
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 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(Map.ofEntries(
Map.entry("encryptionAlgorithm", "None"),
Map.entry("encryptionCertThumbprint", "blah"),
Map.entry("value", "<value>")
))
.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/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/users/user1
Content copied to clipboard