Skip to main content

tagged_entities

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

Overview

Nametagged_entities
TypeResource
Idpagerduty.tags.tagged_entities

Fields

The following fields are returned by SELECT queries:

An array of connected entities.

NameDatatypeDescription
escalation_policiesarray
limitintegerEchoes limit pagination property.
morebooleanIndicates if there are additional records to return
offsetintegerEchoes offset pagination property.
teamsarray
totalintegerThe total number of records matching the given query.
usersarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectid, entity_typelimit, offset, totalGet related Users, Teams or Escalation Policies for the Tag.<br /><br />A Tag is applied to Escalation Policies, Teams or Users and can be used to filter them.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#tags)<br /><br />Scoped OAuth requires: tags.read<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
entity_typestringType of entity related with the tag
idstringThe ID of the resource.
limitintegerThe number of results per page.
offsetintegerOffset to start pagination search results.
totalbooleanBy default the total field in pagination responses is set to null to provide the fastest possible response times. Set total to true for this field to be populated. See our [Pagination Docs](https:​//developer.pagerduty.com/docs/rest-api-v2/pagination/) for more information.

SELECT examples

Get related Users, Teams or Escalation Policies for the Tag.<br /><br />A Tag is applied to Escalation Policies, Teams or Users and can be used to filter them.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#tags)<br /><br />Scoped OAuth requires: tags.read<br />

SELECT
escalation_policies,
limit,
more,
offset,
teams,
total,
users
FROM pagerduty.tags.tagged_entities
WHERE id = '{{ id }}' -- required
AND entity_type = '{{ entity_type }}' -- required
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND total = '{{ total }}'
;