Skip to main content

technical_services

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

Overview

Nametechnical_services
TypeResource
Idpagerduty.service_dependencies.technical_services

Fields

The following fields are returned by SELECT queries:

An array of service relationships.

NameDatatypeDescription
idstring
dependent_serviceobjectThe reference to the service that is dependent on the technical service.
supporting_serviceobjectThe reference to the service that supports the technical service.
typestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_technical_service_service_dependenciesselectidAccept, Content-TypeGet all immediate dependencies of any technical service.
Technical services are also known as services.

For more information see the API Concepts Document

Scoped OAuth requires: services.read
create_service_dependencyinsertAccept, Content-TypeCreate new dependencies between two services.

Business services model capabilities that span multiple technical services and that may be owned by several different teams.

A service can have a maximum of 2,000 dependencies with a depth limit of 100. If the limit is reached, the API will respond with an error.

For more information see the API Concepts Document

Scoped OAuth requires: services.write
delete_service_dependencyexecAccept, Content-TypeDisassociate dependencies between two services.

Business services model capabilities that span multiple technical services and that may be owned by several different teams.

For more information see the API Concepts Document

Scoped OAuth requires: services.write
_get_technical_service_service_dependenciesexecidAccept, Content-TypeGet all immediate dependencies of any technical service.
Technical services are also known as services.

For more information see the API Concepts Document

Scoped OAuth requires: services.read

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.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring

SELECT examples

Get all immediate dependencies of any technical service.
Technical services are also known as services.

For more information see the API Concepts Document

Scoped OAuth requires: services.read

SELECT
id,
dependent_service,
supporting_service,
type
FROM pagerduty.service_dependencies.technical_services
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

INSERT examples

Create new dependencies between two services.

Business services model capabilities that span multiple technical services and that may be owned by several different teams.

A service can have a maximum of 2,000 dependencies with a depth limit of 100. If the limit is reached, the API will respond with an error.

For more information see the API Concepts Document

Scoped OAuth requires: services.write

INSERT INTO pagerduty.service_dependencies.technical_services (
data__relationships,
Accept,
Content-Type
)
SELECT
'{{ relationships }}',
'{{ Accept }}',
'{{ Content-Type }}'
RETURNING
relationships
;

Lifecycle Methods

Disassociate dependencies between two services.

Business services model capabilities that span multiple technical services and that may be owned by several different teams.

For more information see the API Concepts Document

Scoped OAuth requires: services.write

EXEC pagerduty.service_dependencies.technical_services.delete_service_dependency 
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}'
@@json=
'{
"relationships": "{{ relationships }}"
}'
;