Skip to content

Policy Based Routing

Shape of the Network Policy based routing replace specification.

ToolDescription
f5xc-api-networksecurity-policy-based-routing-createCreate Policy based Routing.
f5xc-api-networksecurity-policy-based-routing-getGET Policy based Routing.
f5xc-api-networksecurity-policy-based-routing-listList Policy based Routing.
f5xc-api-networksecurity-policy-based-routing-updateReplace Policy based Routing.
f5xc-api-networksecurity-policy-based-routing-deleteDELETE Policy based Routing.
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.forward_proxy_pbr-
spec.network_pbr-
OptionDescriptionRecommended
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].all_destinations-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].tls_list-
OptionDescriptionRecommended
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].all_sources-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].ip_prefix_set-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].label_selector-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].prefix_list-
OptionDescriptionRecommended
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list.http_list[].exact_value-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list.http_list[].regex_value-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list.http_list[].suffix_value-
OptionDescriptionRecommended
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list.http_list[].any_path-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list.http_list[].path_exact_value-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list.http_list[].path_prefix_value-
spec.forward_proxy_pbr.forward_proxy_pbr_rules[].http_list.http_list[].path_regex_value-
OptionDescriptionRecommended
spec.network_pbr.network_pbr_rules[].any-
spec.network_pbr.network_pbr_rules[].dns_name-
spec.network_pbr.network_pbr_rules[].ip_prefix_set-
spec.network_pbr.network_pbr_rules[].prefix_list-
OptionDescriptionRecommended
spec.network_pbr.network_pbr_rules[].all_tcp_traffic-
spec.network_pbr.network_pbr_rules[].all_traffic-
spec.network_pbr.network_pbr_rules[].all_udp_traffic-
spec.network_pbr.network_pbr_rules[].applications-
spec.network_pbr.network_pbr_rules[].protocol_port_range-

Ask Claude to help you work with Policy Based Routing resources:

“Create a policy-based-routing named ‘example’ in the ‘production’ namespace”

“List all policy-based-routings in the ‘production’ namespace”

“Get details of the policy-based-routing named ‘example’ in namespace ‘production‘“

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