Optional requestFactory: CSMThreatsApiRequestFactoryOptional responseProcessor: CSMThreatsApiResponseProcessorPrivate configurationPrivate requestPrivate responseThe request object
Optional options: ConfigurationCreate a new Workload Protection agent rule with the given parameters.
The expression attribute is written in the Security Agent Expression Language (SECL),
for example exec.file.name == "sh". See Agent expressions
for the syntax and the list of available event types and fields.
If policy_id is not set, the rule is added to the CWS_CUSTOM-canary policy. This policy is created if it does not exist yet.
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.
The request object
Optional options: ConfigurationDelete a specific Workload Protection policy.
Datadog-managed policies cannot be deleted. This action cannot be undone.
The request object
Optional options: ConfigurationDelete a specific Workload Protection agent rule.
The rule is removed from every policy that contains it. Datadog-managed rules cannot be deleted. This action cannot be undone.
The request object
Optional options: ConfigurationThe 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.
Optional options: ConfigurationGet the details of a specific Workload Protection policy.
The request object
Optional options: ConfigurationGet the details of a specific Workload Protection agent rule.
The request object
Optional options: ConfigurationNote: This endpoint is deprecated. Use Get a Workload Protection agent rule instead, on all sites including US1-FED.
Get the details of a specific agent rule.
The request object
Optional options: ConfigurationGet the list of Workload Protection policies.
Optional options: ConfigurationGet 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.
The request object
Optional options: ConfigurationNote: This endpoint is deprecated. Use Get all Workload Protection agent rules instead, on all sites including US1-FED.
Get the list of agent rules.
Optional options: ConfigurationUpdate a specific Workload Protection policy. Returns the policy object when the request is successful.
The request object
Optional options: ConfigurationUpdate a specific Workload Protection Agent rule. Returns the agent rule object when the request is successful.
The expression attribute is written in the Security Agent Expression Language (SECL).
See 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.
The request object
Optional options: ConfigurationGenerated using TypeDoc
Create a new Workload Protection policy with the given parameters.