Skip to content

Commit bc92028

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Cloud SIEM - Document content packs SIEM endpoints (#3732)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5bfc03b commit bc92028

9 files changed

+110
-50
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 68 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62654,19 +62654,23 @@ components:
6265462654
- DONE
6265562655
- TIMEOUT
6265662656
SecurityMonitoringContentPackActivation:
62657-
description: The activation status of a content pack
62657+
description: The activation status of a content pack.
6265862658
enum:
6265962659
- never_activated
6266062660
- activated
6266162661
- deactivated
6266262662
example: activated
6266362663
type: string
62664+
x-enum-descriptions:
62665+
- Pack has never been activated for this organization.
62666+
- Pack is currently activated.
62667+
- Pack was previously activated but has since been deactivated.
6266462668
x-enum-varnames:
6266562669
- NEVER_ACTIVATED
6266662670
- ACTIVATED
6266762671
- DEACTIVATED
6266862672
SecurityMonitoringContentPackIntegrationStatus:
62669-
description: The installation status of the related integration
62673+
description: The installation status of the related integration.
6267062674
enum:
6267162675
- installed
6267262676
- available
@@ -62675,6 +62679,12 @@ components:
6267562679
- error
6267662680
example: installed
6267762681
type: string
62682+
x-enum-descriptions:
62683+
- Integration is fully installed.
62684+
- Integration exists in the catalog but is not installed.
62685+
- Integration is only partially configured.
62686+
- Integration detected (for example, logs are flowing) but not explicitly installed.
62687+
- Integration is in an error state.
6267862688
x-enum-varnames:
6267962689
- INSTALLED
6268062690
- AVAILABLE
@@ -62691,15 +62701,17 @@ components:
6269162701
cp_activation:
6269262702
$ref: "#/components/schemas/SecurityMonitoringContentPackActivation"
6269362703
filters_configured_for_logs:
62694-
description: Whether filters (Security Filters or Index Query depending on the pricing model) are configured for logs
62704+
description: |-
62705+
Whether filters (Security Filters or Index Query depending on the pricing model) are
62706+
present and correctly configured to route logs into Cloud SIEM.
6269562707
example: true
6269662708
type: boolean
6269762709
integration_installed_status:
6269862710
$ref: "#/components/schemas/SecurityMonitoringContentPackIntegrationStatus"
6269962711
logs_last_collected:
6270062712
$ref: "#/components/schemas/SecurityMonitoringContentPackTimestampBucket"
6270162713
logs_seen_from_any_index:
62702-
description: Whether logs have been seen from any index
62714+
description: Whether logs for this content pack have been seen in any Datadog index within the last 72 hours.
6270362715
example: true
6270462716
type: boolean
6270562717
state:
@@ -62764,7 +62776,7 @@ components:
6276462776
- meta
6276562777
type: object
6276662778
SecurityMonitoringContentPackStatus:
62767-
description: The current status of a content pack
62779+
description: The current operational status of a content pack.
6276862780
enum:
6276962781
- install
6277062782
- activate
@@ -62774,6 +62786,13 @@ components:
6277462786
- broken
6277562787
example: active
6277662788
type: string
62789+
x-enum-descriptions:
62790+
- Not activated; no logs detected in the last 72 hours.
62791+
- Not activated; logs are flowing into a Datadog index but not yet routed through Cloud SIEM.
62792+
- Activated; awaiting first log ingestion.
62793+
- Activated; logs received within the last 24 hours.
62794+
- Activated; integration not installed or logs last seen 24 to 72 hours ago.
62795+
- Activated; no logs for over 72 hours, filter missing, or Cloud SIEM index incorrectly ordered.
6277762796
x-enum-varnames:
6277862797
- INSTALL
6277962798
- ACTIVATE
@@ -62782,7 +62801,7 @@ components:
6278262801
- WARNING
6278362802
- BROKEN
6278462803
SecurityMonitoringContentPackTimestampBucket:
62785-
description: Timestamp bucket indicating when logs were last collected
62804+
description: Timestamp bucket indicating when logs were last collected.
6278662805
enum:
6278762806
- not_seen
6278862807
- within_24_hours
@@ -62791,6 +62810,12 @@ components:
6279162810
- over_30d
6279262811
example: within_24_hours
6279362812
type: string
62813+
x-enum-descriptions:
62814+
- No logs observed.
62815+
- Logs received within the last 24 hours.
62816+
- Logs last seen 24 to 72 hours ago.
62817+
- Logs last seen 3 to 30 days ago.
62818+
- Logs last seen more than 30 days ago.
6279462819
x-enum-varnames:
6279562820
- NOT_SEEN
6279662821
- WITHIN_24_HOURS
@@ -63881,7 +63906,7 @@ components:
6388163906
- $ref: "#/components/schemas/SecurityMonitoringSignalRulePayload"
6388263907
- $ref: "#/components/schemas/CloudConfigurationRulePayload"
6388363908
SecurityMonitoringSKU:
63884-
description: The SIEM pricing model (SKU) for the organization
63909+
description: The Cloud SIEM pricing model (SKU) for the organization.
6388563910
enum:
6388663911
- per_gb_analyzed
6388763912
- per_event_in_siem_index_2023
@@ -118704,9 +118729,8 @@ paths:
118704118729
/api/v2/security_monitoring/content_packs/states:
118705118730
get:
118706118731
description: |-
118707-
Get the activation and configuration states for all security monitoring content packs.
118708-
This endpoint returns status information about each content pack including activation state,
118709-
integration status, and log collection status.
118732+
Get the activation state, integration status, and log collection status
118733+
for all Cloud SIEM content packs.
118710118734
operationId: GetContentPacksStates
118711118735
responses:
118712118736
"200":
@@ -118729,21 +118753,31 @@ paths:
118729118753
description: Not Found
118730118754
"429":
118731118755
$ref: "#/components/responses/TooManyRequestsResponse"
118756+
security:
118757+
- apiKeyAuth: []
118758+
appKeyAuth: []
118759+
- AuthZ:
118760+
- security_monitoring_filters_read
118732118761
summary: Get content pack states
118733118762
tags:
118734118763
- Security Monitoring
118764+
"x-permission":
118765+
operator: OR
118766+
permissions:
118767+
- security_monitoring_filters_read
118768+
- logs_read_index_data
118735118769
x-unstable: |-
118736118770
**Note**: This endpoint is in preview and is subject to change.
118737118771
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
118738118772
/api/v2/security_monitoring/content_packs/{content_pack_id}/activate:
118739118773
put:
118740118774
description: |-
118741-
Activate a security monitoring content pack. This operation configures the necessary
118775+
Activate a Cloud SIEM content pack. This operation configures the necessary
118742118776
log filters or security filters depending on the pricing model and updates the content
118743118777
pack activation state.
118744118778
operationId: ActivateContentPack
118745118779
parameters:
118746-
- description: The ID of the content pack to activate.
118780+
- description: The ID of the content pack to activate (for example, `aws-cloudtrail`).
118747118781
in: path
118748118782
name: content_pack_id
118749118783
required: true
@@ -118767,20 +118801,30 @@ paths:
118767118801
description: Not Found
118768118802
"429":
118769118803
$ref: "#/components/responses/TooManyRequestsResponse"
118804+
security:
118805+
- apiKeyAuth: []
118806+
appKeyAuth: []
118807+
- AuthZ:
118808+
- security_monitoring_filters_write
118770118809
summary: Activate content pack
118771118810
tags:
118772118811
- Security Monitoring
118812+
"x-permission":
118813+
operator: OR
118814+
permissions:
118815+
- security_monitoring_filters_write
118816+
- logs_modify_indexes
118773118817
x-unstable: |-
118774118818
**Note**: This endpoint is in preview and is subject to change.
118775118819
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
118776118820
/api/v2/security_monitoring/content_packs/{content_pack_id}/deactivate:
118777118821
put:
118778118822
description: |-
118779-
Deactivate a security monitoring content pack. This operation removes the content pack's
118823+
Deactivate a Cloud SIEM content pack. This operation removes the content pack's
118780118824
configuration from log filters or security filters and updates the content pack activation state.
118781118825
operationId: DeactivateContentPack
118782118826
parameters:
118783-
- description: The ID of the content pack to deactivate.
118827+
- description: The ID of the content pack to deactivate (for example, `aws-cloudtrail`).
118784118828
in: path
118785118829
name: content_pack_id
118786118830
required: true
@@ -118804,9 +118848,19 @@ paths:
118804118848
description: Not Found
118805118849
"429":
118806118850
$ref: "#/components/responses/TooManyRequestsResponse"
118851+
security:
118852+
- apiKeyAuth: []
118853+
appKeyAuth: []
118854+
- AuthZ:
118855+
- security_monitoring_filters_write
118807118856
summary: Deactivate content pack
118808118857
tags:
118809118858
- Security Monitoring
118859+
"x-permission":
118860+
operator: OR
118861+
permissions:
118862+
- security_monitoring_filters_write
118863+
- logs_modify_indexes
118810118864
x-unstable: |-
118811118865
**Note**: This endpoint is in preview and is subject to change.
118812118866
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).

