Class User
A user is a member of a PagerDuty account that have the ability to interact with incidents and other data on the account.
Example Usage
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
class MyStack : Stack
{
public MyStack()
{
var example = new Pagerduty.User("example", new Pagerduty.UserArgs
{
Email = "125.greenholt.earline@graham.name",
});
}
}
Inheritance
Inherited Members
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class User : CustomResource
Constructors
View SourceUser(String, UserArgs, CustomResourceOptions)
Create a User resource with the given unique name, arguments, and options.
Declaration
public User(string name, UserArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| UserArgs | args | The arguments used to populate this resource's properties |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAvatarUrl
The URL of the user's avatar.
Declaration
public Output<string> AvatarUrl { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Color
The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
Declaration
public Output<string> Color { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Description
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
The user's email address.
Declaration
public Output<string> Email { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
HtmlUrl
URL at which the entity is uniquely displayed in the Web app
Declaration
public Output<string> HtmlUrl { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
InvitationSent
If true, the user has an outstanding invitation.
Declaration
public Output<bool> InvitationSent { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.Boolean> |
JobTitle
The user's title.
Declaration
public Output<string> JobTitle { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Name
The name of the user.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Role
The user role. Account must have the read_only_users ability to set a user as a read_only_user. Can be admin, limited_user, observer, owner, read_only_user or user
Declaration
public Output<string> Role { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Teams
A list of teams the user should belong to. Please use pagerduty..TeamMembership instead.
Declaration
public Output<ImmutableArray<string>> Teams { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.Collections.Immutable.ImmutableArray<System.String>> |
TimeZone
The timezone of the user
Declaration
public Output<string> TimeZone { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Methods
View SourceGet(String, Input<String>, UserState, CustomResourceOptions)
Get an existing User resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static User Get(string name, Input<string> id, UserState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Pulumi.Input<System.String> | id | The unique provider ID of the resource to lookup. |
| UserState | state | Any extra arguments used during the lookup. |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| User |