diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9e9835c3f78..45816f17552 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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" @@ -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: @@ -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" @@ -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" @@ -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" @@ -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": @@ -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: @@ -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": @@ -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" @@ -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" @@ -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" @@ -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": @@ -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" @@ -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). @@ -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/). diff --git a/src/main/java/com/datadog/api/client/v2/api/CsmThreatsApi.java b/src/main/java/com/datadog/api/client/v2/api/CsmThreatsApi.java index 8582d7c7667..b5a39b823f7 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CsmThreatsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CsmThreatsApi.java @@ -86,9 +86,6 @@ public CloudWorkloadSecurityAgentPolicyResponse createCSMThreatsAgentPolicy( /** * 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.
- *
* @param body The definition of the new Agent policy (required)
* @return ApiResponse<CloudWorkloadSecurityAgentPolicyResponse>
* @throws ApiException if fails to make API call
@@ -241,9 +238,6 @@ public CompletableFuture This endpoint does not accept Note: 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<CloudWorkloadSecurityAgentRuleResponse>
* @throws ApiException if fails to make API call
@@ -379,9 +373,6 @@ public CompletableFuture 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.
- *
* @param policyId The ID of the Agent policy (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
@@ -574,9 +565,6 @@ public CompletableFuture 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.
- *
* @param agentRuleId The ID of the Agent rule (required)
* @param parameters Optional parameters for the request.
* @return ApiResponse<Void>
@@ -728,9 +716,6 @@ public CompletableFuture Note: This endpoint is not available for the Government (US1-FED) site.
- * Please reference the (US1-FED) specific resource below.
- *
* @return ApiResponse<File>
* @throws ApiException if fails to make API call
* @http.response.details
@@ -818,7 +803,9 @@ public CompletableFuture Note: This endpoint should only be used for the Government (US1-FED) site.
+ * Get the details of a specific agent rule.
*
* @param agentRuleId The ID of the Agent rule (required)
* @return ApiResponse<CloudWorkloadSecurityAgentRuleResponse>
@@ -858,7 +849,10 @@ public CloudWorkloadSecurityAgentRuleResponse getCloudWorkloadSecurityAgentRule(
* Note: 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<CloudWorkloadSecurityAgentPolicyResponse>
* @throws ApiException if fails to make API call
@@ -1186,9 +1179,6 @@ public CompletableFuture Note: 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<CloudWorkloadSecurityAgentRuleResponse>
@@ -1315,7 +1305,9 @@ public ApiResponse See {@link #listCloudWorkloadSecurityAgentRulesWithHttpInfoAsync}.
*
* @return CompletableFuture<CloudWorkloadSecurityAgentRulesListResponse>
+ * @deprecated
*/
+ @Deprecated
public CompletableFuture Note: This endpoint should only be used for the Government (US1-FED) site.
+ * Get the list of agent rules.
*
* @return ApiResponse<CloudWorkloadSecurityAgentRulesListResponse>
* @throws ApiException if fails to make API call
@@ -1352,7 +1348,10 @@ public CloudWorkloadSecurityAgentRulesListResponse listCloudWorkloadSecurityAgen
* See {@link #listCloudWorkloadSecurityAgentRulesWithHttpInfo}.
*
* @return CompletableFuture<ApiResponse<CloudWorkloadSecurityAgentRulesListResponse>>
+ * @deprecated
*/
+ @Deprecated
public CompletableFuture Note: This endpoint is not available for the Government (US1-FED) site.
- * Please reference the (US1-FED) specific resource below.
- *
* @return ApiResponse<CloudWorkloadSecurityAgentPoliciesListResponse>
* @throws ApiException if fails to make API call
* @http.response.details
@@ -1626,9 +1624,6 @@ public CloudWorkloadSecurityAgentRulesListResponse listCSMThreatsAgentRules(
* Set Note: 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<CloudWorkloadSecurityAgentRulesListResponse>
* @throws ApiException if fails to make API call
@@ -1761,9 +1756,6 @@ public CloudWorkloadSecurityAgentPolicyResponse updateCSMThreatsAgentPolicy(
* 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.
- *
* @param policyId The ID of the Agent policy (required)
* @param body New definition of the Agent policy (required)
* @return ApiResponse<CloudWorkloadSecurityAgentPolicyResponse>
@@ -1999,9 +1991,6 @@ public CompletableFuture This endpoint does not accept Note: 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.
diff --git a/src/test/resources/com/datadog/api/client/v2/api/csm_threats.feature b/src/test/resources/com/datadog/api/client/v2/api/csm_threats.feature
index 1d58674b267..d33036abe98 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/csm_threats.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/csm_threats.feature
@@ -4,9 +4,10 @@ Feature: CSM Threats
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.
+ more information on setting up Workload Protection. **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.
Background:
Given a valid "apiKeyAuth" key in the system
kill or network_filter actions, or
* blocking policies. A request that contains them returns a 400 error.
*
- * .policy file. This file
* can then be deployed to your agents to update the policy running in your environment.
*
- *
* 404 Not Found -
*
+ *
+ * @deprecated
*/
+ @Deprecated
public ApiResponse 429 Too many requests -
* 403 Not Authorized -
*
+ *
+ * @deprecated
*/
+ @Deprecated
public ApiResponse 429 Too many requests - policy_id to only return the rules of one policy. Without it, the rules of
* all policies are returned.
*
- * kill or network_filter actions, or
* blocking policies. A request that contains them returns a 400 error.
*
- *