src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ public void setApiClient(ApiClient apiClient) {
158158
*
159159
* <p>See {@link #activateContentPackWithHttpInfo}.
160160
*
161-
* @param contentPackId The ID of the content pack to activate. (required)
161+
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
162+
* </code>). (required)
162163
* @throws ApiException if fails to make API call
163164
*/
164165
public void activateContentPack(String contentPackId) throws ApiException {
@@ -170,7 +171,8 @@ public void activateContentPack(String contentPackId) throws ApiException {
170171
*
171172
* <p>See {@link #activateContentPackWithHttpInfoAsync}.
172173
*
173-
* @param contentPackId The ID of the content pack to activate. (required)
174+
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
175+
* </code>). (required)
174176
* @return CompletableFuture
175177
*/
176178
public CompletableFuture<Void> activateContentPackAsync(String contentPackId) {
@@ -182,11 +184,11 @@ public CompletableFuture<Void> activateContentPackAsync(String contentPackId) {
182184
}
183185

184186
/**
185-
* Activate a security monitoring content pack. This operation configures the necessary log
186-
* filters or security filters depending on the pricing model and updates the content pack
187-
* activation state.
187+
* Activate a Cloud SIEM content pack. This operation configures the necessary log filters or
188+
* security filters depending on the pricing model and updates the content pack activation state.
188189
*
189-
* @param contentPackId The ID of the content pack to activate. (required)
190+
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
191+
* </code>). (required)
190192
* @return ApiResponse&lt;Void&gt;
191193
* @throws ApiException if fails to make API call
192194
* @http.response.details
@@ -232,7 +234,7 @@ public ApiResponse<Void> activateContentPackWithHttpInfo(String contentPackId)
232234
localVarHeaderParams,
233235
new HashMap<String, String>(),
234236
new String[] {"*/*"},
235-
new String[] {"apiKeyAuth", "appKeyAuth"});
237+
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
236238
return apiClient.invokeAPI(
237239
"PUT",
238240
builder,
@@ -249,7 +251,8 @@ public ApiResponse<Void> activateContentPackWithHttpInfo(String contentPackId)
249251
*
250252
* <p>See {@link #activateContentPackWithHttpInfo}.
251253
*
252-
* @param contentPackId The ID of the content pack to activate. (required)
254+
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
255+
* </code>). (required)
253256
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
254257
*/
255258
public CompletableFuture<ApiResponse<Void>> activateContentPackWithHttpInfoAsync(
@@ -294,7 +297,7 @@ public CompletableFuture<ApiResponse<Void>> activateContentPackWithHttpInfoAsync
294297
localVarHeaderParams,
295298
new HashMap<String, String>(),
296299
new String[] {"*/*"},
297-
new String[] {"apiKeyAuth", "appKeyAuth"});
300+
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
298301
} catch (ApiException ex) {
299302
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
300303
result.completeExceptionally(ex);
@@ -3423,7 +3426,8 @@ public ApiResponse<NotificationRuleResponse> createVulnerabilityNotificationRule
34233426
*
34243427
* <p>See {@link #deactivateContentPackWithHttpInfo}.
34253428
*
3426-
* @param contentPackId The ID of the content pack to deactivate. (required)
3429+
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3430+
* aws-cloudtrail</code>). (required)
34273431
* @throws ApiException if fails to make API call
34283432
*/
34293433
public void deactivateContentPack(String contentPackId) throws ApiException {
@@ -3435,7 +3439,8 @@ public void deactivateContentPack(String contentPackId) throws ApiException {
34353439
*
34363440
* <p>See {@link #deactivateContentPackWithHttpInfoAsync}.
34373441
*
3438-
* @param contentPackId The ID of the content pack to deactivate. (required)
3442+
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3443+
* aws-cloudtrail</code>). (required)
34393444
* @return CompletableFuture
34403445
*/
34413446
public CompletableFuture<Void> deactivateContentPackAsync(String contentPackId) {
@@ -3447,11 +3452,11 @@ public CompletableFuture<Void> deactivateContentPackAsync(String contentPackId)
34473452
}
34483453

34493454
/**
3450-
* Deactivate a security monitoring content pack. This operation removes the content pack's
3451-
* configuration from log filters or security filters and updates the content pack activation
3452-
* state.
3455+
* Deactivate a Cloud SIEM content pack. This operation removes the content pack's configuration
3456+
* from log filters or security filters and updates the content pack activation state.
34533457
*
3454-
* @param contentPackId The ID of the content pack to deactivate. (required)
3458+
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3459+
* aws-cloudtrail</code>). (required)
34553460
* @return ApiResponse&lt;Void&gt;
34563461
* @throws ApiException if fails to make API call
34573462
* @http.response.details
@@ -3497,7 +3502,7 @@ public ApiResponse<Void> deactivateContentPackWithHttpInfo(String contentPackId)
34973502
localVarHeaderParams,
34983503
new HashMap<String, String>(),
34993504
new String[] {"*/*"},
3500-
new String[] {"apiKeyAuth", "appKeyAuth"});
3505+
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
35013506
return apiClient.invokeAPI(
35023507
"PUT",
35033508
builder,
@@ -3514,7 +3519,8 @@ public ApiResponse<Void> deactivateContentPackWithHttpInfo(String contentPackId)
35143519
*
35153520
* <p>See {@link #deactivateContentPackWithHttpInfo}.
35163521
*
3517-
* @param contentPackId The ID of the content pack to deactivate. (required)
3522+
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3523+
* aws-cloudtrail</code>). (required)
35183524
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
35193525
*/
35203526
public CompletableFuture<ApiResponse<Void>> deactivateContentPackWithHttpInfoAsync(
@@ -3559,7 +3565,7 @@ public CompletableFuture<ApiResponse<Void>> deactivateContentPackWithHttpInfoAsy
35593565
localVarHeaderParams,
35603566
new HashMap<String, String>(),
35613567
new String[] {"*/*"},
3562-
new String[] {"apiKeyAuth", "appKeyAuth"});
3568+
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
35633569
} catch (ApiException ex) {
35643570
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
35653571
result.completeExceptionally(ex);
@@ -5759,9 +5765,8 @@ public SecurityMonitoringContentPackStatesResponse getContentPacksStates() throw
57595765
}
57605766

57615767
/**
5762-
* Get the activation and configuration states for all security monitoring content packs. This
5763-
* endpoint returns status information about each content pack including activation state,
5764-
* integration status, and log collection status.
5768+
* Get the activation state, integration status, and log collection status for all Cloud SIEM
5769+
* content packs.
57655770
*
57665771
* @return ApiResponse&lt;SecurityMonitoringContentPackStatesResponse&gt;
57675772
* @throws ApiException if fails to make API call
@@ -5798,7 +5803,7 @@ public SecurityMonitoringContentPackStatesResponse getContentPacksStates() throw
57985803
localVarHeaderParams,
57995804
new HashMap<String, String>(),
58005805
new String[] {"application/json"},
5801-
new String[] {"apiKeyAuth", "appKeyAuth"});
5806+
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
58025807
return apiClient.invokeAPI(
58035808
"GET",
58045809
builder,
@@ -5846,7 +5851,7 @@ public SecurityMonitoringContentPackStatesResponse getContentPacksStates() throw
58465851
localVarHeaderParams,
58475852
new HashMap<String, String>(),
58485853
new String[] {"application/json"},
5849-
new String[] {"apiKeyAuth", "appKeyAuth"});
5854+
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
58505855
} catch (ApiException ex) {
58515856
CompletableFuture<ApiResponse<SecurityMonitoringContentPackStatesResponse>> result =
58525857
new CompletableFuture<>();

src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringContentPackActivation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** The activation status of a content pack */
21+
/** The activation status of a content pack. */
2222
@JsonSerialize(
2323
using =
2424
SecurityMonitoringContentPackActivation.SecurityMonitoringContentPackActivationSerializer

src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringContentPackIntegrationStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** The installation status of the related integration */
21+
/** The installation status of the related integration. */
2222
@JsonSerialize(
2323
using =
2424
SecurityMonitoringContentPackIntegrationStatus

0 commit comments

Comments
 (0)