Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 11 additions & 27 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244182,8 +244182,6 @@ paths:
Get the list of Workload Protection agent rules.

Set `policy_id` to only return the rules of one policy. Without it, the rules of all policies are returned.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: ListCSMThreatsAgentRules
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityQueryAgentPolicyID"
Expand Down Expand Up @@ -244231,8 +244229,6 @@ paths:
To add the rule to another policy, set `policy_id` to the ID of that policy, as returned by `ListCSMThreatsAgentPolicies`.

This endpoint does not accept `kill` or `network_filter` actions, or `blocking` policies. A request that contains them returns a `400` error.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: CreateCSMThreatsAgentRule
requestBody:
content:
Expand Down Expand Up @@ -244305,8 +244301,6 @@ paths:

The rule is removed from every policy that contains it. Datadog-managed rules cannot be deleted.
This action cannot be undone.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: DeleteCSMThreatsAgentRule
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityAgentRuleID"
Expand Down Expand Up @@ -244337,8 +244331,6 @@ paths:
get:
description: |-
Get the details of a specific Workload Protection agent rule.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: GetCSMThreatsAgentRule
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityAgentRuleID"
Expand Down Expand Up @@ -244390,8 +244382,6 @@ paths:
See [Agent expressions](https://docs.datadoghq.com/security/workload_protection/agent_expressions/) for the syntax.

This endpoint does not accept `kill` or `network_filter` actions, or `blocking` policies. A request that contains them returns a `400` error.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: UpdateCSMThreatsAgentRule
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityAgentRuleID"
Expand Down Expand Up @@ -244470,8 +244460,6 @@ paths:
get:
description: |-
Get the list of Workload Protection policies.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: ListCSMThreatsAgentPolicies
responses:
"200":
Expand Down Expand Up @@ -244503,8 +244491,6 @@ paths:
post:
description: |-
Create a new Workload Protection policy with the given parameters.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: CreateCSMThreatsAgentPolicy
requestBody:
content:
Expand Down Expand Up @@ -244562,8 +244548,6 @@ paths:
The download endpoint generates a Workload Protection policy file from your currently active
Workload Protection agent rules, and downloads them as a `.policy` file. This file can then be deployed to
your agents to update the policy running in your environment.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: DownloadCSMThreatsPolicy
responses:
"200":
Expand Down Expand Up @@ -244592,8 +244576,6 @@ paths:
Delete a specific Workload Protection policy.

Datadog-managed policies cannot be deleted. This action cannot be undone.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: DeleteCSMThreatsAgentPolicy
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityPathAgentPolicyID"
Expand All @@ -244617,8 +244599,6 @@ paths:
get:
description: |-
Get the details of a specific Workload Protection policy.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: GetCSMThreatsAgentPolicy
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityPathAgentPolicyID"
Expand Down Expand Up @@ -244655,8 +244635,6 @@ paths:
description: |-
Update a specific Workload Protection policy.
Returns the policy object when the request is successful.

**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
operationId: UpdateCSMThreatsAgentPolicy
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityPathAgentPolicyID"
Expand Down Expand Up @@ -261085,10 +261063,12 @@ paths:
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/security_monitoring/cloud_workload_security/agent_rules:
get:
deprecated: true
description: |-
Get the list of agent rules.
**Note**: This endpoint is deprecated. Use [Get all Workload Protection agent rules](https://docs.datadoghq.com/api/latest/csm-threats/#get-all-workload-protection-agent-rules)
instead, on all sites including US1-FED.

**Note**: This endpoint should only be used for the Government (US1-FED) site.
Get the list of agent rules.
operationId: ListCloudWorkloadSecurityAgentRules
responses:
"200":
Expand Down Expand Up @@ -261122,12 +261102,15 @@ paths:
operator: OR
permissions:
- security_monitoring_cws_agent_rules_read
x-sunset: "2027-11-30"
/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}:
get:
deprecated: true
description: |-
Get the details of a specific agent rule.
**Note**: This endpoint is deprecated. Use [Get a Workload Protection agent rule](https://docs.datadoghq.com/api/latest/csm-threats/#get-a-workload-protection-agent-rule)
instead, on all sites including US1-FED.

**Note**: This endpoint should only be used for the Government (US1-FED) site.
Get the details of a specific agent rule.
operationId: GetCloudWorkloadSecurityAgentRule
parameters:
- $ref: "#/components/parameters/CloudWorkloadSecurityAgentRuleID"
Expand Down Expand Up @@ -261169,6 +261152,7 @@ paths:
operator: OR
permissions:
- security_monitoring_cws_agent_rules_read
x-sunset: "2027-11-30"
/api/v2/security_monitoring/configuration/critical_assets:
get:
description: Get the list of all dynamic severity rules (previously called critical assets).
Expand Down Expand Up @@ -287728,7 +287712,7 @@ tags:
- description: |-
Workload Protection monitors file, network, and process activity across your environment to detect real-time threats to your infrastructure. See [Workload Protection](https://docs.datadoghq.com/security/workload_protection/) for more information on setting up Workload Protection.

**Note**: These endpoints are split based on whether you are using the US1-FED site or not. Please reference the specific resource for the site you are using.
**Note**: The `/api/v2/security_monitoring/cloud_workload_security` endpoints are deprecated. Use the `/api/v2/remote_config/products/cws` endpoints on all sites, including US1-FED.
name: "CSM Threats"
- description: >-
View and manage work items and projects within Work Management. API paths, resource types, and permissions retain `case` terminology. For more information, see [Work Management](https://docs.datadoghq.com/incident_response/work_management/).
Expand Down
63 changes: 26 additions & 37 deletions src/main/java/com/datadog/api/client/v2/api/CsmThreatsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ public CloudWorkloadSecurityAgentPolicyResponse createCSMThreatsAgentPolicy(
/**
* Create a new Workload Protection policy with the given parameters.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param body The definition of the new Agent policy (required)
* @return ApiResponse&lt;CloudWorkloadSecurityAgentPolicyResponse&gt;
* @throws ApiException if fails to make API call
Expand Down Expand Up @@ -241,9 +238,6 @@ public CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> createCSMThreat
* <p>This endpoint does not accept <code>kill</code> or <code>network_filter</code> actions, or
* <code>blocking</code> policies. A request that contains them returns a <code>400</code> error.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param body The definition of the new agent rule (required)
* @return ApiResponse&lt;CloudWorkloadSecurityAgentRuleResponse&gt;
* @throws ApiException if fails to make API call
Expand Down Expand Up @@ -379,9 +373,6 @@ public CompletableFuture<Void> deleteCSMThreatsAgentPolicyAsync(String policyId)
*
* <p>Datadog-managed policies cannot be deleted. This action cannot be undone.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param policyId The ID of the Agent policy (required)
* @return ApiResponse&lt;Void&gt;
* @throws ApiException if fails to make API call
Expand Down Expand Up @@ -574,9 +565,6 @@ public CompletableFuture<Void> deleteCSMThreatsAgentRuleAsync(
* <p>The rule is removed from every policy that contains it. Datadog-managed rules cannot be
* deleted. This action cannot be undone.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param agentRuleId The ID of the Agent rule (required)
* @param parameters Optional parameters for the request.
* @return ApiResponse&lt;Void&gt;
Expand Down Expand Up @@ -728,9 +716,6 @@ public CompletableFuture<File> downloadCSMThreatsPolicyAsync() {
* Workload Protection agent rules, and downloads them as a <code>.policy</code> file. This file
* can then be deployed to your agents to update the policy running in your environment.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @return ApiResponse&lt;File&gt;
* @throws ApiException if fails to make API call
* @http.response.details
Expand Down Expand Up @@ -818,7 +803,9 @@ public CompletableFuture<ApiResponse<File>> downloadCSMThreatsPolicyWithHttpInfo
* @param agentRuleId The ID of the Agent rule (required)
* @return CloudWorkloadSecurityAgentRuleResponse
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public CloudWorkloadSecurityAgentRuleResponse getCloudWorkloadSecurityAgentRule(
String agentRuleId) throws ApiException {
return getCloudWorkloadSecurityAgentRuleWithHttpInfo(agentRuleId).getData();
Expand All @@ -831,7 +818,9 @@ public CloudWorkloadSecurityAgentRuleResponse getCloudWorkloadSecurityAgentRule(
*
* @param agentRuleId The ID of the Agent rule (required)
* @return CompletableFuture&lt;CloudWorkloadSecurityAgentRuleResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<CloudWorkloadSecurityAgentRuleResponse>
getCloudWorkloadSecurityAgentRuleAsync(String agentRuleId) {
return getCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(agentRuleId)
Expand All @@ -842,9 +831,11 @@ public CloudWorkloadSecurityAgentRuleResponse getCloudWorkloadSecurityAgentRule(
}

/**
* Get the details of a specific agent rule.
* <strong>Note</strong>: This endpoint is deprecated. Use <a
* href="https://docs.datadoghq.com/api/latest/csm-threats/#get-a-workload-protection-agent-rule">Get
* a Workload Protection agent rule</a> instead, on all sites including US1-FED.
*
* <p><strong>Note</strong>: This endpoint should only be used for the Government (US1-FED) site.
* <p>Get the details of a specific agent rule.
*
* @param agentRuleId The ID of the Agent rule (required)
* @return ApiResponse&lt;CloudWorkloadSecurityAgentRuleResponse&gt;
Expand All @@ -858,7 +849,10 @@ public CloudWorkloadSecurityAgentRuleResponse getCloudWorkloadSecurityAgentRule(
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<CloudWorkloadSecurityAgentRuleResponse>
getCloudWorkloadSecurityAgentRuleWithHttpInfo(String agentRuleId) throws ApiException {
Object localVarPostBody = null;
Expand Down Expand Up @@ -905,7 +899,9 @@ public CloudWorkloadSecurityAgentRuleResponse getCloudWorkloadSecurityAgentRule(
*
* @param agentRuleId The ID of the Agent rule (required)
* @return CompletableFuture&lt;ApiResponse&lt;CloudWorkloadSecurityAgentRuleResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRuleResponse>>
getCloudWorkloadSecurityAgentRuleWithHttpInfoAsync(String agentRuleId) {
Object localVarPostBody = null;
Expand Down Expand Up @@ -991,9 +987,6 @@ public CompletableFuture<CloudWorkloadSecurityAgentPolicyResponse> getCSMThreats
/**
* Get the details of a specific Workload Protection policy.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param policyId The ID of the Agent policy (required)
* @return ApiResponse&lt;CloudWorkloadSecurityAgentPolicyResponse&gt;
* @throws ApiException if fails to make API call
Expand Down Expand Up @@ -1186,9 +1179,6 @@ public CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> getCSMThreatsAg
/**
* Get the details of a specific Workload Protection agent rule.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param agentRuleId The ID of the Agent rule (required)
* @param parameters Optional parameters for the request.
* @return ApiResponse&lt;CloudWorkloadSecurityAgentRuleResponse&gt;
Expand Down Expand Up @@ -1315,7 +1305,9 @@ public ApiResponse<CloudWorkloadSecurityAgentRuleResponse> getCSMThreatsAgentRul
*
* @return CloudWorkloadSecurityAgentRulesListResponse
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgentRules()
throws ApiException {
return listCloudWorkloadSecurityAgentRulesWithHttpInfo().getData();
Expand All @@ -1327,7 +1319,9 @@ public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgen
* <p>See {@link #listCloudWorkloadSecurityAgentRulesWithHttpInfoAsync}.
*
* @return CompletableFuture&lt;CloudWorkloadSecurityAgentRulesListResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<CloudWorkloadSecurityAgentRulesListResponse>
listCloudWorkloadSecurityAgentRulesAsync() {
return listCloudWorkloadSecurityAgentRulesWithHttpInfoAsync()
Expand All @@ -1338,9 +1332,11 @@ public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgen
}

/**
* Get the list of agent rules.
* <strong>Note</strong>: This endpoint is deprecated. Use <a
* href="https://docs.datadoghq.com/api/latest/csm-threats/#get-all-workload-protection-agent-rules">Get
* all Workload Protection agent rules</a> instead, on all sites including US1-FED.
*
* <p><strong>Note</strong>: This endpoint should only be used for the Government (US1-FED) site.
* <p>Get the list of agent rules.
*
* @return ApiResponse&lt;CloudWorkloadSecurityAgentRulesListResponse&gt;
* @throws ApiException if fails to make API call
Expand All @@ -1352,7 +1348,10 @@ public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgen
* <tr><td> 403 </td><td> Not Authorized </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<CloudWorkloadSecurityAgentRulesListResponse>
listCloudWorkloadSecurityAgentRulesWithHttpInfo() throws ApiException {
Object localVarPostBody = null;
Expand Down Expand Up @@ -1387,7 +1386,9 @@ public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgen
* <p>See {@link #listCloudWorkloadSecurityAgentRulesWithHttpInfo}.
*
* @return CompletableFuture&lt;ApiResponse&lt;CloudWorkloadSecurityAgentRulesListResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRulesListResponse>>
listCloudWorkloadSecurityAgentRulesWithHttpInfoAsync() {
Object localVarPostBody = null;
Expand Down Expand Up @@ -1456,9 +1457,6 @@ public CloudWorkloadSecurityAgentPoliciesListResponse listCSMThreatsAgentPolicie
/**
* Get the list of Workload Protection policies.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @return ApiResponse&lt;CloudWorkloadSecurityAgentPoliciesListResponse&gt;
* @throws ApiException if fails to make API call
* @http.response.details
Expand Down Expand Up @@ -1626,9 +1624,6 @@ public CloudWorkloadSecurityAgentRulesListResponse listCSMThreatsAgentRules(
* <p>Set <code>policy_id</code> to only return the rules of one policy. Without it, the rules of
* all policies are returned.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param parameters Optional parameters for the request.
* @return ApiResponse&lt;CloudWorkloadSecurityAgentRulesListResponse&gt;
* @throws ApiException if fails to make API call
Expand Down Expand Up @@ -1761,9 +1756,6 @@ public CloudWorkloadSecurityAgentPolicyResponse updateCSMThreatsAgentPolicy(
* Update a specific Workload Protection policy. Returns the policy object when the request is
* successful.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param policyId The ID of the Agent policy (required)
* @param body New definition of the Agent policy (required)
* @return ApiResponse&lt;CloudWorkloadSecurityAgentPolicyResponse&gt;
Expand Down Expand Up @@ -1999,9 +1991,6 @@ public CompletableFuture<CloudWorkloadSecurityAgentRuleResponse> updateCSMThreat
* <p>This endpoint does not accept <code>kill</code> or <code>network_filter</code> actions, or
* <code>blocking</code> policies. A request that contains them returns a <code>400</code> error.
*
* <p><strong>Note</strong>: This endpoint is not available for the Government (US1-FED) site.
* Please reference the (US1-FED) specific resource below.
*
* @param agentRuleId The ID of the Agent rule (required)
* @param body New definition of the agent rule (required)
* @param parameters Optional parameters for the request.
Expand Down
Loading
Loading