Skip to main content

connections

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

Overview

Nameconnections
TypeResource
Idpagerduty.workflow_integrations.connections

Fields

The following fields are returned by SELECT queries:

The Workflow Integration Connection requested.

NameDatatypeDescription
idstring
namestringThe name given to the connection
external_idstringThe ID of the external system that this connection is used to connect to
integration_idstringThe integration ID that this connection is associated with
appsarrayThe app IDs for this connection
configurationstringThe configuration for this connection (opaque JSON object)
created_atstring (date-time)The timestamp of when the connection was created
created_byobjectReference to the user who created this connection
external_id_labelstringThe label of the external system that this connection is used to connect to
healthobject
html_urlstring (url)a URL at which the entity is uniquely displayed in the Web app
is_defaultbooleanWhether or not this connection is the default connection for this integration
scopesarray
secretsstringThe secrets for this connection. This will always be null on a response so that secrets are not leaked. (opaque JSON object)
selfstring (url)the API show URL at which the object is accessible
service_urlstringThe URL of the service that this connection is associated with
summarystringA short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to name, though it is not intended to be an identifier.
teamsarrayThe teams whose managers are allowed to use or edit this connection
typestringA string that determines the schema of the object. This must be the standard name for the entity, suffixed by _reference if the object is a reference.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectintegration_id, idGet details about a Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.read<br />
list_by_integrationselectintegration_idlimit, cursor, nameList all Workflow Integration Connections for a specific Workflow Integration.<br /><br />Scoped OAuth requires: workflow_integrations:connections.read<br />
listselectlimit, cursor, nameList all Workflow Integration Connections.<br /><br />Scoped OAuth requires: workflow_integrations:connections.read<br />
createinsertintegration_id, name, secretsCreate a new Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.write<br />
updateupdateintegration_id, id, name, secretsUpdate an existing Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.write<br />
deletedeleteintegration_id, idDelete a Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.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
idstringThe ID of the resource.
integration_idstringThe ID of the Workflow Integration
cursorstringOptional parameter used to request the "next" set of results from an API. The value provided here is most commonly obtained from the next_cursor field of the previous request. When no value is provided, the request starts at the beginning of the result set.
limitintegerThe minimum of the limit parameter used in the request or the maximum request size of the API.
namestringFilter Integrations by partial name.

SELECT examples

Get details about a Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.read<br />

SELECT
id,
name,
external_id,
integration_id,
apps,
configuration,
created_at,
created_by,
external_id_label,
health,
html_url,
is_default,
scopes,
secrets,
self,
service_url,
summary,
teams,
type
FROM pagerduty.workflow_integrations.connections
WHERE integration_id = '{{ integration_id }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

Create a new Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.write<br />

INSERT INTO pagerduty.workflow_integrations.connections (
name,
service_url,
external_id,
external_id_label,
scopes,
is_default,
configuration,
secrets,
teams,
apps,
integration_id
)
SELECT
'{{ name }}' /* required */,
'{{ service_url }}',
'{{ external_id }}',
'{{ external_id_label }}',
'{{ scopes }}',
{{ is_default }},
'{{ configuration }}',
'{{ secrets }}' /* required */,
'{{ teams }}',
'{{ apps }}',
'{{ integration_id }}'
RETURNING
id,
name,
external_id,
integration_id,
apps,
configuration,
created_at,
created_by,
external_id_label,
health,
html_url,
is_default,
scopes,
secrets,
self,
service_url,
summary,
teams,
type
;

UPDATE examples

Update an existing Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.write<br />

UPDATE pagerduty.workflow_integrations.connections
SET
name = '{{ name }}',
service_url = '{{ service_url }}',
external_id = '{{ external_id }}',
external_id_label = '{{ external_id_label }}',
scopes = '{{ scopes }}',
is_default = {{ is_default }},
configuration = '{{ configuration }}',
secrets = '{{ secrets }}',
teams = '{{ teams }}',
apps = '{{ apps }}'
WHERE
integration_id = '{{ integration_id }}' --required
AND id = '{{ id }}' --required
AND name = '{{ name }}' --required
AND secrets = '{{ secrets }}' --required
RETURNING
id,
name,
external_id,
integration_id,
apps,
configuration,
created_at,
created_by,
external_id_label,
health,
html_url,
is_default,
scopes,
secrets,
self,
service_url,
summary,
teams,
type;

DELETE examples

Delete a Workflow Integration Connection.<br /><br />Scoped OAuth requires: workflow_integrations:connections.write<br />

DELETE FROM pagerduty.workflow_integrations.connections
WHERE integration_id = '{{ integration_id }}' --required
AND id = '{{ id }}' --required
;