1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. Incidents
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty

    Create Incidents Resource

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

    Constructor syntax

    new Incidents(name: string, args: IncidentsArgs, opts?: CustomResourceOptions);
    @overload
    def Incidents(resource_name: str,
                  args: IncidentsArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Incidents(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  escalation_policy: Optional[str] = None,
                  service: Optional[str] = None,
                  summary: Optional[str] = None,
                  title: Optional[str] = None,
                  user: Optional[str] = None,
                  incidents_id: Optional[str] = None,
                  status: Optional[float] = None,
                  urgency: Optional[float] = None)
    func NewIncidents(ctx *Context, name string, args IncidentsArgs, opts ...ResourceOption) (*Incidents, error)
    public Incidents(string name, IncidentsArgs args, CustomResourceOptions? opts = null)
    public Incidents(String name, IncidentsArgs args)
    public Incidents(String name, IncidentsArgs args, CustomResourceOptions options)
    
    type: zenduty:Incidents
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "zenduty_incidents" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args IncidentsArgs
    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 IncidentsArgs
    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 IncidentsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IncidentsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IncidentsArgs
    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 incidentsResource = new Zenduty.Incidents("incidentsResource", new()
    {
        EscalationPolicy = "string",
        Service = "string",
        Summary = "string",
        Title = "string",
        User = "string",
        IncidentsId = "string",
        Status = 0.0,
        Urgency = 0.0,
    });
    
    example, err := zenduty.NewIncidents(ctx, "incidentsResource", &zenduty.IncidentsArgs{
    	EscalationPolicy: pulumi.String("string"),
    	Service:          pulumi.String("string"),
    	Summary:          pulumi.String("string"),
    	Title:            pulumi.String("string"),
    	User:             pulumi.String("string"),
    	IncidentsId:      pulumi.String("string"),
    	Status:           pulumi.Float64(0),
    	Urgency:          pulumi.Float64(0),
    })
    
    resource "zenduty_incidents" "incidentsResource" {
      lifecycle {
        create_before_destroy = true
      }
      escalation_policy = "string"
      service           = "string"
      summary           = "string"
      title             = "string"
      user              = "string"
      incidents_id      = "string"
      status            = 0
      urgency           = 0
    }
    
    var incidentsResource = new Incidents("incidentsResource", IncidentsArgs.builder()
        .escalationPolicy("string")
        .service("string")
        .summary("string")
        .title("string")
        .user("string")
        .incidentsId("string")
        .status(0.0)
        .urgency(0.0)
        .build());
    
    incidents_resource = zenduty.Incidents("incidentsResource",
        escalation_policy="string",
        service="string",
        summary="string",
        title="string",
        user="string",
        incidents_id="string",
        status=float(0),
        urgency=float(0))
    
    const incidentsResource = new zenduty.Incidents("incidentsResource", {
        escalationPolicy: "string",
        service: "string",
        summary: "string",
        title: "string",
        user: "string",
        incidentsId: "string",
        status: 0,
        urgency: 0,
    });
    
    type: zenduty:Incidents
    properties:
        escalationPolicy: string
        incidentsId: string
        service: string
        status: 0
        summary: string
        title: string
        urgency: 0
        user: string
    

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

    EscalationPolicy string
    unique_id of the escalation policy.
    Service string
    Unique_ID of the service.
    Summary string
    The summary of the incident.
    Title string
    The title of the incident.
    User string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    IncidentsId string
    Status double
    Urgency double
    Urgency of the incident: 0 (low) or 1 (high).
    EscalationPolicy string
    unique_id of the escalation policy.
    Service string
    Unique_ID of the service.
    Summary string
    The summary of the incident.
    Title string
    The title of the incident.
    User string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    IncidentsId string
    Status float64
    Urgency float64
    Urgency of the incident: 0 (low) or 1 (high).
    escalation_policy string
    unique_id of the escalation policy.
    service string
    Unique_ID of the service.
    summary string
    The summary of the incident.
    title string
    The title of the incident.
    user string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    incidents_id string
    status number
    urgency number
    Urgency of the incident: 0 (low) or 1 (high).
    escalationPolicy String
    unique_id of the escalation policy.
    service String
    Unique_ID of the service.
    summary String
    The summary of the incident.
    title String
    The title of the incident.
    user String
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    incidentsId String
    status Double
    urgency Double
    Urgency of the incident: 0 (low) or 1 (high).
    escalationPolicy string
    unique_id of the escalation policy.
    service string
    Unique_ID of the service.
    summary string
    The summary of the incident.
    title string
    The title of the incident.
    user string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    incidentsId string
    status number
    urgency number
    Urgency of the incident: 0 (low) or 1 (high).
    escalation_policy str
    unique_id of the escalation policy.
    service str
    Unique_ID of the service.
    summary str
    The summary of the incident.
    title str
    The title of the incident.
    user str
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    incidents_id str
    status float
    urgency float
    Urgency of the incident: 0 (low) or 1 (high).
    escalationPolicy String
    unique_id of the escalation policy.
    service String
    Unique_ID of the service.
    summary String
    The summary of the incident.
    title String
    The title of the incident.
    user String
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    incidentsId String
    status Number
    urgency Number
    Urgency of the incident: 0 (low) or 1 (high).

    Outputs

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

    Get an existing Incidents 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?: IncidentsState, opts?: CustomResourceOptions): Incidents
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            escalation_policy: Optional[str] = None,
            incidents_id: Optional[str] = None,
            service: Optional[str] = None,
            status: Optional[float] = None,
            summary: Optional[str] = None,
            title: Optional[str] = None,
            urgency: Optional[float] = None,
            user: Optional[str] = None) -> Incidents
    func GetIncidents(ctx *Context, name string, id IDInput, state *IncidentsState, opts ...ResourceOption) (*Incidents, error)
    public static Incidents Get(string name, Input<string> id, IncidentsState? state, CustomResourceOptions? opts = null)
    public static Incidents get(String name, Output<String> id, IncidentsState state, CustomResourceOptions options)
    resources:  _:    type: zenduty:Incidents    get:      id: ${id}
    import {
      to = zenduty_incidents.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:
    EscalationPolicy string
    unique_id of the escalation policy.
    IncidentsId string
    Service string
    Unique_ID of the service.
    Status double
    Summary string
    The summary of the incident.
    Title string
    The title of the incident.
    Urgency double
    Urgency of the incident: 0 (low) or 1 (high).
    User string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    EscalationPolicy string
    unique_id of the escalation policy.
    IncidentsId string
    Service string
    Unique_ID of the service.
    Status float64
    Summary string
    The summary of the incident.
    Title string
    The title of the incident.
    Urgency float64
    Urgency of the incident: 0 (low) or 1 (high).
    User string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    escalation_policy string
    unique_id of the escalation policy.
    incidents_id string
    service string
    Unique_ID of the service.
    status number
    summary string
    The summary of the incident.
    title string
    The title of the incident.
    urgency number
    Urgency of the incident: 0 (low) or 1 (high).
    user string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    escalationPolicy String
    unique_id of the escalation policy.
    incidentsId String
    service String
    Unique_ID of the service.
    status Double
    summary String
    The summary of the incident.
    title String
    The title of the incident.
    urgency Double
    Urgency of the incident: 0 (low) or 1 (high).
    user String
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    escalationPolicy string
    unique_id of the escalation policy.
    incidentsId string
    service string
    Unique_ID of the service.
    status number
    summary string
    The summary of the incident.
    title string
    The title of the incident.
    urgency number
    Urgency of the incident: 0 (low) or 1 (high).
    user string
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    escalation_policy str
    unique_id of the escalation policy.
    incidents_id str
    service str
    Unique_ID of the service.
    status float
    summary str
    The summary of the incident.
    title str
    The title of the incident.
    urgency float
    Urgency of the incident: 0 (low) or 1 (high).
    user str
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.
    escalationPolicy String
    unique_id of the escalation policy.
    incidentsId String
    service String
    Unique_ID of the service.
    status Number
    summary String
    The summary of the incident.
    title String
    The title of the incident.
    urgency Number
    Urgency of the incident: 0 (low) or 1 (high).
    user String
    Username of the user creating the incident. The API never returns this field, so it stays empty on imported incidents.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    Viewing docs for zenduty 2.0.0
    published on Friday, Aug 14, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial