1. Registry
  2. Packages
  3. Rootly
  4. API Docs
  5. UserIncidentResponseRole
Viewing docs for Rootly v4.2.2
published on Thursday, Nov 12, 2026 by rootlyhq
rootly logo Rootly
Viewing docs for Rootly v4.2.2
published on Thursday, Nov 12, 2026 by rootlyhq

    Manages a user’s incident response role assignment.

    Example Usage

    data "rootly_user" "john" {
      email = "john@acme.com"
    }
    
    data "rootly_role" "user" {
      slug = "user"
    }
    
    resource "rootly_user_incident_response_role" "john" {
      user_id = data.rootly_user.john.id
      role_id = data.rootly_role.user.id
    }
    

    Create UserIncidentResponseRole Resource

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

    Constructor syntax

    new UserIncidentResponseRole(name: string, args: UserIncidentResponseRoleArgs, opts?: CustomResourceOptions);
    @overload
    def UserIncidentResponseRole(resource_name: str,
                                 args: UserIncidentResponseRoleArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserIncidentResponseRole(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 role_id: Optional[str] = None,
                                 user_id: Optional[str] = None)
    func NewUserIncidentResponseRole(ctx *Context, name string, args UserIncidentResponseRoleArgs, opts ...ResourceOption) (*UserIncidentResponseRole, error)
    public UserIncidentResponseRole(string name, UserIncidentResponseRoleArgs args, CustomResourceOptions? opts = null)
    public UserIncidentResponseRole(String name, UserIncidentResponseRoleArgs args)
    public UserIncidentResponseRole(String name, UserIncidentResponseRoleArgs args, CustomResourceOptions options)
    
    type: rootly:UserIncidentResponseRole
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "rootly_user_incident_response_role" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args UserIncidentResponseRoleArgs
    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 UserIncidentResponseRoleArgs
    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 UserIncidentResponseRoleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserIncidentResponseRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserIncidentResponseRoleArgs
    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 userIncidentResponseRoleResource = new Rootly.UserIncidentResponseRole("userIncidentResponseRoleResource", new()
    {
        RoleId = "string",
        UserId = "string",
    });
    
    example, err := rootly.NewUserIncidentResponseRole(ctx, "userIncidentResponseRoleResource", &rootly.UserIncidentResponseRoleArgs{
    	RoleId: pulumi.String("string"),
    	UserId: pulumi.String("string"),
    })
    
    resource "rootly_user_incident_response_role" "userIncidentResponseRoleResource" {
      lifecycle {
        create_before_destroy = true
      }
      role_id = "string"
      user_id = "string"
    }
    
    var userIncidentResponseRoleResource = new UserIncidentResponseRole("userIncidentResponseRoleResource", UserIncidentResponseRoleArgs.builder()
        .roleId("string")
        .userId("string")
        .build());
    
    user_incident_response_role_resource = rootly.UserIncidentResponseRole("userIncidentResponseRoleResource",
        role_id="string",
        user_id="string")
    
    const userIncidentResponseRoleResource = new rootly.UserIncidentResponseRole("userIncidentResponseRoleResource", {
        roleId: "string",
        userId: "string",
    });
    
    type: rootly:UserIncidentResponseRole
    properties:
        roleId: string
        userId: string
    

    UserIncidentResponseRole Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The UserIncidentResponseRole resource accepts the following input properties:

    RoleId string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    UserId string
    The ID of the user.
    RoleId string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    UserId string
    The ID of the user.
    role_id string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    user_id string
    The ID of the user.
    roleId String
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    userId String
    The ID of the user.
    roleId string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    userId string
    The ID of the user.
    role_id str
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    user_id str
    The ID of the user.
    roleId String
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    userId String
    The ID of the user.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserIncidentResponseRole 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 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 UserIncidentResponseRole Resource

    Get an existing UserIncidentResponseRole 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?: UserIncidentResponseRoleState, opts?: CustomResourceOptions): UserIncidentResponseRole
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            role_id: Optional[str] = None,
            user_id: Optional[str] = None) -> UserIncidentResponseRole
    func GetUserIncidentResponseRole(ctx *Context, name string, id IDInput, state *UserIncidentResponseRoleState, opts ...ResourceOption) (*UserIncidentResponseRole, error)
    public static UserIncidentResponseRole Get(string name, Input<string> id, UserIncidentResponseRoleState? state, CustomResourceOptions? opts = null)
    public static UserIncidentResponseRole get(String name, Output<String> id, UserIncidentResponseRoleState state, CustomResourceOptions options)
    resources:  _:    type: rootly:UserIncidentResponseRole    get:      id: ${id}
    import {
      to = rootly_user_incident_response_role.example
      id = "${id}"
    }
    
    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:
    RoleId string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    UserId string
    The ID of the user.
    RoleId string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    UserId string
    The ID of the user.
    role_id string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    user_id string
    The ID of the user.
    roleId String
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    userId String
    The ID of the user.
    roleId string
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    userId string
    The ID of the user.
    role_id str
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    user_id str
    The ID of the user.
    roleId String
    The ID of the incident response role to assign to the user. Role IDs can be found using data source rootly.Role.
    userId String
    The ID of the user.

    Import

    rootly.UserIncidentResponseRole can be imported using the import command.

    $ pulumi import rootly:index/userIncidentResponseRole:UserIncidentResponseRole primary a816421c-6ceb-481a-87c4-585e47451f24
    

    Or using an import block.

    Locate the resource id in the web app, or retrieve it by listing resources through the API if it’s not visible in the web app.

    HCL can be generated from the import block using the -generate-config-out flag.

    pulumi preview -generate-config-out=generated.tf
    

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

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo Rootly
    Viewing docs for Rootly v4.2.2
    published on Thursday, Nov 12, 2026 by rootlyhq

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial