Skip to main content

resource_subscriptions

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

Overview

Nameresource_subscriptions
TypeResource
Idconfluent.notifications.resource_subscriptions

Fields

The following fields are returned by SELECT queries:

Resource Subscription.

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)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (notifications/v1)
current_statestringDenotes the state of the resource preference. When the resource preference is ENABLED, the user will receive notifications for the Confluent Cloud resource. If the resource preference is DISABLED, the user will not receive any notification for the resource. Note that, you will still receive notifications for REQUIRED notification type even when it is DISABLED. (example: ENABLED)
integrationsarrayIntegrations to which notifications are to be sent.
kindstringKind defines the object this REST resource represents. (ResourceSubscription)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
notification_typeobjectThe type of notification to subscribe to.
resourcestringDenotes the Confluent Cloud resource definition. (example: environment=env-456xy/cloud-cluster=lkc-df123/connector=my_datagen_connector)
resource_typestringDenotes the Confluent Cloud resource type. (example: CONNECTOR)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_notifications_v1_resource_subscriptionselectidMake a request to read a resource subscription.
list_notifications_v1_resource_subscriptions_by_filterselectresource, resource_typepage_size, page_tokenMake a request to list_by_filter a resource subscription.
create_notifications_v1_resource_subscriptioninsertresource, resource_type, notification_type, integrationsMake a request to create a resource subscription.
update_notifications_v1_resource_subscriptionupdateidMake a request to update a resource subscription.

delete_notifications_v1_resource_subscriptiondeleteidMake a request to delete a resource subscription.

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 resource subscription.
resourcestringConfluent Cloud resource definition
resource_typestringConfluent Cloud resource type
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read a resource subscription.

SELECT
id,
api_version,
current_state,
integrations,
kind,
metadata,
notification_type,
resource,
resource_type
FROM confluent.notifications.resource_subscriptions
WHERE id = '{{ id }}' -- required
;

INSERT examples

Make a request to create a resource subscription.

INSERT INTO confluent.notifications.resource_subscriptions (
resource,
resource_type,
current_state,
notification_type,
integrations
)
SELECT
'{{ resource }}' /* required */,
'{{ resource_type }}' /* required */,
'{{ current_state }}',
'{{ notification_type }}' /* required */,
'{{ integrations }}' /* required */
RETURNING
id,
api_version,
current_state,
integrations,
kind,
metadata,
notification_type,
resource,
resource_type
;

UPDATE examples

Make a request to update a resource subscription.

UPDATE confluent.notifications.resource_subscriptions
SET
resource = '{{ resource }}',
resource_type = '{{ resource_type }}',
current_state = '{{ current_state }}',
notification_type = '{{ notification_type }}',
integrations = '{{ integrations }}'
WHERE
id = '{{ id }}' --required
RETURNING
id,
api_version,
current_state,
integrations,
kind,
metadata,
notification_type,
resource,
resource_type;

DELETE examples

Make a request to delete a resource subscription.

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