Skip to content

Commit 79d9363

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1aa71ee of spec repo
1 parent 7685d15 commit 79d9363

20 files changed

Lines changed: 1160 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52322,6 +52322,153 @@ components:
5232252322
x-enum-varnames:
5232352323
- DONE
5232452324
- TIMEOUT
52325+
SecurityMonitoringContentPackActivation:
52326+
description: The activation status of a content pack
52327+
enum:
52328+
- never_activated
52329+
- activated
52330+
- deactivated
52331+
example: activated
52332+
type: string
52333+
x-enum-varnames:
52334+
- NEVER_ACTIVATED
52335+
- ACTIVATED
52336+
- DEACTIVATED
52337+
SecurityMonitoringContentPackIntegrationStatus:
52338+
description: The installation status of the related integration
52339+
enum:
52340+
- installed
52341+
- available
52342+
- partially_installed
52343+
- detected
52344+
- error
52345+
example: installed
52346+
type: string
52347+
x-enum-varnames:
52348+
- INSTALLED
52349+
- AVAILABLE
52350+
- PARTIALLY_INSTALLED
52351+
- DETECTED
52352+
- ERROR
52353+
SecurityMonitoringContentPackStateAttributes:
52354+
description: Attributes of a content pack state
52355+
properties:
52356+
cloud_siem_index_incorrect:
52357+
description: Whether the cloud SIEM index configuration is incorrect (only
52358+
applicable with the Cloud SIEM with index pricing model)
52359+
example: false
52360+
type: boolean
52361+
cp_activation:
52362+
$ref: '#/components/schemas/SecurityMonitoringContentPackActivation'
52363+
filters_configured_for_logs:
52364+
description: Whether filters (Security Filters or Index Query depending
52365+
on the pricing model) are configured for logs
52366+
example: true
52367+
type: boolean
52368+
integration_installed_status:
52369+
$ref: '#/components/schemas/SecurityMonitoringContentPackIntegrationStatus'
52370+
logs_last_collected:
52371+
$ref: '#/components/schemas/SecurityMonitoringContentPackTimestampBucket'
52372+
logs_seen_from_any_index:
52373+
description: Whether logs have been seen from any index
52374+
example: true
52375+
type: boolean
52376+
state:
52377+
$ref: '#/components/schemas/SecurityMonitoringContentPackStatus'
52378+
required:
52379+
- state
52380+
- cp_activation
52381+
- logs_seen_from_any_index
52382+
- logs_last_collected
52383+
- cloud_siem_index_incorrect
52384+
- filters_configured_for_logs
52385+
type: object
52386+
SecurityMonitoringContentPackStateData:
52387+
description: Content pack state data
52388+
properties:
52389+
attributes:
52390+
$ref: '#/components/schemas/SecurityMonitoringContentPackStateAttributes'
52391+
id:
52392+
description: The content pack identifier
52393+
example: aws-cloudtrail
52394+
type: string
52395+
type:
52396+
$ref: '#/components/schemas/SecurityMonitoringContentPackStateType'
52397+
required:
52398+
- id
52399+
- type
52400+
- attributes
52401+
type: object
52402+
SecurityMonitoringContentPackStateMeta:
52403+
description: Metadata for content pack states
52404+
properties:
52405+
cloud_siem_index_incorrect:
52406+
description: Whether the cloud SIEM index configuration is incorrect at
52407+
the organization level
52408+
example: false
52409+
type: boolean
52410+
sku:
52411+
$ref: '#/components/schemas/SecurityMonitoringSKU'
52412+
required:
52413+
- cloud_siem_index_incorrect
52414+
- sku
52415+
type: object
52416+
SecurityMonitoringContentPackStateType:
52417+
description: Type for content pack state object
52418+
enum:
52419+
- content_pack_state
52420+
example: content_pack_state
52421+
type: string
52422+
x-enum-varnames:
52423+
- CONTENT_PACK_STATE
52424+
SecurityMonitoringContentPackStatesResponse:
52425+
description: Response containing content pack states
52426+
properties:
52427+
data:
52428+
description: Array of content pack states
52429+
items:
52430+
$ref: '#/components/schemas/SecurityMonitoringContentPackStateData'
52431+
type: array
52432+
meta:
52433+
$ref: '#/components/schemas/SecurityMonitoringContentPackStateMeta'
52434+
required:
52435+
- data
52436+
- meta
52437+
type: object
52438+
SecurityMonitoringContentPackStatus:
52439+
description: The current status of a content pack
52440+
enum:
52441+
- install
52442+
- activate
52443+
- initializing
52444+
- active
52445+
- warning
52446+
- broken
52447+
example: active
52448+
type: string
52449+
x-enum-varnames:
52450+
- INSTALL
52451+
- ACTIVATE
52452+
- INITIALIZING
52453+
- ACTIVE
52454+
- WARNING
52455+
- BROKEN
52456+
SecurityMonitoringContentPackTimestampBucket:
52457+
description: Timestamp bucket indicating when logs were last collected
52458+
enum:
52459+
- not_seen
52460+
- within_24_hours
52461+
- within_24_to_72_hours
52462+
- over_72h_to_30d
52463+
- over_30d
52464+
example: within_24_hours
52465+
type: string
52466+
x-enum-varnames:
52467+
- NOT_SEEN
52468+
- WITHIN_24_HOURS
52469+
- WITHIN_24_TO_72_HOURS
52470+
- OVER_72H_TO_30D
52471+
- OVER_30D
5232552472
SecurityMonitoringCriticalAsset:
5232652473
description: The critical asset's properties.
5232752474
properties:
@@ -53449,6 +53596,18 @@ components:
5344953596
- $ref: '#/components/schemas/SecurityMonitoringStandardRulePayload'
5345053597
- $ref: '#/components/schemas/SecurityMonitoringSignalRulePayload'
5345153598
- $ref: '#/components/schemas/CloudConfigurationRulePayload'
53599+
SecurityMonitoringSKU:
53600+
description: The SIEM pricing model (SKU) for the organization
53601+
enum:
53602+
- per_gb_analyzed
53603+
- per_event_in_siem_index_2023
53604+
- add_on_2024
53605+
example: add_on_2024
53606+
type: string
53607+
x-enum-varnames:
53608+
- PER_GB_ANALYZED
53609+
- PER_EVENT_IN_SIEM_INDEX_2023
53610+
- ADD_ON_2024
5345253611
SecurityMonitoringSchedulingOptions:
5345353612
description: Options for scheduled rules. When this field is present, the rule
5345453613
runs based on the schedule. When absent, it runs real-time on ingested logs.
@@ -92266,6 +92425,123 @@ paths:
9226692425
summary: Get a suppression's version history
9226792426
tags:
9226892427
- Security Monitoring
92428+
/api/v2/security_monitoring/content_packs/states:
92429+
get:
92430+
description: 'Get the activation and configuration states for all security monitoring
92431+
content packs.
92432+
92433+
This endpoint returns status information about each content pack including
92434+
activation state,
92435+
92436+
integration status, and log collection status.'
92437+
operationId: GetContentPacksStates
92438+
responses:
92439+
'200':
92440+
content:
92441+
application/json:
92442+
schema:
92443+
$ref: '#/components/schemas/SecurityMonitoringContentPackStatesResponse'
92444+
description: OK
92445+
'403':
92446+
content:
92447+
application/json:
92448+
schema:
92449+
$ref: '#/components/schemas/JSONAPIErrorResponse'
92450+
description: Forbidden
92451+
'404':
92452+
content:
92453+
application/json:
92454+
schema:
92455+
$ref: '#/components/schemas/JSONAPIErrorResponse'
92456+
description: Not Found
92457+
'429':
92458+
$ref: '#/components/responses/TooManyRequestsResponse'
92459+
summary: Get content pack states
92460+
tags:
92461+
- Security Monitoring
92462+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
92463+
92464+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
92465+
/api/v2/security_monitoring/content_packs/{content_pack_id}/activate:
92466+
put:
92467+
description: 'Activate a security monitoring content pack. This operation configures
92468+
the necessary
92469+
92470+
log filters or security filters depending on the pricing model and updates
92471+
the content
92472+
92473+
pack activation state.'
92474+
operationId: ActivateContentPack
92475+
parameters:
92476+
- description: The ID of the content pack to activate
92477+
in: path
92478+
name: content_pack_id
92479+
required: true
92480+
schema:
92481+
example: aws-cloudtrail
92482+
type: string
92483+
responses:
92484+
'202':
92485+
description: Accepted
92486+
'403':
92487+
content:
92488+
application/json:
92489+
schema:
92490+
$ref: '#/components/schemas/JSONAPIErrorResponse'
92491+
description: Forbidden
92492+
'404':
92493+
content:
92494+
application/json:
92495+
schema:
92496+
$ref: '#/components/schemas/JSONAPIErrorResponse'
92497+
description: Not Found
92498+
'429':
92499+
$ref: '#/components/responses/TooManyRequestsResponse'
92500+
summary: Activate content pack
92501+
tags:
92502+
- Security Monitoring
92503+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
92504+
92505+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
92506+
/api/v2/security_monitoring/content_packs/{content_pack_id}/deactivate:
92507+
put:
92508+
description: 'Deactivate a security monitoring content pack. This operation
92509+
removes the content pack''s
92510+
92511+
configuration from log filters or security filters and updates the content
92512+
pack activation state.'
92513+
operationId: DeactivateContentPack
92514+
parameters:
92515+
- description: The ID of the content pack to deactivate
92516+
in: path
92517+
name: content_pack_id
92518+
required: true
92519+
schema:
92520+
example: aws-cloudtrail
92521+
type: string
92522+
responses:
92523+
'202':
92524+
description: Accepted
92525+
'403':
92526+
content:
92527+
application/json:
92528+
schema:
92529+
$ref: '#/components/schemas/JSONAPIErrorResponse'
92530+
description: Forbidden
92531+
'404':
92532+
content:
92533+
application/json:
92534+
schema:
92535+
$ref: '#/components/schemas/JSONAPIErrorResponse'
92536+
description: Not Found
92537+
'429':
92538+
$ref: '#/components/responses/TooManyRequestsResponse'
92539+
summary: Deactivate content pack
92540+
tags:
92541+
- Security Monitoring
92542+
x-unstable: '**Note**: This endpoint is in preview and is subject to change.
92543+
92544+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
9226992545
/api/v2/security_monitoring/rules:
9227092546
get:
9227192547
description: List rules.

