User
Represents a user who has access to one or more shares on the Data Box Edge/Gateway device. Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01. Other available API versions: 2022-03-01, 2022-04-01-preview, 2022-12-01-preview, 2023-01-01-preview, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native databoxedge [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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,
});
});
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v3"
"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
})
}
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());
}
}
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}
Properties
The Azure API version of the resource.
The password details.
List of shares that the user has rights on. This field should not be specified during user creation.
Metadata pertaining to creation and last modification of User