Skip to main content

csm_ownership_feedbacks

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

Overview

Namecsm_ownership_feedbacks
TypeResource
Iddatadog.security.csm_ownership_feedbacks

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_ownership_feedbackinsertresource_id, owner_type, dataSubmit feedback on the current ownership inference for a resource and owner type. Valid actions are confirm, reject, correct, and persist.<br /><br />The request must include the current inference checksum in inference_checksum. If the checksum does not match the current inference state, the endpoint returns 409 Conflict.<br /><br />When action is correct, corrected_owner_handle and corrected_owner_type are required.

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
owner_typestringThe type of owner that the feedback applies to.
resource_idstringThe identifier of the resource that the feedback applies to.
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.

INSERT examples

Submit feedback on the current ownership inference for a resource and owner type. Valid actions are confirm, reject, correct, and persist.<br /><br />The request must include the current inference checksum in inference_checksum. If the checksum does not match the current inference state, the endpoint returns 409 Conflict.<br /><br />When action is correct, corrected_owner_handle and corrected_owner_type are required.

INSERT INTO datadog.security.csm_ownership_feedbacks (
data,
resource_id,
owner_type
)
SELECT
'{{ data }}' /* required */,
'{{ resource_id }}',
'{{ owner_type }}'
RETURNING
data
;