Skip to content

Subnet

Subnet object contains configuration for an interface of a VM/pod. It is created in user or shared namespace.

ToolDescription
f5xc-api-network-subnet-createCreate Subnet.
f5xc-api-network-subnet-getGET Subnet.
f5xc-api-network-subnet-listList Subnet.
f5xc-api-network-subnet-updateReplace Subnet.
f5xc-api-network-subnet-deleteDELETE Subnet.
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.connect_to_layer2-
spec.connect_to_slo-
spec.isolated_nw-
OptionDescriptionRecommended
spec.site_subnet_params[].dhcp-
spec.site_subnet_params[].static_ip-
OptionDescriptionRecommended
spec.site_subnet_params[].subnet_dhcp_server_params.dhcp_networks[].network_prefix-

Ask Claude to help you work with Subnet resources:

“Create a subnet named ‘example’ in the ‘production’ namespace”

“List all subnets in the ‘production’ namespace”

“Get details of the subnet named ‘example’ in namespace ‘production‘“

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