1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. Sla
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Example Usage

    # Look up existing resources to reference in conditions
    data "rootly_severity" "sev0" {
      slug = "sev0"
    }
    
    data "rootly_severity" "sev1" {
      slug = "sev1"
    }
    
    data "rootly_incident_role" "commander" {
      slug = "incident-commander"
    }
    
    # Basic SLA — follow-ups must be assigned within 3 days of the incident
    # starting, and completed within 7 days of resolution.
    resource "rootly_sla" "basic" {
      name                              = "Standard Follow-Up SLA"
      description                       = "Ensure follow-ups are assigned and completed on time"
      assignment_deadline_days          = 3
      assignment_deadline_parent_status = "started"
      completion_deadline_days          = 7
      completion_deadline_parent_status = "resolved"
      manager_role_id                   = data.rootly_incident_role.commander.id
    }
    
    # SLA with conditions — only applies to SEV0/SEV1 incidents.
    # Note: the `values` field takes resource IDs (not display names like "SEV0").
    # Use a data source to look up the ID first.
    resource "rootly_sla" "critical" {
      name                              = "Critical Incident SLA"
      description                       = "Stricter deadlines for SEV0 and SEV1 incidents"
      condition_match_type              = "ALL"
      assignment_deadline_days          = 3
      assignment_deadline_parent_status = "started"
      assignment_skip_weekends          = false
      completion_deadline_days          = 5
      completion_deadline_parent_status = "resolved"
      completion_skip_weekends          = false
      manager_role_id                   = data.rootly_incident_role.commander.id
    
      # is_one_of: match incidents with SEV0 or SEV1 severity.
      # Note: `values` takes resource IDs (not display names like "SEV0").
      # Use a data source to look up the ID first.
      conditions {
        conditionable_type = "SLAs::BuiltInFieldCondition"
        property           = "severity"
        operator           = "is_one_of"
        values             = [data.rootly_severity.sev0.id, data.rootly_severity.sev1.id]
      }
    
      # is_set: require that the environment field is present (no values needed)
      conditions {
        conditionable_type = "SLAs::BuiltInFieldCondition"
        property           = "environment"
        operator           = "is_set"
      }
    
      # Notify 1 day before the deadline, when due, and 1 day after
      notification_configurations {
        offset_type = "before_due"
        offset_days = 1
      }
    
      notification_configurations {
        offset_type = "when_due"
        offset_days = 0
      }
    
      notification_configurations {
        offset_type = "after_due"
        offset_days = 1
      }
    }
    
    # SLA with a custom field condition using the "contains" operator (single value)
    resource "rootly_sla" "compliance" {
      name                              = "Compliance Review SLA"
      assignment_deadline_days          = 2
      assignment_deadline_parent_status = "started"
      completion_deadline_days          = 5
      completion_deadline_parent_status = "resolved"
      manager_role_id                   = data.rootly_incident_role.commander.id
    
      # contains: match when the custom field value contains a substring
      conditions {
        conditionable_type = "SLAs::CustomFieldCondition"
        form_field_id      = "your-custom-field-uuid"
        operator           = "contains"
        values             = ["production"]
      }
    }
    

    Create Sla Resource

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

    Constructor syntax

    new Sla(name: string, args: SlaArgs, opts?: CustomResourceOptions);
    @overload
    def Sla(resource_name: str,
            args: SlaArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Sla(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            completion_deadline_days: Optional[int] = None,
            assignment_deadline_parent_status: Optional[str] = None,
            assignment_deadline_days: Optional[int] = None,
            completion_deadline_parent_status: Optional[str] = None,
            condition_match_type: Optional[str] = None,
            entity_type: Optional[str] = None,
            completion_deadline_sub_status_id: Optional[str] = None,
            completion_skip_weekends: Optional[bool] = None,
            assignment_deadline_sub_status_id: Optional[str] = None,
            conditions: Optional[Sequence[SlaConditionArgs]] = None,
            description: Optional[str] = None,
            assignment_skip_weekends: Optional[bool] = None,
            manager_role_id: Optional[str] = None,
            manager_user_id: Optional[int] = None,
            name: Optional[str] = None,
            notification_configurations: Optional[Sequence[SlaNotificationConfigurationArgs]] = None,
            position: Optional[int] = None,
            slug: Optional[str] = None)
    func NewSla(ctx *Context, name string, args SlaArgs, opts ...ResourceOption) (*Sla, error)
    public Sla(string name, SlaArgs args, CustomResourceOptions? opts = null)
    public Sla(String name, SlaArgs args)
    public Sla(String name, SlaArgs args, CustomResourceOptions options)
    
    type: rootly:Sla
    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 SlaArgs
    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 SlaArgs
    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 SlaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlaArgs
    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 slaResource = new Rootly.Sla("slaResource", new()
    {
        CompletionDeadlineDays = 0,
        AssignmentDeadlineParentStatus = "string",
        AssignmentDeadlineDays = 0,
        CompletionDeadlineParentStatus = "string",
        ConditionMatchType = "string",
        EntityType = "string",
        CompletionDeadlineSubStatusId = "string",
        CompletionSkipWeekends = false,
        AssignmentDeadlineSubStatusId = "string",
        Conditions = new[]
        {
            new Rootly.Inputs.SlaConditionArgs
            {
                ConditionableType = "string",
                FormFieldId = "string",
                Id = "string",
                Operator = "string",
                Position = 0,
                Property = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
        Description = "string",
        AssignmentSkipWeekends = false,
        ManagerRoleId = "string",
        ManagerUserId = 0,
        Name = "string",
        NotificationConfigurations = new[]
        {
            new Rootly.Inputs.SlaNotificationConfigurationArgs
            {
                CreatedAt = "string",
                Id = "string",
                OffsetDays = 0,
                OffsetType = "string",
                UpdatedAt = "string",
            },
        },
        Position = 0,
        Slug = "string",
    });
    
    example, err := rootly.NewSla(ctx, "slaResource", &rootly.SlaArgs{
    	CompletionDeadlineDays:         pulumi.Int(0),
    	AssignmentDeadlineParentStatus: pulumi.String("string"),
    	AssignmentDeadlineDays:         pulumi.Int(0),
    	CompletionDeadlineParentStatus: pulumi.String("string"),
    	ConditionMatchType:             pulumi.String("string"),
    	EntityType:                     pulumi.String("string"),
    	CompletionDeadlineSubStatusId:  pulumi.String("string"),
    	CompletionSkipWeekends:         pulumi.Bool(false),
    	AssignmentDeadlineSubStatusId:  pulumi.String("string"),
    	Conditions: rootly.SlaConditionArray{
    		&rootly.SlaConditionArgs{
    			ConditionableType: pulumi.String("string"),
    			FormFieldId:       pulumi.String("string"),
    			Id:                pulumi.String("string"),
    			Operator:          pulumi.String("string"),
    			Position:          pulumi.Int(0),
    			Property:          pulumi.String("string"),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Description:            pulumi.String("string"),
    	AssignmentSkipWeekends: pulumi.Bool(false),
    	ManagerRoleId:          pulumi.String("string"),
    	ManagerUserId:          pulumi.Int(0),
    	Name:                   pulumi.String("string"),
    	NotificationConfigurations: rootly.SlaNotificationConfigurationArray{
    		&rootly.SlaNotificationConfigurationArgs{
    			CreatedAt:  pulumi.String("string"),
    			Id:         pulumi.String("string"),
    			OffsetDays: pulumi.Int(0),
    			OffsetType: pulumi.String("string"),
    			UpdatedAt:  pulumi.String("string"),
    		},
    	},
    	Position: pulumi.Int(0),
    	Slug:     pulumi.String("string"),
    })
    
    var slaResource = new Sla("slaResource", SlaArgs.builder()
        .completionDeadlineDays(0)
        .assignmentDeadlineParentStatus("string")
        .assignmentDeadlineDays(0)
        .completionDeadlineParentStatus("string")
        .conditionMatchType("string")
        .entityType("string")
        .completionDeadlineSubStatusId("string")
        .completionSkipWeekends(false)
        .assignmentDeadlineSubStatusId("string")
        .conditions(SlaConditionArgs.builder()
            .conditionableType("string")
            .formFieldId("string")
            .id("string")
            .operator("string")
            .position(0)
            .property("string")
            .values("string")
            .build())
        .description("string")
        .assignmentSkipWeekends(false)
        .managerRoleId("string")
        .managerUserId(0)
        .name("string")
        .notificationConfigurations(SlaNotificationConfigurationArgs.builder()
            .createdAt("string")
            .id("string")
            .offsetDays(0)
            .offsetType("string")
            .updatedAt("string")
            .build())
        .position(0)
        .slug("string")
        .build());
    
    sla_resource = rootly.Sla("slaResource",
        completion_deadline_days=0,
        assignment_deadline_parent_status="string",
        assignment_deadline_days=0,
        completion_deadline_parent_status="string",
        condition_match_type="string",
        entity_type="string",
        completion_deadline_sub_status_id="string",
        completion_skip_weekends=False,
        assignment_deadline_sub_status_id="string",
        conditions=[{
            "conditionable_type": "string",
            "form_field_id": "string",
            "id": "string",
            "operator": "string",
            "position": 0,
            "property": "string",
            "values": ["string"],
        }],
        description="string",
        assignment_skip_weekends=False,
        manager_role_id="string",
        manager_user_id=0,
        name="string",
        notification_configurations=[{
            "created_at": "string",
            "id": "string",
            "offset_days": 0,
            "offset_type": "string",
            "updated_at": "string",
        }],
        position=0,
        slug="string")
    
    const slaResource = new rootly.Sla("slaResource", {
        completionDeadlineDays: 0,
        assignmentDeadlineParentStatus: "string",
        assignmentDeadlineDays: 0,
        completionDeadlineParentStatus: "string",
        conditionMatchType: "string",
        entityType: "string",
        completionDeadlineSubStatusId: "string",
        completionSkipWeekends: false,
        assignmentDeadlineSubStatusId: "string",
        conditions: [{
            conditionableType: "string",
            formFieldId: "string",
            id: "string",
            operator: "string",
            position: 0,
            property: "string",
            values: ["string"],
        }],
        description: "string",
        assignmentSkipWeekends: false,
        managerRoleId: "string",
        managerUserId: 0,
        name: "string",
        notificationConfigurations: [{
            createdAt: "string",
            id: "string",
            offsetDays: 0,
            offsetType: "string",
            updatedAt: "string",
        }],
        position: 0,
        slug: "string",
    });
    
    type: rootly:Sla
    properties:
        assignmentDeadlineDays: 0
        assignmentDeadlineParentStatus: string
        assignmentDeadlineSubStatusId: string
        assignmentSkipWeekends: false
        completionDeadlineDays: 0
        completionDeadlineParentStatus: string
        completionDeadlineSubStatusId: string
        completionSkipWeekends: false
        conditionMatchType: string
        conditions:
            - conditionableType: string
              formFieldId: string
              id: string
              operator: string
              position: 0
              property: string
              values:
                - string
        description: string
        entityType: string
        managerRoleId: string
        managerUserId: 0
        name: string
        notificationConfigurations:
            - createdAt: string
              id: string
              offsetDays: 0
              offsetType: string
              updatedAt: string
        position: 0
        slug: string
    

    Sla 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 Sla resource accepts the following input properties:

    AssignmentDeadlineDays int
    Number of days for the assignment deadline
    AssignmentDeadlineParentStatus string
    The incident parent status that triggers the assignment deadline
    CompletionDeadlineDays int
    Number of days for the completion deadline
    CompletionDeadlineParentStatus string
    The incident parent status that triggers the completion deadline
    AssignmentDeadlineSubStatusId string
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    AssignmentSkipWeekends bool
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    CompletionDeadlineSubStatusId string
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    CompletionSkipWeekends bool
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    ConditionMatchType string
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    Conditions List<SlaCondition>
    Conditions that determine which incidents this SLA applies to
    Description string
    A description of the SLA
    EntityType string
    The entity type this SLA applies to. Value must be one of followUp.
    ManagerRoleId string
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    ManagerUserId int
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    Name string
    The name of the SLA
    NotificationConfigurations List<SlaNotificationConfiguration>
    Notification timing configurations
    Position int
    Position of the SLA for ordering
    Slug string
    The slug of the SLA
    AssignmentDeadlineDays int
    Number of days for the assignment deadline
    AssignmentDeadlineParentStatus string
    The incident parent status that triggers the assignment deadline
    CompletionDeadlineDays int
    Number of days for the completion deadline
    CompletionDeadlineParentStatus string
    The incident parent status that triggers the completion deadline
    AssignmentDeadlineSubStatusId string
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    AssignmentSkipWeekends bool
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    CompletionDeadlineSubStatusId string
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    CompletionSkipWeekends bool
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    ConditionMatchType string
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    Conditions []SlaConditionArgs
    Conditions that determine which incidents this SLA applies to
    Description string
    A description of the SLA
    EntityType string
    The entity type this SLA applies to. Value must be one of followUp.
    ManagerRoleId string
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    ManagerUserId int
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    Name string
    The name of the SLA
    NotificationConfigurations []SlaNotificationConfigurationArgs
    Notification timing configurations
    Position int
    Position of the SLA for ordering
    Slug string
    The slug of the SLA
    assignmentDeadlineDays Integer
    Number of days for the assignment deadline
    assignmentDeadlineParentStatus String
    The incident parent status that triggers the assignment deadline
    completionDeadlineDays Integer
    Number of days for the completion deadline
    completionDeadlineParentStatus String
    The incident parent status that triggers the completion deadline
    assignmentDeadlineSubStatusId String
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignmentSkipWeekends Boolean
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completionDeadlineSubStatusId String
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completionSkipWeekends Boolean
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    conditionMatchType String
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions List<SlaCondition>
    Conditions that determine which incidents this SLA applies to
    description String
    A description of the SLA
    entityType String
    The entity type this SLA applies to. Value must be one of followUp.
    managerRoleId String
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    managerUserId Integer
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name String
    The name of the SLA
    notificationConfigurations List<SlaNotificationConfiguration>
    Notification timing configurations
    position Integer
    Position of the SLA for ordering
    slug String
    The slug of the SLA
    assignmentDeadlineDays number
    Number of days for the assignment deadline
    assignmentDeadlineParentStatus string
    The incident parent status that triggers the assignment deadline
    completionDeadlineDays number
    Number of days for the completion deadline
    completionDeadlineParentStatus string
    The incident parent status that triggers the completion deadline
    assignmentDeadlineSubStatusId string
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignmentSkipWeekends boolean
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completionDeadlineSubStatusId string
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completionSkipWeekends boolean
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    conditionMatchType string
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions SlaCondition[]
    Conditions that determine which incidents this SLA applies to
    description string
    A description of the SLA
    entityType string
    The entity type this SLA applies to. Value must be one of followUp.
    managerRoleId string
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    managerUserId number
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name string
    The name of the SLA
    notificationConfigurations SlaNotificationConfiguration[]
    Notification timing configurations
    position number
    Position of the SLA for ordering
    slug string
    The slug of the SLA
    assignment_deadline_days int
    Number of days for the assignment deadline
    assignment_deadline_parent_status str
    The incident parent status that triggers the assignment deadline
    completion_deadline_days int
    Number of days for the completion deadline
    completion_deadline_parent_status str
    The incident parent status that triggers the completion deadline
    assignment_deadline_sub_status_id str
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignment_skip_weekends bool
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completion_deadline_sub_status_id str
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completion_skip_weekends bool
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    condition_match_type str
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions Sequence[SlaConditionArgs]
    Conditions that determine which incidents this SLA applies to
    description str
    A description of the SLA
    entity_type str
    The entity type this SLA applies to. Value must be one of followUp.
    manager_role_id str
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    manager_user_id int
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name str
    The name of the SLA
    notification_configurations Sequence[SlaNotificationConfigurationArgs]
    Notification timing configurations
    position int
    Position of the SLA for ordering
    slug str
    The slug of the SLA
    assignmentDeadlineDays Number
    Number of days for the assignment deadline
    assignmentDeadlineParentStatus String
    The incident parent status that triggers the assignment deadline
    completionDeadlineDays Number
    Number of days for the completion deadline
    completionDeadlineParentStatus String
    The incident parent status that triggers the completion deadline
    assignmentDeadlineSubStatusId String
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignmentSkipWeekends Boolean
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completionDeadlineSubStatusId String
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completionSkipWeekends Boolean
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    conditionMatchType String
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions List<Property Map>
    Conditions that determine which incidents this SLA applies to
    description String
    A description of the SLA
    entityType String
    The entity type this SLA applies to. Value must be one of followUp.
    managerRoleId String
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    managerUserId Number
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name String
    The name of the SLA
    notificationConfigurations List<Property Map>
    Notification timing configurations
    position Number
    Position of the SLA for ordering
    slug String
    The slug of the SLA

    Outputs

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

    Get an existing Sla 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?: SlaState, opts?: CustomResourceOptions): Sla
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assignment_deadline_days: Optional[int] = None,
            assignment_deadline_parent_status: Optional[str] = None,
            assignment_deadline_sub_status_id: Optional[str] = None,
            assignment_skip_weekends: Optional[bool] = None,
            completion_deadline_days: Optional[int] = None,
            completion_deadline_parent_status: Optional[str] = None,
            completion_deadline_sub_status_id: Optional[str] = None,
            completion_skip_weekends: Optional[bool] = None,
            condition_match_type: Optional[str] = None,
            conditions: Optional[Sequence[SlaConditionArgs]] = None,
            description: Optional[str] = None,
            entity_type: Optional[str] = None,
            manager_role_id: Optional[str] = None,
            manager_user_id: Optional[int] = None,
            name: Optional[str] = None,
            notification_configurations: Optional[Sequence[SlaNotificationConfigurationArgs]] = None,
            position: Optional[int] = None,
            slug: Optional[str] = None) -> Sla
    func GetSla(ctx *Context, name string, id IDInput, state *SlaState, opts ...ResourceOption) (*Sla, error)
    public static Sla Get(string name, Input<string> id, SlaState? state, CustomResourceOptions? opts = null)
    public static Sla get(String name, Output<String> id, SlaState state, CustomResourceOptions options)
    resources:  _:    type: rootly:Sla    get:      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:
    AssignmentDeadlineDays int
    Number of days for the assignment deadline
    AssignmentDeadlineParentStatus string
    The incident parent status that triggers the assignment deadline
    AssignmentDeadlineSubStatusId string
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    AssignmentSkipWeekends bool
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    CompletionDeadlineDays int
    Number of days for the completion deadline
    CompletionDeadlineParentStatus string
    The incident parent status that triggers the completion deadline
    CompletionDeadlineSubStatusId string
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    CompletionSkipWeekends bool
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    ConditionMatchType string
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    Conditions List<SlaCondition>
    Conditions that determine which incidents this SLA applies to
    Description string
    A description of the SLA
    EntityType string
    The entity type this SLA applies to. Value must be one of followUp.
    ManagerRoleId string
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    ManagerUserId int
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    Name string
    The name of the SLA
    NotificationConfigurations List<SlaNotificationConfiguration>
    Notification timing configurations
    Position int
    Position of the SLA for ordering
    Slug string
    The slug of the SLA
    AssignmentDeadlineDays int
    Number of days for the assignment deadline
    AssignmentDeadlineParentStatus string
    The incident parent status that triggers the assignment deadline
    AssignmentDeadlineSubStatusId string
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    AssignmentSkipWeekends bool
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    CompletionDeadlineDays int
    Number of days for the completion deadline
    CompletionDeadlineParentStatus string
    The incident parent status that triggers the completion deadline
    CompletionDeadlineSubStatusId string
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    CompletionSkipWeekends bool
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    ConditionMatchType string
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    Conditions []SlaConditionArgs
    Conditions that determine which incidents this SLA applies to
    Description string
    A description of the SLA
    EntityType string
    The entity type this SLA applies to. Value must be one of followUp.
    ManagerRoleId string
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    ManagerUserId int
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    Name string
    The name of the SLA
    NotificationConfigurations []SlaNotificationConfigurationArgs
    Notification timing configurations
    Position int
    Position of the SLA for ordering
    Slug string
    The slug of the SLA
    assignmentDeadlineDays Integer
    Number of days for the assignment deadline
    assignmentDeadlineParentStatus String
    The incident parent status that triggers the assignment deadline
    assignmentDeadlineSubStatusId String
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignmentSkipWeekends Boolean
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completionDeadlineDays Integer
    Number of days for the completion deadline
    completionDeadlineParentStatus String
    The incident parent status that triggers the completion deadline
    completionDeadlineSubStatusId String
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completionSkipWeekends Boolean
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    conditionMatchType String
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions List<SlaCondition>
    Conditions that determine which incidents this SLA applies to
    description String
    A description of the SLA
    entityType String
    The entity type this SLA applies to. Value must be one of followUp.
    managerRoleId String
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    managerUserId Integer
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name String
    The name of the SLA
    notificationConfigurations List<SlaNotificationConfiguration>
    Notification timing configurations
    position Integer
    Position of the SLA for ordering
    slug String
    The slug of the SLA
    assignmentDeadlineDays number
    Number of days for the assignment deadline
    assignmentDeadlineParentStatus string
    The incident parent status that triggers the assignment deadline
    assignmentDeadlineSubStatusId string
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignmentSkipWeekends boolean
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completionDeadlineDays number
    Number of days for the completion deadline
    completionDeadlineParentStatus string
    The incident parent status that triggers the completion deadline
    completionDeadlineSubStatusId string
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completionSkipWeekends boolean
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    conditionMatchType string
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions SlaCondition[]
    Conditions that determine which incidents this SLA applies to
    description string
    A description of the SLA
    entityType string
    The entity type this SLA applies to. Value must be one of followUp.
    managerRoleId string
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    managerUserId number
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name string
    The name of the SLA
    notificationConfigurations SlaNotificationConfiguration[]
    Notification timing configurations
    position number
    Position of the SLA for ordering
    slug string
    The slug of the SLA
    assignment_deadline_days int
    Number of days for the assignment deadline
    assignment_deadline_parent_status str
    The incident parent status that triggers the assignment deadline
    assignment_deadline_sub_status_id str
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignment_skip_weekends bool
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completion_deadline_days int
    Number of days for the completion deadline
    completion_deadline_parent_status str
    The incident parent status that triggers the completion deadline
    completion_deadline_sub_status_id str
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completion_skip_weekends bool
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    condition_match_type str
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions Sequence[SlaConditionArgs]
    Conditions that determine which incidents this SLA applies to
    description str
    A description of the SLA
    entity_type str
    The entity type this SLA applies to. Value must be one of followUp.
    manager_role_id str
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    manager_user_id int
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name str
    The name of the SLA
    notification_configurations Sequence[SlaNotificationConfigurationArgs]
    Notification timing configurations
    position int
    Position of the SLA for ordering
    slug str
    The slug of the SLA
    assignmentDeadlineDays Number
    Number of days for the assignment deadline
    assignmentDeadlineParentStatus String
    The incident parent status that triggers the assignment deadline
    assignmentDeadlineSubStatusId String
    Sub-status for the assignment deadline. Required when custom lifecycle statuses are enabled on the team.
    assignmentSkipWeekends Boolean
    Whether to skip weekends when calculating the assignment deadline. Value must be one of true or false
    completionDeadlineDays Number
    Number of days for the completion deadline
    completionDeadlineParentStatus String
    The incident parent status that triggers the completion deadline
    completionDeadlineSubStatusId String
    Sub-status for the completion deadline. Required when custom lifecycle statuses are enabled on the team.
    completionSkipWeekends Boolean
    Whether to skip weekends when calculating the completion deadline. Value must be one of true or false
    conditionMatchType String
    Whether all or any conditions must match. Value must be one of ALL, ANY.
    conditions List<Property Map>
    Conditions that determine which incidents this SLA applies to
    description String
    A description of the SLA
    entityType String
    The entity type this SLA applies to. Value must be one of followUp.
    managerRoleId String
    The ID of the manager incident role. Exactly one of managerRoleId or managerUserId must be provided.
    managerUserId Number
    The ID of the manager user. Exactly one of managerRoleId or managerUserId must be provided.
    name String
    The name of the SLA
    notificationConfigurations List<Property Map>
    Notification timing configurations
    position Number
    Position of the SLA for ordering
    slug String
    The slug of the SLA

    Supporting Types

    SlaCondition, SlaConditionArgs

    ConditionableType string
    The type of condition. Value must be one of SLAs::BuiltInFieldCondition, SLAs::CustomFieldCondition.
    FormFieldId string
    The ID of the form field (for custom field conditions)
    Id string
    Unique ID of the condition
    Operator string
    The comparison operator
    Position int
    The position of the condition
    Property string
    The property to evaluate (for built-in field conditions)
    Values List<string>
    The values to compare against
    ConditionableType string
    The type of condition. Value must be one of SLAs::BuiltInFieldCondition, SLAs::CustomFieldCondition.
    FormFieldId string
    The ID of the form field (for custom field conditions)
    Id string
    Unique ID of the condition
    Operator string
    The comparison operator
    Position int
    The position of the condition
    Property string
    The property to evaluate (for built-in field conditions)
    Values []string
    The values to compare against
    conditionableType String
    The type of condition. Value must be one of SLAs::BuiltInFieldCondition, SLAs::CustomFieldCondition.
    formFieldId String
    The ID of the form field (for custom field conditions)
    id String
    Unique ID of the condition
    operator String
    The comparison operator
    position Integer
    The position of the condition
    property String
    The property to evaluate (for built-in field conditions)
    values List<String>
    The values to compare against
    conditionableType string
    The type of condition. Value must be one of SLAs::BuiltInFieldCondition, SLAs::CustomFieldCondition.
    formFieldId string
    The ID of the form field (for custom field conditions)
    id string
    Unique ID of the condition
    operator string
    The comparison operator
    position number
    The position of the condition
    property string
    The property to evaluate (for built-in field conditions)
    values string[]
    The values to compare against
    conditionable_type str
    The type of condition. Value must be one of SLAs::BuiltInFieldCondition, SLAs::CustomFieldCondition.
    form_field_id str
    The ID of the form field (for custom field conditions)
    id str
    Unique ID of the condition
    operator str
    The comparison operator
    position int
    The position of the condition
    property str
    The property to evaluate (for built-in field conditions)
    values Sequence[str]
    The values to compare against
    conditionableType String
    The type of condition. Value must be one of SLAs::BuiltInFieldCondition, SLAs::CustomFieldCondition.
    formFieldId String
    The ID of the form field (for custom field conditions)
    id String
    Unique ID of the condition
    operator String
    The comparison operator
    position Number
    The position of the condition
    property String
    The property to evaluate (for built-in field conditions)
    values List<String>
    The values to compare against

    SlaNotificationConfiguration, SlaNotificationConfigurationArgs

    CreatedAt string
    Date of creation
    Id string
    Unique ID of the notification configuration
    OffsetDays int
    Number of days offset from the deadline
    OffsetType string
    When to send the notification relative to the deadline. Value must be one of beforeDue, whenDue, afterDue.
    UpdatedAt string
    Date of last update
    CreatedAt string
    Date of creation
    Id string
    Unique ID of the notification configuration
    OffsetDays int
    Number of days offset from the deadline
    OffsetType string
    When to send the notification relative to the deadline. Value must be one of beforeDue, whenDue, afterDue.
    UpdatedAt string
    Date of last update
    createdAt String
    Date of creation
    id String
    Unique ID of the notification configuration
    offsetDays Integer
    Number of days offset from the deadline
    offsetType String
    When to send the notification relative to the deadline. Value must be one of beforeDue, whenDue, afterDue.
    updatedAt String
    Date of last update
    createdAt string
    Date of creation
    id string
    Unique ID of the notification configuration
    offsetDays number
    Number of days offset from the deadline
    offsetType string
    When to send the notification relative to the deadline. Value must be one of beforeDue, whenDue, afterDue.
    updatedAt string
    Date of last update
    created_at str
    Date of creation
    id str
    Unique ID of the notification configuration
    offset_days int
    Number of days offset from the deadline
    offset_type str
    When to send the notification relative to the deadline. Value must be one of beforeDue, whenDue, afterDue.
    updated_at str
    Date of last update
    createdAt String
    Date of creation
    id String
    Unique ID of the notification configuration
    offsetDays Number
    Number of days offset from the deadline
    offsetType String
    When to send the notification relative to the deadline. Value must be one of beforeDue, whenDue, afterDue.
    updatedAt String
    Date of last update

    Import

    rootly.Sla can be imported using the import command.

    $ pulumi import rootly:index/sla:Sla 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
    Viewing docs for Rootly v3.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.