Skip to content

Virtual Host

Replace a given virtual host in a given namespace.

ToolDescription
f5xc-api-virtual-virtual-host-createCreate Virtual Host.
f5xc-api-virtual-virtual-host-getGET Virtual Host.
f5xc-api-virtual-virtual-host-listList Virtual Host.
f5xc-api-virtual-virtual-host-updateReplace Virtual Host.
f5xc-api-virtual-virtual-host-deleteDELETE Virtual Host.
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.authentication-
spec.no_authentication-
OptionDescriptionRecommended
spec.captcha_challenge-
spec.js_challenge-
spec.no_challenge-
OptionDescriptionRecommended
spec.default_loadbalancer-
spec.non_default_loadbalancer-
OptionDescriptionRecommended
spec.disable_path_normalize-
spec.enable_path_normalize-
OptionDescriptionRecommended
spec.append_server_name-
spec.default_header-
spec.pass_through-
spec.server_name-
OptionDescriptionRecommended
OptionDescriptionRecommended
spec.tls_cert_params-
spec.tls_parameters-
OptionDescriptionRecommended
spec.authentication.cookie_params-
spec.authentication.use_auth_object_config-
OptionDescriptionRecommended
spec.authentication.redirect_dynamic-
spec.authentication.redirect_url-
OptionDescriptionRecommended
spec.authentication.cookie_params.auth_hmac-
spec.authentication.cookie_params.kms_key_hmac-
OptionDescriptionRecommended
spec.authentication.cookie_params.auth_hmac.prim_key.blindfold_secret_info-
spec.authentication.cookie_params.auth_hmac.prim_key.clear_secret_info-
OptionDescriptionRecommended
spec.coalescing_options.default_coalescing-
spec.coalescing_options.strict_coalescing-
OptionDescriptionRecommended
spec.csrf_policy.all_load_balancer_domains-
spec.csrf_policy.custom_domain_list-
spec.csrf_policy.disabled-
OptionDescriptionRecommended
spec.http_protocol_options.http_protocol_enable_v1_only-
spec.http_protocol_options.http_protocol_enable_v1_v2-
spec.http_protocol_options.http_protocol_enable_v2_only-
OptionDescriptionRecommended
spec.http_protocol_options.http_protocol_enable_v1_only.header_transformation.default_header_transformation-
spec.http_protocol_options.http_protocol_enable_v1_only.header_transformation.legacy_header_transformation-
spec.http_protocol_options.http_protocol_enable_v1_only.header_transformation.preserve_case_header_transformation-
spec.http_protocol_options.http_protocol_enable_v1_only.header_transformation.proper_case_header_transformation-
OptionDescriptionRecommended
spec.request_cookies_to_add[].secret_value-
spec.request_cookies_to_add[].value-
OptionDescriptionRecommended
spec.response_cookies_to_add[].add_domain-
spec.response_cookies_to_add[].ignore_domain-
OptionDescriptionRecommended
spec.response_cookies_to_add[].add_expiry-
spec.response_cookies_to_add[].ignore_expiry-
OptionDescriptionRecommended
spec.response_cookies_to_add[].add_httponly-
spec.response_cookies_to_add[].ignore_httponly-
OptionDescriptionRecommended
spec.response_cookies_to_add[].ignore_max_age-
spec.response_cookies_to_add[].max_age_value-
OptionDescriptionRecommended
spec.response_cookies_to_add[].add_partitioned-
spec.response_cookies_to_add[].ignore_partitioned-
OptionDescriptionRecommended
spec.response_cookies_to_add[].add_path-
spec.response_cookies_to_add[].ignore_path-
OptionDescriptionRecommended
spec.response_cookies_to_add[].ignore_samesite-
spec.response_cookies_to_add[].samesite_lax-
spec.response_cookies_to_add[].samesite_none-
spec.response_cookies_to_add[].samesite_strict-
OptionDescriptionRecommended
spec.response_cookies_to_add[].add_secure-
spec.response_cookies_to_add[].ignore_secure-
OptionDescriptionRecommended
spec.slow_ddos_mitigation.disable_request_timeout-
spec.slow_ddos_mitigation.request_timeout-
OptionDescriptionRecommended
spec.tls_cert_params.client_certificate_optional-
spec.tls_cert_params.client_certificate_required-
spec.tls_cert_params.no_client_certificate-
OptionDescriptionRecommended
spec.tls_cert_params.validation_params.trusted_ca-
spec.tls_cert_params.validation_params.trusted_ca_url-
OptionDescriptionRecommended
spec.tls_parameters.common_params.tls_certificates[].custom_hash_algorithms-
spec.tls_parameters.common_params.tls_certificates[].disable_ocsp_stapling-
spec.tls_parameters.common_params.tls_certificates[].use_system_defaults-
OptionDescriptionRecommended
spec.waf_type.app_firewall-
spec.waf_type.disable_waf-
spec.waf_type.inherit_waf-

Ask Claude to help you work with Virtual Host resources:

“Create a virtual-host named ‘example’ in the ‘production’ namespace”

“List all virtual-hosts in the ‘production’ namespace”

“Get details of the virtual-host named ‘example’ in namespace ‘production‘“

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