Skip to main content

csm_ownership_evidences

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

Overview

Namecsm_ownership_evidences
TypeResource
Iddatadog.security.csm_ownership_evidences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the resource the evidence applies to. (example: test-resource)
attributesobjectThe attributes of an ownership evidence response.
typestringThe type of the ownership evidence resource. The value should always be ownership_evidence. (ownership_evidence) (default: ownership_evidence, example: ownership_evidence)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ownership_evidenceselectresource_id, owner_typeif-_none-_matchGet the evidence versions backing the current ownership inference for a resource and owner type.<br /><br />This endpoint supports weak ETag caching. Pass the previously returned ETag value in the If-None-Match request header to receive a 304 Not Modified response when the evidence has not changed.

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 owner type of the inference to retrieve evidence for.
resource_idstringThe identifier of the resource to retrieve evidence for.
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.
if-_none-_matchstringA previously returned weak ETag value. When supplied and the evidence has not changed, the endpoint returns 304 Not Modified. (wire: If-None-Match)

SELECT examples

Get the evidence versions backing the current ownership inference for a resource and owner type.<br /><br />This endpoint supports weak ETag caching. Pass the previously returned ETag value in the If-None-Match request header to receive a 304 Not Modified response when the evidence has not changed.

SELECT
id,
attributes,
type
FROM datadog.security.csm_ownership_evidences
WHERE resource_id = '{{ resource_id }}' -- required
AND owner_type = '{{ owner_type }}' -- required
AND if-_none-_match = '{{ if-_none-_match }}'
;