csm_ownership_evidences
Creates, updates, deletes, gets or lists a csm_ownership_evidences resource.
Overview
| Name | csm_ownership_evidences |
| Type | Resource |
| Id | datadog.security.csm_ownership_evidences |
Fields
The following fields are returned by SELECT queries:
- get_ownership_evidence
| Name | Datatype | Description |
|---|---|---|
id | string | The identifier of the resource the evidence applies to. (example: test-resource) |
attributes | object | The attributes of an ownership evidence response. |
type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_ownership_evidence | select | resource_id, owner_type | if-_none-_match | 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. |
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 owner type of the inference to retrieve evidence for. |
resource_id | string | The identifier of the resource to retrieve evidence for. |
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. |
if-_none-_match | string | A 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_ownership_evidence
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 }}'
;