Skip to main content

confluent_resources

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

Overview

Nameconfluent_resources
TypeResource
Iddatadog.integrations.confluent_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID associated with the Confluent resource. (example: resource_id_abc123)
attributesobjectModel representation of a Confluent Cloud resource.
typestringThe JSON:API type for this request. (confluent-cloud-resources) (default: confluent-cloud-resources, example: confluent-cloud-resources)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_confluent_resourceselectaccount_id, resource_idGet a Confluent resource with the provided resource id for the account associated with the provided account ID.
list_confluent_resourceselectaccount_idGet a Confluent resource for the account associated with the provided ID.
create_confluent_resourceinsertaccount_id, dataCreate a Confluent resource for the account associated with the provided ID.
update_confluent_resourceupdateaccount_id, resource_id, dataUpdate a Confluent resource with the provided resource id for the account associated with the provided account ID.
delete_confluent_resourcedeleteaccount_id, resource_idDelete a Confluent resource with the provided resource id for the account associated with the provided account ID.

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
account_idstringConfluent Account ID.
resource_idstringConfluent Account Resource ID.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Get a Confluent resource with the provided resource id for the account associated with the provided account ID.

SELECT
id,
attributes,
type
FROM datadog.integrations.confluent_resources
WHERE account_id = '{{ account_id }}' -- required
AND resource_id = '{{ resource_id }}' -- required
;

INSERT examples

Create a Confluent resource for the account associated with the provided ID.

INSERT INTO datadog.integrations.confluent_resources (
data,
account_id
)
SELECT
'{{ data }}' /* required */,
'{{ account_id }}'
RETURNING
data
;

UPDATE examples

Update a Confluent resource with the provided resource id for the account associated with the provided account ID.

UPDATE datadog.integrations.confluent_resources
SET
data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND resource_id = '{{ resource_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a Confluent resource with the provided resource id for the account associated with the provided account ID.

DELETE FROM datadog.integrations.confluent_resources
WHERE account_id = '{{ account_id }}' --required
AND resource_id = '{{ resource_id }}' --required
;