Skip to content

Service Policy Rule

Replace service_policy_rule replaces an existing object in the storage backend for metadata.namespace.

ToolDescription
f5xc-api-virtual-service-policy-rule-createCreate Service Policy Rule.
f5xc-api-virtual-service-policy-rule-getGET Service Policy Rule.
f5xc-api-virtual-service-policy-rule-listList Service Policy Rule.
f5xc-api-virtual-service-policy-rule-updateReplace Service Policy Rule.
f5xc-api-virtual-service-policy-rule-deleteDELETE Service Policy Rule.
ParameterDescriptionExample
metadata.namespaceNamespace-
nameName-
namespaceNamespace-
metadata.nameName-
ParameterDescriptionExample
response_formatThe format in which the configuration object is to be fetched. This could be for example-
label_filterA LabelSelectorType expression that every item in list response will satisfy.-
report_fieldsThe report_fields parameter-
report_status_fieldsThe report_status_fields parameter-

This resource includes mutually exclusive configuration options:

OptionDescriptionRecommended
spec.any_asn-
spec.asn_list-
spec.asn_matcher-
OptionDescriptionRecommended
spec.any_client-
spec.client_name-
spec.client_name_matcher-
spec.client_selector-
spec.ip_threat_category_list-
OptionDescriptionRecommended
OptionDescriptionRecommended
OptionDescriptionRecommended
spec.any_ip-
spec.ip_matcher-
spec.ip_prefix_list-
OptionDescriptionRecommended
spec.ja4_tls_fingerprint-
spec.tls_fingerprint_matcher-
OptionDescriptionRecommended
spec.arg_matchers[].check_not_present-
spec.arg_matchers[].check_present-
spec.arg_matchers[].item-
OptionDescriptionRecommended
spec.bot_action.bot_skip_processing-
spec.bot_action.none-
OptionDescriptionRecommended
spec.request_constraints.max_cookie_count_exceeds-
spec.request_constraints.max_cookie_count_none-
OptionDescriptionRecommended
spec.request_constraints.max_cookie_key_size_exceeds-
spec.request_constraints.max_cookie_key_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_cookie_value_size_exceeds-
spec.request_constraints.max_cookie_value_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_header_count_exceeds-
spec.request_constraints.max_header_count_none-
OptionDescriptionRecommended
spec.request_constraints.max_header_key_size_exceeds-
spec.request_constraints.max_header_key_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_header_value_size_exceeds-
spec.request_constraints.max_header_value_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_parameter_count_exceeds-
spec.request_constraints.max_parameter_count_none-
OptionDescriptionRecommended
spec.request_constraints.max_parameter_name_size_exceeds-
spec.request_constraints.max_parameter_name_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_parameter_value_size_exceeds-
spec.request_constraints.max_parameter_value_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_query_size_exceeds-
spec.request_constraints.max_query_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_request_line_size_exceeds-
spec.request_constraints.max_request_line_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_request_size_exceeds-
spec.request_constraints.max_request_size_none-
OptionDescriptionRecommended
spec.request_constraints.max_url_size_exceeds-
spec.request_constraints.max_url_size_none-

Ask Claude to help you work with Service Policy Rule resources:

“Create a service-policy-rule named ‘example’ in the ‘production’ namespace”

“List all service-policy-rules in the ‘production’ namespace”

“Get details of the service-policy-rule named ‘example’ in namespace ‘production‘“

Terminal window
# List resources
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/service_policy_rules" \
-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}/service_policy_rules/<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}/service_policy_rules" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d @service_policy_rule.json
# Delete resource
curl -X DELETE "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/service_policy_rules/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"