Actions38
- APM Actions
- ASM Actions
- Authentication Actions
- LTM Actions
- System Actions
ASM → Apply Policy
AI-generatedSummary
Applies (enforces) an ASM/WAF policy on a BIG-IP by starting an apply-policy background task via POST to /mgmt/tm/asm/tasks/apply-policy.
Inputs
- Policy Reference Link (required) — Self-link of the ASM policy to apply, e.g. https://localhost/mgmt/tm/asm/policies/
. Sent in the request body as policyReference: {"link": }. - Request Options — Optional node settings: batching (items per batch, default 50, and interval in ms, default 1000), ignore SSL certificate issues, HTTP proxy URL, and request timeout in ms (default 10000).
Output shape
The JSON response from the BIG-IP for the created apply-policy task, one result per input item.
The apply runs as an asynchronous ASM task. The response is expected to describe the task, but the source does not transform it. Use the ASM 'Check Task Status' operation to poll progress, though its task type list has no apply-policy entry. Authentication and base URL come from the bigIpF5Api credentials.
Examples
Example 1: Enforce a policy after editing it, using a link from an earlier step
Resource: ASM; Operation: Apply Policy; Policy Reference Link: https://localhost/mgmt/tm/asm/policies/vagoQLF6uOoBKvS8h3C19w
Example 2: Apply policies on a lab BIG-IP with a self-signed certificate
Set Policy Reference Link from an expression; under Request Options enable Ignore SSL Issues and raise Timeout to 30000