Skip to content

Network Policy Rule

Replaces a network policy rule with configured parameters in specified namespace.

ToolDescription
f5xc-api-networksecurity-network-policy-rule-createCreate Network Policy Rule.
f5xc-api-networksecurity-network-policy-rule-getGET Network Policy Rule.
f5xc-api-networksecurity-network-policy-rule-listList Network Policy Rule.
f5xc-api-networksecurity-network-policy-rule-updateReplace Network Policy Rule.
f5xc-api-networksecurity-network-policy-rule-deleteDELETE Network 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.ip_prefix_set-
spec.prefix-
spec.prefix_selector-

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

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

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

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

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