published on Friday, Aug 14, 2026 by zenduty
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:
- 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 double
- Urgency double
- 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 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).
- 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 Double
- urgency Double
- 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).
- 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).
- 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).
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) -> Incidentsfunc 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.
- Escalation
Policy string - unique_id of the escalation policy.
- Incidents
Id 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.
- Escalation
Policy string - unique_id of the escalation policy.
- Incidents
Id 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.
- escalation
Policy String - unique_id of the escalation policy.
- incidents
Id 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
published on Friday, Aug 14, 2026 by zenduty