Skip to main content

servicenow_integrations

Creates, updates, deletes, gets or lists a servicenow_integrations resource.

Overview

Nameservicenow_integrations
TypeResource
Idpagerduty.enrichment.servicenow_integrations

Fields

The following fields are returned by SELECT queries:

The requested ServiceNow enrichment integration, including its CMDB tables, field mappings, and credentials.

NameDatatypeDescription
idstringBase32-encoded UUID v7 (26 uppercase alphanumeric characters) identifying the integration.
namestringThe name of the integration.
cmdb_tablesarrayThe ServiceNow CMDB table configurations belonging to this integration. An integration must have at least 1 and at most 8 tables.
created_atstring (date-time)The date/time the integration was created.
credentialsobjectThe ServiceNow credentials associated with the account, or null if no credentials have been configured. Credentials are managed through the credentials endpoints, not through this object.
descriptionstringAn optional description of the integration.
updated_atstring (date-time)The date/time the integration was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectintegration_idRetrieves a single ServiceNow enrichment integration by ID, including its CMDB tables, field mappings, the current sync status of each table, and credentials.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Scoped OAuth requires: contextual_data.read<br />
listselectLists the ServiceNow enrichment integrations for the account, including their CMDB tables, field mappings, and credentials. Because only one integration is allowed per account, this returns at most one integration.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Scoped OAuth requires: contextual_data.read<br />
createinsertname, cmdb_tablesCreates a ServiceNow enrichment integration with one or more CMDB table configurations. Only one integration is allowed per account. Each CMDB table must define between 2 and 20 field mappings, and an integration may contain at most 8 tables. Credentials are managed separately through the credentials endpoints.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Scoped OAuth requires: contextual_data.write<br />
deletedeleteintegration_idDeletes a ServiceNow enrichment integration, including all of its CMDB table configurations and their generated enrichment schemas, and disables any associated data synchronization.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Scoped OAuth requires: contextual_data.write<br />

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
integration_idstringBase32-encoded UUID v7 (26 uppercase alphanumeric characters) identifying the ServiceNow enrichment integration.

SELECT examples

Retrieves a single ServiceNow enrichment integration by ID, including its CMDB tables, field mappings, the current sync status of each table, and credentials.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Scoped OAuth requires: contextual_data.read<br />

SELECT
id,
name,
cmdb_tables,
created_at,
credentials,
description,
updated_at
FROM pagerduty.enrichment.servicenow_integrations
WHERE integration_id = '{{ integration_id }}' -- required
;

INSERT examples

Creates a ServiceNow enrichment integration with one or more CMDB table configurations. Only one integration is allowed per account. Each CMDB table must define between 2 and 20 field mappings, and an integration may contain at most 8 tables. Credentials are managed separately through the credentials endpoints.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Scoped OAuth requires: contextual_data.write<br />

INSERT INTO pagerduty.enrichment.servicenow_integrations (
name,
description,
cmdb_tables
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ cmdb_tables }}' /* required */
RETURNING
integration
;

DELETE examples

Deletes a ServiceNow enrichment integration, including all of its CMDB table configurations and their generated enrichment schemas, and disables any associated data synchronization.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Scoped OAuth requires: contextual_data.write<br />

DELETE FROM pagerduty.enrichment.servicenow_integrations
WHERE integration_id = '{{ integration_id }}' --required
;