User

Provides a Datadog user resource. This can be used to create and manage Datadog users.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new Datadog user
        var foo = new Datadog.User("foo", new Datadog.UserArgs
        {
            Email = "new@example.com",
            Handle = "new@example.com",
            Name = "New User",
        });
    }

}

Coming soon!

import pulumi
import pulumi_datadog as datadog

# Create a new Datadog user
foo = datadog.User("foo",
    email="new@example.com",
    handle="new@example.com",
    name="New User")
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

// Create a new Datadog user
const foo = new datadog.User("foo", {
    email: "new@example.com",
    handle: "new@example.com",
    name: "New User",
});

Create a User Resource

new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
def User(resource_name, opts=None, access_role=None, disabled=None, email=None, handle=None, is_admin=None, name=None, role=None, __props__=None);
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

User Resource Properties

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

Inputs

The User resource accepts the following input properties:

Email string

Email address for user

Handle string

The user handle, must be a valid email.

Name string

Name for user

AccessRole string

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

Disabled bool

Whether the user is disabled

IsAdmin bool

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

Role string

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

Email string

Email address for user

Handle string

The user handle, must be a valid email.

Name string

Name for user

AccessRole string

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

Disabled bool

Whether the user is disabled

IsAdmin bool

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

Role string

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

email string

Email address for user

handle string

The user handle, must be a valid email.

name string

Name for user

accessRole string

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

disabled boolean

Whether the user is disabled

isAdmin boolean

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

role string

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

email str

Email address for user

handle str

The user handle, must be a valid email.

name str

Name for user

access_role str

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

disabled bool

Whether the user is disabled

is_admin bool

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

role str

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

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.
Verified bool

Returns true if Datadog user is verified

Id string
The provider-assigned unique ID for this managed resource.
Verified bool

Returns true if Datadog user is verified

id string
The provider-assigned unique ID for this managed resource.
verified boolean

Returns true if Datadog user is verified

id str
The provider-assigned unique ID for this managed resource.
verified bool

Returns true if Datadog user is verified

Look up an 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
static get(resource_name, id, opts=None, access_role=None, disabled=None, email=None, handle=None, is_admin=None, name=None, role=None, verified=None, __props__=None);
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)
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.

The following state arguments are supported:

AccessRole string

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

Disabled bool

Whether the user is disabled

Email string

Email address for user

Handle string

The user handle, must be a valid email.

IsAdmin bool

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

Name string

Name for user

Role string

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

Verified bool

Returns true if Datadog user is verified

AccessRole string

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

Disabled bool

Whether the user is disabled

Email string

Email address for user

Handle string

The user handle, must be a valid email.

IsAdmin bool

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

Name string

Name for user

Role string

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

Verified bool

Returns true if Datadog user is verified

accessRole string

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

disabled boolean

Whether the user is disabled

email string

Email address for user

handle string

The user handle, must be a valid email.

isAdmin boolean

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

name string

Name for user

role string

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

verified boolean

Returns true if Datadog user is verified

access_role str

Role description for user. Can be st (standard user), adm (admin user) or ro (read-only user). Default is st.

disabled bool

Whether the user is disabled

email str

Email address for user

handle str

The user handle, must be a valid email.

is_admin bool

(Optional) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter will be replaced by access_role and will be removed from the next Major version

name str

Name for user

role str

Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan.

Deprecated: This parameter was removed from the API and has no effect

verified bool

Returns true if Datadog user is verified

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.