pagerDuty.json•10.7 kB
{
"nodeType": "n8n-nodes-base.pagerDuty",
"displayName": "PagerDuty",
"description": "Consume PagerDuty API",
"version": 1,
"properties": [
{
"name": "title",
"displayName": "Title",
"type": "string",
"default": "",
"description": "A succinct description of the nature, symptoms, cause, or effect of the incident",
"required": true,
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"create"
]
}
}
},
{
"name": "serviceId",
"displayName": "Service Name or ID",
"type": "options",
"default": "",
"description": "The incident will be created on this service. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"create"
]
}
}
},
{
"name": "email",
"displayName": "Email",
"type": "string",
"default": "",
"description": "The email address of a valid user associated with the account making the request",
"placeholder": "name@email.com",
"required": true,
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"create"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add Field",
"options": [
{
"name": "escalationPolicyId",
"displayName": "Escalation Policy Name or ID",
"type": "options",
"default": "",
"description": "Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "details",
"displayName": "Incident Details",
"type": "string",
"default": "",
"description": "Additional details about the incident which will go in the body"
},
{
"name": "incidentKey",
"displayName": "Incident Key",
"type": "string",
"default": "",
"description": "Sending subsequent requests referencing the same service and with the same incident_key will result in those requests being rejected if an open incident matches that incident_key"
},
{
"name": "priorityId",
"displayName": "Priority Name or ID",
"type": "options",
"default": "",
"description": "The incident will be created on this service. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
}
],
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"create"
]
}
}
},
{
"name": "conferenceBridgeUi",
"displayName": "Conference Bridge",
"type": "fixedCollection",
"default": {},
"description": "Phone numbers should be formatted like +1 415-555-1212,,,,1234#, where a comma (,) represents a one-second wait and pound (#) completes access code input",
"placeholder": "Add Conference Bridge",
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"create"
]
}
}
},
{
"name": "incidentId",
"displayName": "Incident ID",
"type": "string",
"default": "",
"description": "Unique identifier for the incident",
"required": true,
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"get"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"incident"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 100,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 500
},
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"incident"
],
"returnAll": [
false
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "When set to all, the since and until parameters and defaults are ignored",
"placeholder": "Add Field",
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "Escalate the incident to this level in the escalation policy",
"placeholder": "Add Field",
"options": [
{
"name": "escalationLevel",
"displayName": "Escalation Level",
"type": "number",
"default": 0,
"description": "Escalate the incident to this level in the escalation policy"
},
{
"name": "escalationPolicyId",
"displayName": "Escalation Policy Name or ID",
"type": "options",
"default": "",
"description": "Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "priorityId",
"displayName": "Priority Name or ID",
"type": "options",
"default": "",
"description": "The incident will be created on this service. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "resolution",
"displayName": "Resolution",
"type": "string",
"default": "",
"description": "The resolution for this incident if status is set to resolved"
}
],
"typeOptions": {
"minValue": 0
},
"displayOptions": {
"show": {
"resource": [
"incident"
],
"operation": [
"update"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create an incident",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create an incident"
},
{
"name": "Get",
"value": "get",
"description": "Get an incident"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many incidents"
},
{
"name": "Update",
"value": "update",
"description": "Update an incident"
}
],
"displayOptions": {
"show": {
"resource": [
"incident"
]
}
}
},
{
"name": "content",
"displayName": "Content",
"type": "string",
"default": "",
"description": "The note content",
"required": true,
"displayOptions": {
"show": {
"resource": [
"incidentNote"
],
"operation": [
"create"
]
}
}
},
{
"name": "logEntryId",
"displayName": "Log Entry ID",
"type": "string",
"default": "",
"description": "Unique identifier for the log entry",
"required": true,
"displayOptions": {
"show": {
"resource": [
"logEntry"
],
"operation": [
"get"
]
}
}
},
{
"name": "userId",
"displayName": "User ID",
"type": "string",
"default": "",
"description": "Unique identifier for the user",
"required": true,
"displayOptions": {
"show": {
"resource": [
"user"
],
"operation": [
"get"
]
}
}
},
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "apiToken",
"options": [
{
"name": "API Token",
"value": "apiToken"
},
{
"name": "OAuth2",
"value": "oAuth2"
}
]
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "incident",
"options": [
{
"name": "Incident",
"value": "incident"
},
{
"name": "Incident Note",
"value": "incidentNote"
},
{
"name": "Log Entry",
"value": "logEntry"
},
{
"name": "User",
"value": "user"
}
]
}
],
"credentialsConfig": [
{
"name": "pagerDutyApi",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}