1. Packages
  2. Azure Native v1
  3. API Docs
  4. databoxedge
  5. User
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.databoxedge.User

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    user = azure_native.databoxedge.User("user",
        device_name="testedgedevice",
        encrypted_password=azure_native.databoxedge.AsymmetricEncryptedSecretArgs(
            encryption_algorithm="None",
            encryption_cert_thumbprint="blah",
            value="<value>",
        ),
        name="user1",
        resource_group_name="GroupForEdgeAutomation",
        user_type="Share")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const user = new azure_native.databoxedge.User("user", {
        deviceName: "testedgedevice",
        encryptedPassword: {
            encryptionAlgorithm: "None",
            encryptionCertThumbprint: "blah",
            value: "<value>",
        },
        name: "user1",
        resourceGroupName: "GroupForEdgeAutomation",
        userType: "Share",
    });
    
    resources:
      user:
        type: azure-native:databoxedge:User
        properties:
          deviceName: testedgedevice
          encryptedPassword:
            encryptionAlgorithm: None
            encryptionCertThumbprint: blah
            value: <value>
          name: user1
          resourceGroupName: GroupForEdgeAutomation
          userType: Share
    

    Create User Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
    @overload
    def User(resource_name: str,
             args: UserArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def User(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             device_name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             user_type: Optional[Union[str, UserType]] = None,
             encrypted_password: Optional[AsymmetricEncryptedSecretArgs] = None,
             name: Optional[str] = None)
    func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
    public User(string name, UserArgs args, CustomResourceOptions? opts = null)
    public User(String name, UserArgs args)
    public User(String name, UserArgs args, CustomResourceOptions options)
    
    type: azure-native:databoxedge:User
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var azure_nativeUserResource = new AzureNative.Databoxedge.User("azure-nativeUserResource", new()
    {
        DeviceName = "string",
        ResourceGroupName = "string",
        UserType = "string",
        EncryptedPassword = 
        {
            { "encryptionAlgorithm", "string" },
            { "value", "string" },
            { "encryptionCertThumbprint", "string" },
        },
        Name = "string",
    });
    
    example, err := databoxedge.NewUser(ctx, "azure-nativeUserResource", &databoxedge.UserArgs{
    	DeviceName:        "string",
    	ResourceGroupName: "string",
    	UserType:          "string",
    	EncryptedPassword: map[string]interface{}{
    		"encryptionAlgorithm":      "string",
    		"value":                    "string",
    		"encryptionCertThumbprint": "string",
    	},
    	Name: "string",
    })
    
    var azure_nativeUserResource = new User("azure-nativeUserResource", UserArgs.builder()
        .deviceName("string")
        .resourceGroupName("string")
        .userType("string")
        .encryptedPassword(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .name("string")
        .build());
    
    azure_native_user_resource = azure_native.databoxedge.User("azure-nativeUserResource",
        device_name=string,
        resource_group_name=string,
        user_type=string,
        encrypted_password={
            encryptionAlgorithm: string,
            value: string,
            encryptionCertThumbprint: string,
        },
        name=string)
    
    const azure_nativeUserResource = new azure_native.databoxedge.User("azure-nativeUserResource", {
        deviceName: "string",
        resourceGroupName: "string",
        userType: "string",
        encryptedPassword: {
            encryptionAlgorithm: "string",
            value: "string",
            encryptionCertThumbprint: "string",
        },
        name: "string",
    });
    
    type: azure-native:databoxedge:User
    properties:
        deviceName: string
        encryptedPassword:
            encryptionAlgorithm: string
            encryptionCertThumbprint: string
            value: string
        name: string
        resourceGroupName: string
        userType: string
    

    User Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The User resource accepts the following input properties:

    DeviceName string
    The device name.
    ResourceGroupName string
    The resource group name.
    UserType string | Pulumi.AzureNative.DataBoxEdge.UserType
    Type of the user.
    EncryptedPassword Pulumi.AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecret
    The password details.
    Name string
    The user name.
    DeviceName string
    The device name.
    ResourceGroupName string
    The resource group name.
    UserType string | UserType
    Type of the user.
    EncryptedPassword AsymmetricEncryptedSecretArgs
    The password details.
    Name string
    The user name.
    deviceName String
    The device name.
    resourceGroupName String
    The resource group name.
    userType String | UserType
    Type of the user.
    encryptedPassword AsymmetricEncryptedSecret
    The password details.
    name String
    The user name.
    deviceName string
    The device name.
    resourceGroupName string
    The resource group name.
    userType string | UserType
    Type of the user.
    encryptedPassword AsymmetricEncryptedSecret
    The password details.
    name string
    The user name.
    device_name str
    The device name.
    resource_group_name str
    The resource group name.
    user_type str | UserType
    Type of the user.
    encrypted_password AsymmetricEncryptedSecretArgs
    The password details.
    name str
    The user name.
    deviceName String
    The device name.
    resourceGroupName String
    The resource group name.
    userType String | "Share" | "LocalManagement" | "ARM"
    Type of the user.
    encryptedPassword Property Map
    The password details.
    name String
    The user name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ShareAccessRights List<Pulumi.AzureNative.DataBoxEdge.Outputs.ShareAccessRightResponse>
    List of shares that the user has rights on. This field should not be specified during user creation.
    SystemData Pulumi.AzureNative.DataBoxEdge.Outputs.SystemDataResponse
    User in DataBoxEdge Resource
    Type string
    The hierarchical type of the object.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShareAccessRights []ShareAccessRightResponse
    List of shares that the user has rights on. This field should not be specified during user creation.
    SystemData SystemDataResponse
    User in DataBoxEdge Resource
    Type string
    The hierarchical type of the object.
    id String
    The provider-assigned unique ID for this managed resource.
    shareAccessRights List<ShareAccessRightResponse>
    List of shares that the user has rights on. This field should not be specified during user creation.
    systemData SystemDataResponse
    User in DataBoxEdge Resource
    type String
    The hierarchical type of the object.
    id string
    The provider-assigned unique ID for this managed resource.
    shareAccessRights ShareAccessRightResponse[]
    List of shares that the user has rights on. This field should not be specified during user creation.
    systemData SystemDataResponse
    User in DataBoxEdge Resource
    type string
    The hierarchical type of the object.
    id str
    The provider-assigned unique ID for this managed resource.
    share_access_rights Sequence[ShareAccessRightResponse]
    List of shares that the user has rights on. This field should not be specified during user creation.
    system_data SystemDataResponse
    User in DataBoxEdge Resource
    type str
    The hierarchical type of the object.
    id String
    The provider-assigned unique ID for this managed resource.
    shareAccessRights List<Property Map>
    List of shares that the user has rights on. This field should not be specified during user creation.
    systemData Property Map
    User in DataBoxEdge Resource
    type String
    The hierarchical type of the object.

    Supporting Types

    AsymmetricEncryptedSecret, AsymmetricEncryptedSecretArgs

    EncryptionAlgorithm string | Pulumi.AzureNative.DataBoxEdge.EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    EncryptionAlgorithm string | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm string | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    value string
    The value of the secret.
    encryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryption_algorithm str | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    value str
    The value of the secret.
    encryption_cert_thumbprint str
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String | "None" | "AES256" | "RSAES_PKCS1_v_1_5"
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.

    AsymmetricEncryptedSecretResponse, AsymmetricEncryptedSecretResponseArgs

    EncryptionAlgorithm string
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    EncryptionAlgorithm string
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm string
    The algorithm used to encrypt "Value".
    value string
    The value of the secret.
    encryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryption_algorithm str
    The algorithm used to encrypt "Value".
    value str
    The value of the secret.
    encryption_cert_thumbprint str
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.

    EncryptionAlgorithm, EncryptionAlgorithmArgs

    None
    None
    AES256
    AES256
    RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    EncryptionAlgorithmNone
    None
    EncryptionAlgorithmAES256
    AES256
    EncryptionAlgorithm_RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    None
    None
    AES256
    AES256
    RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    None
    None
    AES256
    AES256
    RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    NONE
    None
    AES256
    AES256
    RSAE_S_PKCS1_V_1_5
    RSAES_PKCS1_v_1_5
    "None"
    None
    "AES256"
    AES256
    "RSAES_PKCS1_v_1_5"
    RSAES_PKCS1_v_1_5

    ShareAccessRightResponse, ShareAccessRightResponseArgs

    AccessType string
    Type of access to be allowed on the share for this user.
    ShareId string
    The share ID.
    AccessType string
    Type of access to be allowed on the share for this user.
    ShareId string
    The share ID.
    accessType String
    Type of access to be allowed on the share for this user.
    shareId String
    The share ID.
    accessType string
    Type of access to be allowed on the share for this user.
    shareId string
    The share ID.
    access_type str
    Type of access to be allowed on the share for this user.
    share_id str
    The share ID.
    accessType String
    Type of access to be allowed on the share for this user.
    shareId String
    The share ID.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The type of identity that last modified the resource.
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The type of identity that last modified the resource.
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The type of identity that last modified the resource.
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The type of identity that last modified the resource.
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The type of identity that last modified the resource.
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The type of identity that last modified the resource.
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    UserType, UserTypeArgs

    Share
    Share
    LocalManagement
    LocalManagement
    ARM
    ARM
    UserTypeShare
    Share
    UserTypeLocalManagement
    LocalManagement
    UserTypeARM
    ARM
    Share
    Share
    LocalManagement
    LocalManagement
    ARM
    ARM
    Share
    Share
    LocalManagement
    LocalManagement
    ARM
    ARM
    SHARE
    Share
    LOCAL_MANAGEMENT
    LocalManagement
    ARM
    ARM
    "Share"
    Share
    "LocalManagement"
    LocalManagement
    "ARM"
    ARM

    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 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi