1. Packages
  2. Dynatrace
  3. API Docs
  4. User
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.User

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    Dynatrace Documentation

    • User management and SSO - https://www.dynatrace.com/support/help/how-to-use-dynatrace/user-management-and-sso

    • User management API - https://www.dynatrace.com/support/help/dynatrace-api/account-management-api/user-management-api

    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,
             email: Optional[str] = None,
             first_name: Optional[str] = None,
             last_name: Optional[str] = None,
             user_name: Optional[str] = None,
             groups: Optional[Sequence[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: dynatrace: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.

    Example

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

    var userResource = new Dynatrace.User("userResource", new()
    {
        Email = "string",
        FirstName = "string",
        LastName = "string",
        UserName = "string",
        Groups = new[]
        {
            "string",
        },
    });
    
    example, err := dynatrace.NewUser(ctx, "userResource", &dynatrace.UserArgs{
    	Email:     pulumi.String("string"),
    	FirstName: pulumi.String("string"),
    	LastName:  pulumi.String("string"),
    	UserName:  pulumi.String("string"),
    	Groups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var userResource = new User("userResource", UserArgs.builder()        
        .email("string")
        .firstName("string")
        .lastName("string")
        .userName("string")
        .groups("string")
        .build());
    
    user_resource = dynatrace.User("userResource",
        email="string",
        first_name="string",
        last_name="string",
        user_name="string",
        groups=["string"])
    
    const userResource = new dynatrace.User("userResource", {
        email: "string",
        firstName: "string",
        lastName: "string",
        userName: "string",
        groups: ["string"],
    });
    
    type: dynatrace:User
    properties:
        email: string
        firstName: string
        groups:
            - string
        lastName: string
        userName: 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:

    Email string
    User's email address
    FirstName string
    User's first name
    LastName string
    User's last name
    UserName string
    The User Name
    Groups List<string>
    List of user's user group IDs
    Email string
    User's email address
    FirstName string
    User's first name
    LastName string
    User's last name
    UserName string
    The User Name
    Groups []string
    List of user's user group IDs
    email String
    User's email address
    firstName String
    User's first name
    lastName String
    User's last name
    userName String
    The User Name
    groups List<String>
    List of user's user group IDs
    email string
    User's email address
    firstName string
    User's first name
    lastName string
    User's last name
    userName string
    The User Name
    groups string[]
    List of user's user group IDs
    email str
    User's email address
    first_name str
    User's first name
    last_name str
    User's last name
    user_name str
    The User Name
    groups Sequence[str]
    List of user's user group IDs
    email String
    User's email address
    firstName String
    User's first name
    lastName String
    User's last name
    userName String
    The User Name
    groups List<String>
    List of user's user group IDs

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing User Resource

    Get an existing User resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: UserState, opts?: CustomResourceOptions): User
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email: Optional[str] = None,
            first_name: Optional[str] = None,
            groups: Optional[Sequence[str]] = None,
            last_name: Optional[str] = None,
            user_name: Optional[str] = None) -> User
    func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
    public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
    public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Email string
    User's email address
    FirstName string
    User's first name
    Groups List<string>
    List of user's user group IDs
    LastName string
    User's last name
    UserName string
    The User Name
    Email string
    User's email address
    FirstName string
    User's first name
    Groups []string
    List of user's user group IDs
    LastName string
    User's last name
    UserName string
    The User Name
    email String
    User's email address
    firstName String
    User's first name
    groups List<String>
    List of user's user group IDs
    lastName String
    User's last name
    userName String
    The User Name
    email string
    User's email address
    firstName string
    User's first name
    groups string[]
    List of user's user group IDs
    lastName string
    User's last name
    userName string
    The User Name
    email str
    User's email address
    first_name str
    User's first name
    groups Sequence[str]
    List of user's user group IDs
    last_name str
    User's last name
    user_name str
    The User Name
    email String
    User's email address
    firstName String
    User's first name
    groups List<String>
    List of user's user group IDs
    lastName String
    User's last name
    userName String
    The User Name

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs