Skip to main content

servicenow_handles

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

Overview

Nameservicenow_handles
TypeResource
Iddatadog.integrations.servicenow_handles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uuid)Unique identifier for the ServiceNow template (example: 65b3341b-0680-47f9-a6d4-134db45c603e)
attributesobjectAttributes of a ServiceNow template
typestringType identifier for ServiceNow template resources (servicenow_templates) (example: servicenow_templates)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_service_now_templateselecttemplate_idGet a ServiceNow template by ID.
list_service_now_templatesselectGet all ServiceNow templates for the organization.
create_service_now_templateinsertdataCreate a new ServiceNow template.
update_service_now_templatereplacetemplate_id, dataUpdate a ServiceNow template by ID.
delete_service_now_templatedeletetemplate_idDelete a ServiceNow template by ID.

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
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
template_idstring (uuid)The ID of the ServiceNow template to delete (example: 65b3341b-0680-47f9-a6d4-134db45c603e)

SELECT examples

Get a ServiceNow template by ID.

SELECT
id,
attributes,
type
FROM datadog.integrations.servicenow_handles
WHERE template_id = '{{ template_id }}' -- required
;

INSERT examples

Create a new ServiceNow template.

INSERT INTO datadog.integrations.servicenow_handles (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

REPLACE examples

Update a ServiceNow template by ID.

REPLACE datadog.integrations.servicenow_handles
SET
data = '{{ data }}'
WHERE
template_id = '{{ template_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a ServiceNow template by ID.

DELETE FROM datadog.integrations.servicenow_handles
WHERE template_id = '{{ template_id }}' --required
;