csm_ownership_feedbacks
Creates, updates, deletes, gets or lists a csm_ownership_feedbacks resource.
Overview
| Name | csm_ownership_feedbacks |
| Type | Resource |
| Id | datadog.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_ownership_feedback | insert | resource_id, owner_type, data | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
owner_type | string | The type of owner that the feedback applies to. |
resource_id | string | The identifier of the resource that the feedback applies to. |
site | string | The 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
- create_ownership_feedback
- Manifest
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
;
# Description fields are for documentation purposes
- name: csm_ownership_feedbacks
props:
- name: resource_id
value: "{{ resource_id }}"
description: Required parameter for the csm_ownership_feedbacks resource.
- name: owner_type
value: "{{ owner_type }}"
description: Required parameter for the csm_ownership_feedbacks resource.
- name: data
description: |
The data wrapper for an ownership feedback request.
value:
attributes:
action: "{{ action }}"
actor_handle: "{{ actor_handle }}"
actor_type: "{{ actor_type }}"
corrected_owner_handle: "{{ corrected_owner_handle }}"
corrected_owner_type: "{{ corrected_owner_type }}"
inference_checksum: "{{ inference_checksum }}"
reason: "{{ reason }}"
type: "{{ type }}"