Home

envoy.config.route.v3.VirtualHost

Example

Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working code.
local types = import 'types.libsonnet';

types.envoy.config.route.v3.VirtualHost
.withCors(types.envoy.config.route.v3.CorsPolicy)
.withDomains([ 'string' ])
.withHedgePolicy(types.envoy.config.route.v3.HedgePolicy)
.withIncludeAttemptCountInResponse(false)
.withIncludeIsTimeoutRetryHeader(false)
.withIncludeRequestAttemptCount(false)
.withMatcher(types.xds.type.matcher.v3.Matcher)
.withName('string')
.withPerRequestBufferLimitBytes(1)
.withRateLimits([ types.envoy.config.route.v3.RateLimit ])
.withRequestHeadersToAdd([ types.envoy.config.core.v3.HeaderValueOption ])
.withRequestHeadersToRemove([ 'string' ])
.withRequestMirrorPolicies([ types.envoy.config.route.v3.RouteAction.RequestMirrorPolicy ])
.withRequireTls(types.envoy.config.route.v3.VirtualHost.TlsRequirementType.NONE)
.withResponseHeadersToAdd([ types.envoy.config.core.v3.HeaderValueOption ])
.withResponseHeadersToRemove([ 'string' ])
.withRetryPolicy(types.envoy.config.route.v3.RetryPolicy)
.withRetryPolicyTypedConfig(types.google.protobuf.Any)
.withRoutes([ types.envoy.config.route.v3.Route ])
.withTypedPerFilterConfig({ key: types.google.protobuf.Any })
.withVirtualClusters([ types.envoy.config.route.v3.VirtualCluster ])
._validate()

Nested Enums

Nested Messages

Fields

Name Type One-of group Required Constraints
cors envoy.config.route.v3.CorsPolicy  
domains [] string yes  {"Repeated":{"items":{"Type":{"String_":{"WellKnown":{"WellKnownRegex":2},"strict":false}}},"min_items":1}}
hedge_policy envoy.config.route.v3.HedgePolicy  
include_attempt_count_in_response bool  
include_is_timeout_retry_header bool  
include_request_attempt_count bool  
matcher xds.type.matcher.v3.Matcher  
name string   {"String_":{"WellKnown":null,"min_len":1}}
per_request_buffer_limit_bytes google.protobuf.UInt32Value  
rate_limits [] envoy.config.route.v3.RateLimit  
request_headers_to_add [] envoy.config.core.v3.HeaderValueOption   {"Repeated":{"max_items":1000}}
request_headers_to_remove [] string   {"Repeated":{"items":{"Type":{"String_":{"WellKnown":{"WellKnownRegex":1},"min_len":1,"strict":false}}}}}
request_mirror_policies [] envoy.config.route.v3.RouteAction.RequestMirrorPolicy  
require_tls envoy.config.route.v3.VirtualHost.TlsRequirementType   {"Enum":{"defined_only":true}}
response_headers_to_add [] envoy.config.core.v3.HeaderValueOption   {"Repeated":{"max_items":1000}}
response_headers_to_remove [] string   {"Repeated":{"items":{"Type":{"String_":{"WellKnown":{"WellKnownRegex":1},"min_len":1,"strict":false}}}}}
retry_policy envoy.config.route.v3.RetryPolicy  
retry_policy_typed_config google.protobuf.Any  
routes [] envoy.config.route.v3.Route  
typed_per_filter_config map[string] google.protobuf.Any  
virtual_clusters [] envoy.config.route.v3.VirtualCluster