Skip to content

Commit b00a02f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 77aa226 of spec repo (#38345)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5081de3 commit b00a02f

7 files changed

Lines changed: 527 additions & 0 deletions

File tree

config/_default/menus/api.en.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8622,6 +8622,45 @@ menu:
86228622
unstable:
86238623
- v2
86248624
order: 1
8625+
- name: Count untagged findings by ownership confidence
8626+
url: /api/latest/csm-ownership/count-untagged-findings-by-ownership-confidence/
8627+
identifier: csm-ownership-count-untagged-findings-by-ownership-confidence
8628+
parent: csm-ownership
8629+
generated: true
8630+
params:
8631+
versions:
8632+
- v2
8633+
operationids:
8634+
- GetOwnershipUntaggedFindings
8635+
unstable:
8636+
- v2
8637+
order: 9
8638+
- name: Update ownership settings for the org
8639+
url: /api/latest/csm-ownership/update-ownership-settings-for-the-org/
8640+
identifier: csm-ownership-update-ownership-settings-for-the-org
8641+
parent: csm-ownership
8642+
generated: true
8643+
params:
8644+
versions:
8645+
- v2
8646+
operationids:
8647+
- PostOwnershipSettings
8648+
unstable:
8649+
- v2
8650+
order: 8
8651+
- name: Get ownership settings for the org
8652+
url: /api/latest/csm-ownership/get-ownership-settings-for-the-org/
8653+
identifier: csm-ownership-get-ownership-settings-for-the-org
8654+
parent: csm-ownership
8655+
generated: true
8656+
params:
8657+
versions:
8658+
- v2
8659+
operationids:
8660+
- GetOwnershipSettings
8661+
unstable:
8662+
- v2
8663+
order: 7
86258664
- name: CSM Settings
86268665
url: /api/latest/csm-settings/
86278666
identifier: csm-settings
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Count untagged findings by ownership confidence
3+
---
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Get ownership settings for the org
3+
---
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Update ownership settings for the org
3+
---

content/en/api/v2/csm-ownership/examples.json

Lines changed: 182 additions & 0 deletions
Large diffs are not rendered by default.

data/api/v2/full_spec.yaml

Lines changed: 283 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75883,6 +75883,18 @@ components:
7588375883
required:
7588475884
- data
7588575885
type: object
75886+
OwnershipConfidenceLevel:
75887+
description: The ownership confidence level.
75888+
enum:
75889+
- high
75890+
- medium
75891+
- low
75892+
example: high
75893+
type: string
75894+
x-enum-varnames:
75895+
- HIGH
75896+
- MEDIUM
75897+
- LOW
7588675898
OwnershipEvidenceAttributes:
7588775899
description: The attributes of an ownership evidence response.
7588875900
properties:
@@ -76446,6 +76458,152 @@ components:
7644676458
- TEAM
7644776459
- SERVICE
7644876460
- UNKNOWN
76461+
OwnershipSettingsAttributes:
76462+
description: The attributes of the ownership settings response.
76463+
properties:
76464+
auto_tag:
76465+
description: Whether automatic ownership tagging is enabled.
76466+
example: true
76467+
type: boolean
76468+
confidence_level:
76469+
$ref: "#/components/schemas/OwnershipConfidenceLevel"
76470+
version:
76471+
description: The current version of the ownership settings.
76472+
example: 1
76473+
format: int64
76474+
type: integer
76475+
required:
76476+
- version
76477+
- auto_tag
76478+
- confidence_level
76479+
type: object
76480+
OwnershipSettingsData:
76481+
description: The data wrapper for an ownership settings response.
76482+
properties:
76483+
attributes:
76484+
$ref: "#/components/schemas/OwnershipSettingsAttributes"
76485+
id:
76486+
description: The identifier of the ownership settings resource.
76487+
example: settings
76488+
type: string
76489+
type:
76490+
$ref: "#/components/schemas/OwnershipSettingsType"
76491+
required:
76492+
- id
76493+
- type
76494+
- attributes
76495+
type: object
76496+
OwnershipSettingsRequest:
76497+
description: The request body for updating ownership settings.
76498+
properties:
76499+
data:
76500+
$ref: "#/components/schemas/OwnershipSettingsRequestData"
76501+
required:
76502+
- data
76503+
type: object
76504+
OwnershipSettingsRequestAttributes:
76505+
description: The attributes of an ownership settings request.
76506+
properties:
76507+
auto_tag:
76508+
description: Whether automatic ownership tagging is enabled.
76509+
example: true
76510+
type: boolean
76511+
confidence_level:
76512+
$ref: "#/components/schemas/OwnershipConfidenceLevel"
76513+
required:
76514+
- auto_tag
76515+
- confidence_level
76516+
type: object
76517+
OwnershipSettingsRequestData:
76518+
description: The data wrapper for an ownership settings request.
76519+
properties:
76520+
attributes:
76521+
$ref: "#/components/schemas/OwnershipSettingsRequestAttributes"
76522+
type:
76523+
$ref: "#/components/schemas/OwnershipSettingsType"
76524+
required:
76525+
- type
76526+
- attributes
76527+
type: object
76528+
OwnershipSettingsResponse:
76529+
description: The response returned when retrieving or updating ownership settings.
76530+
properties:
76531+
data:
76532+
$ref: "#/components/schemas/OwnershipSettingsData"
76533+
required:
76534+
- data
76535+
type: object
76536+
OwnershipSettingsType:
76537+
default: ownership_settings
76538+
description: The type of the ownership settings resource. The value should always be `ownership_settings`.
76539+
enum:
76540+
- ownership_settings
76541+
example: ownership_settings
76542+
type: string
76543+
x-enum-varnames:
76544+
- OWNERSHIP_SETTINGS
76545+
OwnershipUntaggedFindingsAttributes:
76546+
description: The counts of findings without a team tag by ownership confidence.
76547+
properties:
76548+
high_confidence:
76549+
description: The number of high confidence findings without a team tag.
76550+
example: 30
76551+
format: int64
76552+
type: integer
76553+
low_confidence:
76554+
description: The number of low confidence findings without a team tag.
76555+
example: 42
76556+
format: int64
76557+
type: integer
76558+
medium_confidence:
76559+
description: The number of medium confidence findings without a team tag.
76560+
example: 70
76561+
format: int64
76562+
type: integer
76563+
total:
76564+
description: The total number of findings without a team tag.
76565+
example: 142
76566+
format: int64
76567+
type: integer
76568+
required:
76569+
- total
76570+
- high_confidence
76571+
- medium_confidence
76572+
- low_confidence
76573+
type: object
76574+
OwnershipUntaggedFindingsData:
76575+
description: The data wrapper for an ownership untagged findings response.
76576+
properties:
76577+
attributes:
76578+
$ref: "#/components/schemas/OwnershipUntaggedFindingsAttributes"
76579+
id:
76580+
description: The identifier of the ownership untagged findings resource.
76581+
example: untagged
76582+
type: string
76583+
type:
76584+
$ref: "#/components/schemas/OwnershipUntaggedFindingsType"
76585+
required:
76586+
- id
76587+
- type
76588+
- attributes
76589+
type: object
76590+
OwnershipUntaggedFindingsResponse:
76591+
description: The response returned when counting findings without a team tag by ownership confidence.
76592+
properties:
76593+
data:
76594+
$ref: "#/components/schemas/OwnershipUntaggedFindingsData"
76595+
required:
76596+
- data
76597+
type: object
76598+
OwnershipUntaggedFindingsType:
76599+
default: ownership_untagged_findings
76600+
description: The type of the ownership untagged findings resource. The value should always be `ownership_untagged_findings`.
76601+
enum:
76602+
- ownership_untagged_findings
76603+
example: ownership_untagged_findings
76604+
type: string
76605+
x-enum-varnames:
76606+
- OWNERSHIP_UNTAGGED_FINDINGS
7644976607
PESymbolFileEvent:
7645076608
description: Metadata for a PE/PDB symbol file upload, sent as a JSON-encoded `event` field.
7645176609
properties:
@@ -133710,6 +133868,131 @@ paths:
133710133868
summary: Get all CSM Serverless Agents
133711133869
tags: ["CSM Agents"]
133712133870
x-menu-order: 4
133871+
/api/v2/csm/ownership/settings:
133872+
get:
133873+
description: Get ownership settings for the org. When settings are unset, the API returns the default opt-out configuration with `auto_tag` set to `true` and `confidence_level` set to `high`.
133874+
operationId: GetOwnershipSettings
133875+
responses:
133876+
"200":
133877+
content:
133878+
application/json:
133879+
examples:
133880+
default:
133881+
value:
133882+
data:
133883+
attributes:
133884+
auto_tag: true
133885+
confidence_level: high
133886+
version: 1
133887+
id: settings
133888+
type: ownership_settings
133889+
schema:
133890+
$ref: "#/components/schemas/OwnershipSettingsResponse"
133891+
description: OK
133892+
"401":
133893+
content:
133894+
application/json:
133895+
schema:
133896+
$ref: "#/components/schemas/JSONAPIErrorResponse"
133897+
description: Unauthorized
133898+
"429":
133899+
$ref: "#/components/responses/TooManyRequestsResponse"
133900+
summary: Get ownership settings for the org
133901+
tags: ["CSM Ownership"]
133902+
x-menu-order: 7
133903+
x-unstable: |-
133904+
**Note**: This endpoint is in Preview and may be subject to change.
133905+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
133906+
post:
133907+
description: Update ownership settings for the org.
133908+
operationId: PostOwnershipSettings
133909+
requestBody:
133910+
content:
133911+
application/json:
133912+
examples:
133913+
default:
133914+
value:
133915+
data:
133916+
attributes:
133917+
auto_tag: true
133918+
confidence_level: high
133919+
type: ownership_settings
133920+
schema:
133921+
$ref: "#/components/schemas/OwnershipSettingsRequest"
133922+
required: true
133923+
responses:
133924+
"200":
133925+
content:
133926+
application/json:
133927+
examples:
133928+
default:
133929+
value:
133930+
data:
133931+
attributes:
133932+
auto_tag: true
133933+
confidence_level: high
133934+
version: 1
133935+
id: settings
133936+
type: ownership_settings
133937+
schema:
133938+
$ref: "#/components/schemas/OwnershipSettingsResponse"
133939+
description: OK
133940+
"400":
133941+
content:
133942+
application/json:
133943+
schema:
133944+
$ref: "#/components/schemas/JSONAPIErrorResponse"
133945+
description: Bad Request
133946+
"401":
133947+
content:
133948+
application/json:
133949+
schema:
133950+
$ref: "#/components/schemas/JSONAPIErrorResponse"
133951+
description: Unauthorized
133952+
"429":
133953+
$ref: "#/components/responses/TooManyRequestsResponse"
133954+
summary: Update ownership settings for the org
133955+
tags: ["CSM Ownership"]
133956+
x-menu-order: 8
133957+
x-unstable: |-
133958+
**Note**: This endpoint is in Preview and may be subject to change.
133959+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
133960+
/api/v2/csm/ownership/settings/untagged:
133961+
get:
133962+
description: Count findings with no team tag, grouped by ownership confidence level.
133963+
operationId: GetOwnershipUntaggedFindings
133964+
responses:
133965+
"200":
133966+
content:
133967+
application/json:
133968+
examples:
133969+
default:
133970+
value:
133971+
data:
133972+
attributes:
133973+
high_confidence: 30
133974+
low_confidence: 42
133975+
medium_confidence: 70
133976+
total: 142
133977+
id: untagged
133978+
type: ownership_untagged_findings
133979+
schema:
133980+
$ref: "#/components/schemas/OwnershipUntaggedFindingsResponse"
133981+
description: OK
133982+
"401":
133983+
content:
133984+
application/json:
133985+
schema:
133986+
$ref: "#/components/schemas/JSONAPIErrorResponse"
133987+
description: Unauthorized
133988+
"429":
133989+
$ref: "#/components/responses/TooManyRequestsResponse"
133990+
summary: Count untagged findings by ownership confidence
133991+
tags: ["CSM Ownership"]
133992+
x-menu-order: 9
133993+
x-unstable: |-
133994+
**Note**: This endpoint is in Preview and may be subject to change.
133995+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
133713133996
/api/v2/csm/ownership/{resource_id}:
133714133997
get:
133715133998
description: Get all current ownership inferences for a resource, one per owner type (`user`, `team`, `service`, `unknown`).

data/api/v2/translate_actions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,20 @@
14501450
"description": "Get the list of all CSM Serverless Agents running on your hosts and containers.",
14511451
"summary": "Get all CSM Serverless Agents"
14521452
},
1453+
"GetOwnershipSettings": {
1454+
"description": "Get ownership settings for the org. When settings are unset, the API returns the default opt-out configuration with `auto_tag` set to `true` and `confidence_level` set to `high`.",
1455+
"summary": "Get ownership settings for the org"
1456+
},
1457+
"PostOwnershipSettings": {
1458+
"description": "Update ownership settings for the org.",
1459+
"summary": "Update ownership settings for the org",
1460+
"request_description": "",
1461+
"request_schema_description": "The request body for updating ownership settings."
1462+
},
1463+
"GetOwnershipUntaggedFindings": {
1464+
"description": "Count findings with no team tag, grouped by ownership confidence level.",
1465+
"summary": "Count untagged findings by ownership confidence"
1466+
},
14531467
"ListOwnershipInferences": {
14541468
"description": "Get all current ownership inferences for a resource, one per owner type (`user`, `team`, `service`, `unknown`).",
14551469
"summary": "List ownership inferences for a resource"

0 commit comments

Comments
 (0)