Skip to main content

webhook_oauth2_client_credentials

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

Overview

Namewebhook_oauth2_client_credentials
TypeResource
Iddatadog.integrations.webhook_oauth2_client_credentials

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the OAuth2 client credentials auth method. (example: 596da4af-0563-4097-90ff-07230c3f9db3)
attributesobjectOAuth2 client credentials attributes returned by the API. The client_secret is never echoed.
typestringOAuth2 client credentials resource type. (webhooks-auth-method-oauth2-client-credentials) (default: webhooks-auth-method-oauth2-client-credentials, example: webhooks-auth-method-oauth2-client-credentials)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_oauth2_client_credentialsselectauth_method_idGet a single OAuth2 client credentials auth method by ID.
create_oauth2_client_credentialsinsertdataCreate a new OAuth2 client credentials auth method for the Webhooks<br />integration. The client_secret is stored securely and never returned.
update_oauth2_client_credentialsupdateauth_method_id, dataUpdate an existing OAuth2 client credentials auth method.
delete_oauth2_client_credentialsdeleteauth_method_idDelete an OAuth2 client credentials auth method by 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
auth_method_idstringThe UUID of the auth method.
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 single OAuth2 client credentials auth method by ID.

SELECT
id,
attributes,
type
FROM datadog.integrations.webhook_oauth2_client_credentials
WHERE auth_method_id = '{{ auth_method_id }}' -- required
;

INSERT examples

Create a new OAuth2 client credentials auth method for the Webhooks<br />integration. The client_secret is stored securely and never returned.

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

UPDATE examples

Update an existing OAuth2 client credentials auth method.

UPDATE datadog.integrations.webhook_oauth2_client_credentials
SET
data = '{{ data }}'
WHERE
auth_method_id = '{{ auth_method_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete an OAuth2 client credentials auth method by ID.

DELETE FROM datadog.integrations.webhook_oauth2_client_credentials
WHERE auth_method_id = '{{ auth_method_id }}' --required
;