Skip to main content

integrations

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

Overview

Nameintegrations
TypeResource
Idconfluent.notifications.integrations

Fields

The following fields are returned by SELECT queries:

Integration.

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de)
display_namestringA human readable name for the particular integration (example: Slack integration)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (notifications/v1)
descriptionstringA human readable description for the particular integration (example: A Slack channel integration)
kindstringKind defines the object this REST resource represents. (Integration)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
targetobjectIntegration-specific details (integration targets)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_notifications_v1_integrationselectidMake a request to read an integration.
list_notifications_v1_integrationsselectpage_size, page_tokenRetrieve a sorted, filtered, paginated list of all integrations.
create_notifications_v1_integrationinsertdisplay_name, targetMake a request to create an integration.
update_notifications_v1_integrationupdateidMake a request to update an integration.

delete_notifications_v1_integrationdeleteidMake a request to delete an integration.
test_notifications_v1_integrationexecdisplay_name, targetSends a test notification to validate the integration. This is supported only for Webhook, Slack
and MsTeams targets

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 unique identifier for the integration.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read an integration.

SELECT
id,
display_name,
api_version,
description,
kind,
metadata,
target
FROM confluent.notifications.integrations
WHERE id = '{{ id }}' -- required
;

INSERT examples

Make a request to create an integration.

INSERT INTO confluent.notifications.integrations (
display_name,
description,
target
)
SELECT
'{{ display_name }}' /* required */,
'{{ description }}',
'{{ target }}' /* required */
RETURNING
id,
display_name,
api_version,
description,
kind,
metadata,
target
;

UPDATE examples

Make a request to update an integration.

UPDATE confluent.notifications.integrations
SET
display_name = '{{ display_name }}',
description = '{{ description }}',
target = '{{ target }}'
WHERE
id = '{{ id }}' --required
RETURNING
id,
display_name,
api_version,
description,
kind,
metadata,
target;

DELETE examples

Make a request to delete an integration.

DELETE FROM confluent.notifications.integrations
WHERE id = '{{ id }}' --required
;

Lifecycle Methods

Sends a test notification to validate the integration. This is supported only for Webhook, Slack
and MsTeams targets

EXEC confluent.notifications.integrations.test_notifications_v1_integration
@@json=
'{
"display_name": "{{ display_name }}",
"description": "{{ description }}",
"target": "{{ target }}"
}'
;