v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
CSM Ownership

Get the evidence for an ownership inference

Get the evidence versions backing the current ownership inference for a resource and owner type.

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.

get/api/v2/csm/ownership/{resource_id}/{owner_type}/evidence

Path parameters

resource_idstring required
Example:test-resource

The identifier of the resource to retrieve evidence for.

owner_type'user' | 'team' | 'service' | 'unknown' required

The owner type for an ownership inference.

Example:team

The owner type of the inference to retrieve evidence for.

Headers

If-None-Matchstring
Example:W/"f2e126916327bda8"

A previously returned weak ETag value. When supplied and the evidence has not changed, the endpoint returns 304 Not Modified.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "evidence_versions": [
        {
          "pipeline_id": "p1",
          "version": "v3"
        }
      ]
    },
    "id": "test-resource",
    "type": "ownership_evidence"
  }
}