From 0b3642f60852f8c91281acec26ac257247749e94 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 28 Oct 2026 18:48:16 +0000 Subject: [PATCH] Regenerate client from commit 6ddb0c6 of spec repo --- .generator/schemas/v2/openapi.yaml | 972 +++++++++--------- .../v2/api/csm_ownership_api.py | 12 +- tests/v2/features/undo.json | 72 +- 3 files changed, 528 insertions(+), 528 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3f7576a5dd..ca160108a4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -163351,492 +163351,6 @@ paths: x-unstable: |- **Note**: This endpoint is in Preview and may be subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/csm/ownership/{resource_id}: - get: - description: Get all current ownership inferences for a resource, one per owner type (`user`, `team`, `service`, `unknown`). - operationId: ListOwnershipInferences - parameters: - - description: The identifier of the resource to retrieve ownership inferences for. - in: path - name: resource_id - required: true - schema: - example: test-resource - type: string - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - items: - - checksum: abc123 - confidence: "0.9500" - created_at: "2026-01-15T10:00:00Z" - evidence_versions: - - pipeline_id: p1 - explanation: High confidence match - id: test-resource:team - owner_type: team - primary_contact_ref: ref:handle/team-a - sources: [] - status: suggested - updated_at: "2026-01-15T10:00:00Z" - id: test-resource - type: ownership_inferences - schema: - $ref: "#/components/schemas/OwnershipInferenceListResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: List ownership inferences for a resource - tags: ["CSM Ownership"] - x-unstable: |- - **Note**: This endpoint is in Preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/csm/ownership/{resource_id}/history: - get: - description: List inference history entries for a resource across all owner types, ordered from most recent to oldest. Uses cursor-based pagination. - operationId: ListOwnershipHistory - parameters: - - description: The identifier of the resource to retrieve inference history for. - in: path - name: resource_id - required: true - schema: - example: res-1 - type: string - - description: An opaque, base64-encoded cursor token returned by a previous call in `pagination.next_cursor`. Omit to fetch the first page. - in: query - name: cursor - required: false - schema: - example: eyJpZCI6OTh9 - type: string - - description: The maximum number of history entries to return per page. - in: query - name: limit - required: false - schema: - default: 25 - example: 25 - format: int32 - maximum: 100 - minimum: 1 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - items: - - checksum: "" - confidence: "0.9000" - created_at: "2026-01-15T10:00:00Z" - evidence_versions: - explanation: "" - failed_at: - failure_reason: - id: 100 - owner_type: team - primary_contact_ref: ref:handle/team-a - resource_id: res-1 - retry_schedule: - sources: [] - status: suggested - pagination: - has_more: false - next_cursor: - id: res-1 - type: ownership_history - schema: - $ref: "#/components/schemas/OwnershipHistoryResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: List ownership inference history for a resource - tags: ["CSM Ownership"] - x-unstable: |- - **Note**: This endpoint is in Preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/csm/ownership/{resource_id}/{owner_type}: - get: - description: |- - Get the current ownership inference for a resource for a specific owner type. - - This endpoint supports ETag-based caching. Pass the previously returned `ETag` value in the `If-None-Match` request header to receive a `304 Not Modified` response when the inference has not changed. - operationId: GetOwnershipInference - parameters: - - description: The identifier of the resource to retrieve the ownership inference for. - in: path - name: resource_id - required: true - schema: - example: test-resource - type: string - - description: The owner type of the inference to retrieve. - in: path - name: owner_type - required: true - schema: - $ref: "#/components/schemas/OwnershipOwnerType" - - description: A previously returned `ETag` value. When supplied and the resource has not changed, the endpoint returns `304 Not Modified`. - in: header - name: If-None-Match - required: false - schema: - example: '"abc123"' - type: string - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - checksum: abc123 - confidence: "0.9500" - created_at: "2026-01-15T10:00:00Z" - evidence_versions: - - pipeline_id: p1 - explanation: High confidence match - owner_type: team - primary_contact_ref: ref:handle/team-a - sources: [] - status: suggested - updated_at: "2026-01-15T10:00:00Z" - id: test-resource:team - type: ownership_inference - schema: - $ref: "#/components/schemas/OwnershipInferenceResponse" - description: OK - headers: - Cache-Control: - description: The cache control directives applied to the response. - schema: - example: private, max-age=60 - type: string - ETag: - description: A strong validator that identifies the current state of the inference. - schema: - example: '"abc123"' - type: string - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Get an ownership inference by owner type - tags: ["CSM Ownership"] - x-unstable: |- - **Note**: This endpoint is in Preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/csm/ownership/{resource_id}/{owner_type}/evidence: - get: - description: |- - 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. - operationId: GetOwnershipEvidence - parameters: - - description: The identifier of the resource to retrieve evidence for. - in: path - name: resource_id - required: true - schema: - example: test-resource - type: string - - description: The owner type of the inference to retrieve evidence for. - in: path - name: owner_type - required: true - schema: - $ref: "#/components/schemas/OwnershipOwnerType" - - description: A previously returned weak `ETag` value. When supplied and the evidence has not changed, the endpoint returns `304 Not Modified`. - in: header - name: If-None-Match - required: false - schema: - example: W/"f2e126916327bda8" - type: string - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - evidence_versions: - - pipeline_id: p1 - version: v3 - id: test-resource - type: ownership_evidence - schema: - $ref: "#/components/schemas/OwnershipEvidenceResponse" - description: OK - headers: - ETag: - description: A weak validator that identifies the current state of the evidence. - schema: - example: W/"f2e126916327bda8" - type: string - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Get the evidence for an ownership inference - tags: ["CSM Ownership"] - x-unstable: |- - **Note**: This endpoint is in Preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/csm/ownership/{resource_id}/{owner_type}/feedback: - post: - description: |- - Submit feedback on the current ownership inference for a resource and owner type. Valid actions are `confirm`, `reject`, `correct`, and `persist`. - - 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`. - - When `action` is `correct`, `corrected_owner_handle` and `corrected_owner_type` are required. - operationId: CreateOwnershipFeedback - parameters: - - description: The identifier of the resource that the feedback applies to. - in: path - name: resource_id - required: true - schema: - example: res-1 - type: string - - description: The type of owner that the feedback applies to. - in: path - name: owner_type - required: true - schema: - $ref: "#/components/schemas/OwnershipOwnerType" - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - action: confirm - inference_checksum: abc123 - type: ownership_feedback - schema: - $ref: "#/components/schemas/OwnershipFeedbackRequest" - required: true - responses: - "201": - content: - application/json: - examples: - default: - value: - data: - attributes: - action: confirm - checksum: abc123 - new_status: suggested - owner_type: team - previous_status: suggested - primary_contact_ref: ref:handle/team-a - updated_at: "2026-01-15T10:00:00Z" - id: res-1 - type: ownership_feedback_result - schema: - $ref: "#/components/schemas/OwnershipFeedbackResponse" - description: Created - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "409": - content: - application/json: - schema: - $ref: "#/components/schemas/OwnershipInferenceResponse" - description: Conflict - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Submit feedback on an ownership inference - tags: ["CSM Ownership"] - x-unstable: |- - **Note**: This endpoint is in Preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/csm/ownership/{resource_id}/{owner_type}/history: - get: - description: List inference history entries for a resource filtered by owner type, ordered from most recent to oldest. Uses cursor-based pagination. - operationId: ListOwnershipHistoryByOwnerType - parameters: - - description: The identifier of the resource to retrieve inference history for. - in: path - name: resource_id - required: true - schema: - example: res-1 - type: string - - description: The owner type to filter history by. - in: path - name: owner_type - required: true - schema: - $ref: "#/components/schemas/OwnershipOwnerType" - - description: An opaque, base64-encoded cursor token returned by a previous call in `pagination.next_cursor`. Omit to fetch the first page. - in: query - name: cursor - required: false - schema: - example: eyJpZCI6OTh9 - type: string - - description: The maximum number of history entries to return per page. - in: query - name: limit - required: false - schema: - default: 25 - example: 25 - format: int32 - maximum: 100 - minimum: 1 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - items: - - checksum: "" - confidence: "0.9000" - created_at: "2026-01-15T10:00:00Z" - evidence_versions: - explanation: "" - failed_at: - failure_reason: - id: 100 - owner_type: team - primary_contact_ref: ref:handle/team-a - resource_id: res-1 - retry_schedule: - sources: [] - status: suggested - pagination: - has_more: false - next_cursor: - id: res-1 - type: ownership_history - schema: - $ref: "#/components/schemas/OwnershipHistoryResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: List ownership history by owner type - tags: ["CSM Ownership"] - x-unstable: |- - **Note**: This endpoint is in Preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/csm/settings/agentless_hosts: get: description: Get the list of agentless hosts for CSM, with optional pagination and filtering. @@ -229494,6 +229008,492 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/security/ownership/{resource_id}: + get: + description: Get all current ownership inferences for a resource, one per owner type (`user`, `team`, `service`, `unknown`). + operationId: ListOwnershipInferences + parameters: + - description: The identifier of the resource to retrieve ownership inferences for. + in: path + name: resource_id + required: true + schema: + example: test-resource + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + items: + - checksum: abc123 + confidence: "0.9500" + created_at: "2026-01-15T10:00:00Z" + evidence_versions: + - pipeline_id: p1 + explanation: High confidence match + id: test-resource:team + owner_type: team + primary_contact_ref: ref:handle/team-a + sources: [] + status: suggested + updated_at: "2026-01-15T10:00:00Z" + id: test-resource + type: ownership_inferences + schema: + $ref: "#/components/schemas/OwnershipInferenceListResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List ownership inferences for a resource + tags: ["CSM Ownership"] + x-unstable: |- + **Note**: This endpoint is in Preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/security/ownership/{resource_id}/history: + get: + description: List inference history entries for a resource across all owner types, ordered from most recent to oldest. Uses cursor-based pagination. + operationId: ListOwnershipHistory + parameters: + - description: The identifier of the resource to retrieve inference history for. + in: path + name: resource_id + required: true + schema: + example: res-1 + type: string + - description: An opaque, base64-encoded cursor token returned by a previous call in `pagination.next_cursor`. Omit to fetch the first page. + in: query + name: cursor + required: false + schema: + example: eyJpZCI6OTh9 + type: string + - description: The maximum number of history entries to return per page. + in: query + name: limit + required: false + schema: + default: 25 + example: 25 + format: int32 + maximum: 100 + minimum: 1 + type: integer + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + items: + - checksum: "" + confidence: "0.9000" + created_at: "2026-01-15T10:00:00Z" + evidence_versions: + explanation: "" + failed_at: + failure_reason: + id: 100 + owner_type: team + primary_contact_ref: ref:handle/team-a + resource_id: res-1 + retry_schedule: + sources: [] + status: suggested + pagination: + has_more: false + next_cursor: + id: res-1 + type: ownership_history + schema: + $ref: "#/components/schemas/OwnershipHistoryResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Unauthorized + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List ownership inference history for a resource + tags: ["CSM Ownership"] + x-unstable: |- + **Note**: This endpoint is in Preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/security/ownership/{resource_id}/{owner_type}: + get: + description: |- + Get the current ownership inference for a resource for a specific owner type. + + This endpoint supports ETag-based caching. Pass the previously returned `ETag` value in the `If-None-Match` request header to receive a `304 Not Modified` response when the inference has not changed. + operationId: GetOwnershipInference + parameters: + - description: The identifier of the resource to retrieve the ownership inference for. + in: path + name: resource_id + required: true + schema: + example: test-resource + type: string + - description: The owner type of the inference to retrieve. + in: path + name: owner_type + required: true + schema: + $ref: "#/components/schemas/OwnershipOwnerType" + - description: A previously returned `ETag` value. When supplied and the resource has not changed, the endpoint returns `304 Not Modified`. + in: header + name: If-None-Match + required: false + schema: + example: '"abc123"' + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + checksum: abc123 + confidence: "0.9500" + created_at: "2026-01-15T10:00:00Z" + evidence_versions: + - pipeline_id: p1 + explanation: High confidence match + owner_type: team + primary_contact_ref: ref:handle/team-a + sources: [] + status: suggested + updated_at: "2026-01-15T10:00:00Z" + id: test-resource:team + type: ownership_inference + schema: + $ref: "#/components/schemas/OwnershipInferenceResponse" + description: OK + headers: + Cache-Control: + description: The cache control directives applied to the response. + schema: + example: private, max-age=60 + type: string + ETag: + description: A strong validator that identifies the current state of the inference. + schema: + example: '"abc123"' + type: string + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get an ownership inference by owner type + tags: ["CSM Ownership"] + x-unstable: |- + **Note**: This endpoint is in Preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/security/ownership/{resource_id}/{owner_type}/evidence: + get: + description: |- + 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. + operationId: GetOwnershipEvidence + parameters: + - description: The identifier of the resource to retrieve evidence for. + in: path + name: resource_id + required: true + schema: + example: test-resource + type: string + - description: The owner type of the inference to retrieve evidence for. + in: path + name: owner_type + required: true + schema: + $ref: "#/components/schemas/OwnershipOwnerType" + - description: A previously returned weak `ETag` value. When supplied and the evidence has not changed, the endpoint returns `304 Not Modified`. + in: header + name: If-None-Match + required: false + schema: + example: W/"f2e126916327bda8" + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + evidence_versions: + - pipeline_id: p1 + version: v3 + id: test-resource + type: ownership_evidence + schema: + $ref: "#/components/schemas/OwnershipEvidenceResponse" + description: OK + headers: + ETag: + description: A weak validator that identifies the current state of the evidence. + schema: + example: W/"f2e126916327bda8" + type: string + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get the evidence for an ownership inference + tags: ["CSM Ownership"] + x-unstable: |- + **Note**: This endpoint is in Preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/security/ownership/{resource_id}/{owner_type}/feedback: + post: + description: |- + Submit feedback on the current ownership inference for a resource and owner type. Valid actions are `confirm`, `reject`, `correct`, and `persist`. + + 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`. + + When `action` is `correct`, `corrected_owner_handle` and `corrected_owner_type` are required. + operationId: CreateOwnershipFeedback + parameters: + - description: The identifier of the resource that the feedback applies to. + in: path + name: resource_id + required: true + schema: + example: res-1 + type: string + - description: The type of owner that the feedback applies to. + in: path + name: owner_type + required: true + schema: + $ref: "#/components/schemas/OwnershipOwnerType" + requestBody: + content: + application/json: + examples: + default: + value: + data: + attributes: + action: confirm + inference_checksum: abc123 + type: ownership_feedback + schema: + $ref: "#/components/schemas/OwnershipFeedbackRequest" + required: true + responses: + "201": + content: + application/json: + examples: + default: + value: + data: + attributes: + action: confirm + checksum: abc123 + new_status: suggested + owner_type: team + previous_status: suggested + primary_contact_ref: ref:handle/team-a + updated_at: "2026-01-15T10:00:00Z" + id: res-1 + type: ownership_feedback_result + schema: + $ref: "#/components/schemas/OwnershipFeedbackResponse" + description: Created + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "409": + content: + application/json: + schema: + $ref: "#/components/schemas/OwnershipInferenceResponse" + description: Conflict + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Submit feedback on an ownership inference + tags: ["CSM Ownership"] + x-unstable: |- + **Note**: This endpoint is in Preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/security/ownership/{resource_id}/{owner_type}/history: + get: + description: List inference history entries for a resource filtered by owner type, ordered from most recent to oldest. Uses cursor-based pagination. + operationId: ListOwnershipHistoryByOwnerType + parameters: + - description: The identifier of the resource to retrieve inference history for. + in: path + name: resource_id + required: true + schema: + example: res-1 + type: string + - description: The owner type to filter history by. + in: path + name: owner_type + required: true + schema: + $ref: "#/components/schemas/OwnershipOwnerType" + - description: An opaque, base64-encoded cursor token returned by a previous call in `pagination.next_cursor`. Omit to fetch the first page. + in: query + name: cursor + required: false + schema: + example: eyJpZCI6OTh9 + type: string + - description: The maximum number of history entries to return per page. + in: query + name: limit + required: false + schema: + default: 25 + example: 25 + format: int32 + maximum: 100 + minimum: 1 + type: integer + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + items: + - checksum: "" + confidence: "0.9000" + created_at: "2026-01-15T10:00:00Z" + evidence_versions: + explanation: "" + failed_at: + failure_reason: + id: 100 + owner_type: team + primary_contact_ref: ref:handle/team-a + resource_id: res-1 + retry_schedule: + sources: [] + status: suggested + pagination: + has_more: false + next_cursor: + id: res-1 + type: ownership_history + schema: + $ref: "#/components/schemas/OwnershipHistoryResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "401": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Unauthorized + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List ownership history by owner type + tags: ["CSM Ownership"] + x-unstable: |- + **Note**: This endpoint is in Preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/sboms: get: description: |- diff --git a/src/datadog_api_client/v2/api/csm_ownership_api.py b/src/datadog_api_client/v2/api/csm_ownership_api.py index 2773bda9f5..0085d45a1e 100644 --- a/src/datadog_api_client/v2/api/csm_ownership_api.py +++ b/src/datadog_api_client/v2/api/csm_ownership_api.py @@ -41,7 +41,7 @@ def __init__(self, api_client=None): settings={ "response_type": (OwnershipFeedbackResponse,), "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/csm/ownership/{resource_id}/{owner_type}/feedback", + "endpoint_path": "/api/v2/security/ownership/{resource_id}/{owner_type}/feedback", "operation_id": "create_ownership_feedback", "http_method": "POST", "version": "v2", @@ -73,7 +73,7 @@ def __init__(self, api_client=None): settings={ "response_type": (OwnershipEvidenceResponse,), "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/csm/ownership/{resource_id}/{owner_type}/evidence", + "endpoint_path": "/api/v2/security/ownership/{resource_id}/{owner_type}/evidence", "operation_id": "get_ownership_evidence", "http_method": "GET", "version": "v2", @@ -107,7 +107,7 @@ def __init__(self, api_client=None): settings={ "response_type": (OwnershipInferenceResponse,), "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/csm/ownership/{resource_id}/{owner_type}", + "endpoint_path": "/api/v2/security/ownership/{resource_id}/{owner_type}", "operation_id": "get_ownership_inference", "http_method": "GET", "version": "v2", @@ -173,7 +173,7 @@ def __init__(self, api_client=None): settings={ "response_type": (OwnershipHistoryResponse,), "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/csm/ownership/{resource_id}/history", + "endpoint_path": "/api/v2/security/ownership/{resource_id}/history", "operation_id": "list_ownership_history", "http_method": "GET", "version": "v2", @@ -210,7 +210,7 @@ def __init__(self, api_client=None): settings={ "response_type": (OwnershipHistoryResponse,), "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/csm/ownership/{resource_id}/{owner_type}/history", + "endpoint_path": "/api/v2/security/ownership/{resource_id}/{owner_type}/history", "operation_id": "list_ownership_history_by_owner_type", "http_method": "GET", "version": "v2", @@ -253,7 +253,7 @@ def __init__(self, api_client=None): settings={ "response_type": (OwnershipInferenceListResponse,), "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/csm/ownership/{resource_id}", + "endpoint_path": "/api/v2/security/ownership/{resource_id}", "operation_id": "list_ownership_inferences", "http_method": "GET", "version": "v2", diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index 2b20834efc..007a4b45c9 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -2183,42 +2183,6 @@ "type": "safe" } }, - "ListOwnershipInferences": { - "tag": "CSM Ownership", - "undo": { - "type": "safe" - } - }, - "ListOwnershipHistory": { - "tag": "CSM Ownership", - "undo": { - "type": "safe" - } - }, - "GetOwnershipInference": { - "tag": "CSM Ownership", - "undo": { - "type": "safe" - } - }, - "GetOwnershipEvidence": { - "tag": "CSM Ownership", - "undo": { - "type": "safe" - } - }, - "CreateOwnershipFeedback": { - "tag": "CSM Ownership", - "undo": { - "type": "idempotent" - } - }, - "ListOwnershipHistoryByOwnerType": { - "tag": "CSM Ownership", - "undo": { - "type": "safe" - } - }, "ListCSMAgentlessHosts": { "tag": "CSM Settings", "undo": { @@ -8991,6 +8955,42 @@ "type": "idempotent" } }, + "ListOwnershipInferences": { + "tag": "CSM Ownership", + "undo": { + "type": "safe" + } + }, + "ListOwnershipHistory": { + "tag": "CSM Ownership", + "undo": { + "type": "safe" + } + }, + "GetOwnershipInference": { + "tag": "CSM Ownership", + "undo": { + "type": "safe" + } + }, + "GetOwnershipEvidence": { + "tag": "CSM Ownership", + "undo": { + "type": "safe" + } + }, + "CreateOwnershipFeedback": { + "tag": "CSM Ownership", + "undo": { + "type": "idempotent" + } + }, + "ListOwnershipHistoryByOwnerType": { + "tag": "CSM Ownership", + "undo": { + "type": "safe" + } + }, "ListAssetsSBOMs": { "tag": "Security Monitoring", "undo": {