Skip to content

Rule Hit

Medium Risk

Some operations on this resource may modify or delete data.

GET number of rule hits per client for a given namespace. The rule hits counter can be aggregated based on one or more labels listed here. NAMESPACE, APP_TYPE, VIRTUAL_HOST, SITE, SERVICE, INSTANCE, WAF_INSTANCE_ID, RULE_ID, RULE_SEVERITY, RULE_TAG.

Tools

Tool Description
f5xc-api-waf-rule-hit-create Client Rule Hits Metrics.

Parameters

Path Parameters

Parameter Description Example
namespace Namespace -

Side Effects

Operations on this resource may have the following effects:

Creates:

  • rule-hit

Example Usage

Ask Claude to help you work with Rule Hit resources:

Create Rule Hit

"Create a rule-hit named 'example' in the 'production' namespace"

CURL Examples

# List resources
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/rule_hits" \
  -H "Authorization: APIToken ${F5XC_API_TOKEN}" \
  -H "Content-Type: application/json"

# Get specific resource
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/rule_hits/<name>" \
  -H "Authorization: APIToken ${F5XC_API_TOKEN}" \
  -H "Content-Type: application/json"

# Create resource
curl -X POST "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/rule_hits" \
  -H "Authorization: APIToken ${F5XC_API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d @rule_hit.json

# Delete resource
curl -X DELETE "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/rule_hits/<name>" \
  -H "Authorization: APIToken ${F5XC_API_TOKEN}"