Skip to main content

extensions

Creates, updates, deletes, gets or lists an extensions resource.

Overview

Nameextensions
TypeResource
Idpagerduty.extensions.extensions

Fields

The following fields are returned by SELECT queries:

The extension that was requested.

NameDatatypeDescription
idstring
namestringThe name of the extension.
configobjectThe object that contains extension configuration values depending on the extension schema specification.
endpoint_urlstring (url)The url of the extension.
extension_objectsarrayThe objects for which the extension applies
extension_schemaobject
html_urlstring (url)a URL at which the entity is uniquely displayed in the Web app
selfstring (url)the API show URL at which the object is accessible
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.
temporarily_disabledbooleanWhether or not this extension is temporarily disabled; for example, a webhook extension that is repeatedly rejected by the server.
typestringThe type of object being created. (default: extension)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_extensionselectidAccept, Content-Type, include[]Get details about an existing extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.read
list_extensionsselectlimit, offset, total, Accept, Content-Type, query, extension_object_id, extension_schema_id, include[]List existing extensions.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.read
create_extensioninsertdata__extensionAccept, Content-TypeCreate a new Extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.write
delete_extensiondeleteidAccept, Content-TypeDelete an existing extension.

Once the extension is deleted, it will not be accessible from the web UI and new incidents won't be able to be created for this extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.write
_list_extensionsexeclimit, offset, total, Accept, Content-Type, query, extension_object_id, extension_schema_id, include[]List existing extensions.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.read
_get_extensionexecidAccept, Content-Type, include[]Get details about an existing extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.read
update_extensionexecid, extensionAccept, Content-TypeUpdate an existing extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.write
enable_extensionexecidAccept, Content-TypeEnable an extension that is temporarily disabled. (This API does not require a request body.)

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.write

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
extension_object_idstringThe id of the extension object you want to filter by.
extension_schema_idstringFilter the extensions by extension vendor id.
include[]stringArray of additional details to include.
limitintegerThe number of results per page.
offsetintegerOffset to start pagination search results.
querystringFilters the result, showing only the records whose name matches the query.
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 for more information.

SELECT examples

Get details about an existing extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.read

SELECT
id,
name,
config,
endpoint_url,
extension_objects,
extension_schema,
html_url,
self,
summary,
temporarily_disabled,
type
FROM pagerduty.extensions.extensions
WHERE id = '{{ id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
AND include[] = '{{ include[] }}'
;

INSERT examples

Create a new Extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.write

INSERT INTO pagerduty.extensions.extensions (
data__extension,
Accept,
Content-Type
)
SELECT
'{{ extension }}' /* required */,
'{{ Accept }}',
'{{ Content-Type }}'
RETURNING
extension
;

DELETE examples

Delete an existing extension.

Once the extension is deleted, it will not be accessible from the web UI and new incidents won't be able to be created for this extension.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.write

DELETE FROM pagerduty.extensions.extensions
WHERE id = '{{ id }}' --required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

Lifecycle Methods

List existing extensions.

Extensions are representations of Extension Schema objects that are attached to Services.

For more information see the API Concepts Document

Scoped OAuth requires: extensions.read

EXEC pagerduty.extensions.extensions._list_extensions 
@limit='{{ limit }}',
@offset='{{ offset }}',
@total={{ total }},
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}',
@query='{{ query }}',
@extension_object_id='{{ extension_object_id }}',
@extension_schema_id='{{ extension_schema_id }}',
@include[]='{{ include[] }}'
;