docs/datadog_api_client.v2.model.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23076,6 +23076,69 @@ datadog\_api\_client.v2.model.security\_findings\_status module
2307623076
:members:
2307723077
:show-inheritance:
2307823078

23079+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_activation module
23080+
------------------------------------------------------------------------------------
23081+
23082+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_activation
23083+
:members:
23084+
:show-inheritance:
23085+
23086+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_integration\_status module
23087+
---------------------------------------------------------------------------------------------
23088+
23089+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_integration_status
23090+
:members:
23091+
:show-inheritance:
23092+
23093+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_state\_attributes module
23094+
-------------------------------------------------------------------------------------------
23095+
23096+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_state_attributes
23097+
:members:
23098+
:show-inheritance:
23099+
23100+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_state\_data module
23101+
-------------------------------------------------------------------------------------
23102+
23103+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_state_data
23104+
:members:
23105+
:show-inheritance:
23106+
23107+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_state\_meta module
23108+
-------------------------------------------------------------------------------------
23109+
23110+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_state_meta
23111+
:members:
23112+
:show-inheritance:
23113+
23114+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_state\_type module
23115+
-------------------------------------------------------------------------------------
23116+
23117+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_state_type
23118+
:members:
23119+
:show-inheritance:
23120+
23121+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_states\_response module
23122+
------------------------------------------------------------------------------------------
23123+
23124+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_states_response
23125+
:members:
23126+
:show-inheritance:
23127+
23128+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_status module
23129+
--------------------------------------------------------------------------------
23130+
23131+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_status
23132+
:members:
23133+
:show-inheritance:
23134+
23135+
datadog\_api\_client.v2.model.security\_monitoring\_content\_pack\_timestamp\_bucket module
23136+
-------------------------------------------------------------------------------------------
23137+
23138+
.. automodule:: datadog_api_client.v2.model.security_monitoring_content_pack_timestamp_bucket
23139+
:members:
23140+
:show-inheritance:
23141+
2307923142
datadog\_api\_client.v2.model.security\_monitoring\_critical\_asset module
2308023143
--------------------------------------------------------------------------
2308123144

@@ -23769,6 +23832,13 @@ datadog\_api\_client.v2.model.security\_monitoring\_signals\_sort module
2376923832
:members:
2377023833
:show-inheritance:
2377123834

23835+
datadog\_api\_client.v2.model.security\_monitoring\_sku module
23836+
--------------------------------------------------------------
23837+
23838+
.. automodule:: datadog_api_client.v2.model.security_monitoring_sku
23839+
:members:
23840+
:show-inheritance:
23841+
2377223842
datadog\_api\_client.v2.model.security\_monitoring\_standard\_data\_source module
2377323843
---------------------------------------------------------------------------------
2377423844

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Activate content pack returns "Accepted" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.security_monitoring_api import SecurityMonitoringApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["activate_content_pack"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = SecurityMonitoringApi(api_client)
12+
api_instance.activate_content_pack(
13+
content_pack_id="aws-cloudtrail",
14+
)

0 commit comments

Comments
 (0)