URLMap
UrlMaps are used to route requests to a backend service based on rules that you define for the host and path of an incoming URL.
To get more information about UrlMap, see:
Create a URLMap Resource
new URLMap(name: string, args?: URLMapArgs, opts?: CustomResourceOptions);def URLMap(resource_name, opts=None, default_route_action=None, default_service=None, default_url_redirect=None, description=None, header_action=None, host_rules=None, name=None, path_matchers=None, project=None, tests=None, __props__=None);func NewURLMap(ctx *Context, name string, args *URLMapArgs, opts ...ResourceOption) (*URLMap, error)public URLMap(string name, URLMapArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args URLMapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args URLMapArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args URLMapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
URLMap Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The URLMap resource accepts the following input properties:
- Default
Route URLMapAction Default Route Action Args defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- Default
Service string The backend service or backend bucket to use when none of the given paths match.
- Default
Url URLMapRedirect Default Url Redirect Args When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- Description string
Description of this test case.
- Header
Action URLMapHeader Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Host
Rules List<URLMapHost Rule Args> The list of HostRules to use against the URL. Structure is documented below.
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Path
Matchers List<URLMapPath Matcher Args> The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Tests
List<URLMap
Test Args> The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
- Default
Route URLMapAction Default Route Action defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- Default
Service string The backend service or backend bucket to use when none of the given paths match.
- Default
Url URLMapRedirect Default Url Redirect When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- Description string
Description of this test case.
- Header
Action URLMapHeader Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Host
Rules []URLMapHost Rule The list of HostRules to use against the URL. Structure is documented below.
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Path
Matchers []URLMapPath Matcher The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Tests
[]URLMap
Test The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
- default
Route URLMapAction Default Route Action defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- default
Service string The backend service or backend bucket to use when none of the given paths match.
- default
Url URLMapRedirect Default Url Redirect When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- description string
Description of this test case.
- header
Action URLMapHeader Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- host
Rules URLMapHost Rule[] The list of HostRules to use against the URL. Structure is documented below.
- name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- path
Matchers URLMapPath Matcher[] The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- tests
URLMap
Test[] The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
- default_
route_ Dict[URLMapaction Default Route Action] defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- default_
service str The backend service or backend bucket to use when none of the given paths match.
- default_
url_ Dict[URLMapredirect Default Url Redirect] When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- description str
Description of this test case.
- header_
action Dict[URLMapHeader Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- host_
rules List[URLMapHost Rule] The list of HostRules to use against the URL. Structure is documented below.
- name str
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- path_
matchers List[URLMapPath Matcher] The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- tests
List[URLMap
Test] The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the URLMap resource produces the following output properties:
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Id string
- The provider-assigned unique ID for this managed resource.
- Map
Id int The unique identifier for the resource.
- Self
Link string The URI of the created resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Id string
- The provider-assigned unique ID for this managed resource.
- Map
Id int The unique identifier for the resource.
- Self
Link string The URI of the created resource.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- id string
- The provider-assigned unique ID for this managed resource.
- map
Id number The unique identifier for the resource.
- self
Link string The URI of the created resource.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- fingerprint str
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- id str
- The provider-assigned unique ID for this managed resource.
- map_
id float The unique identifier for the resource.
- self_
link str The URI of the created resource.
Look up an Existing URLMap Resource
Get an existing URLMap resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: URLMapState, opts?: CustomResourceOptions): URLMapstatic get(resource_name, id, opts=None, creation_timestamp=None, default_route_action=None, default_service=None, default_url_redirect=None, description=None, fingerprint=None, header_action=None, host_rules=None, map_id=None, name=None, path_matchers=None, project=None, self_link=None, tests=None, __props__=None);func GetURLMap(ctx *Context, name string, id IDInput, state *URLMapState, opts ...ResourceOption) (*URLMap, error)public static URLMap Get(string name, Input<string> id, URLMapState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Default
Route URLMapAction Default Route Action Args defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- Default
Service string The backend service or backend bucket to use when none of the given paths match.
- Default
Url URLMapRedirect Default Url Redirect Args When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- Description string
Description of this test case.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Header
Action URLMapHeader Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Host
Rules List<URLMapHost Rule Args> The list of HostRules to use against the URL. Structure is documented below.
- Map
Id int The unique identifier for the resource.
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Path
Matchers List<URLMapPath Matcher Args> The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URI of the created resource.
- Tests
List<URLMap
Test Args> The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Default
Route URLMapAction Default Route Action defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- Default
Service string The backend service or backend bucket to use when none of the given paths match.
- Default
Url URLMapRedirect Default Url Redirect When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- Description string
Description of this test case.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Header
Action URLMapHeader Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Host
Rules []URLMapHost Rule The list of HostRules to use against the URL. Structure is documented below.
- Map
Id int The unique identifier for the resource.
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Path
Matchers []URLMapPath Matcher The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URI of the created resource.
- Tests
[]URLMap
Test The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- default
Route URLMapAction Default Route Action defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- default
Service string The backend service or backend bucket to use when none of the given paths match.
- default
Url URLMapRedirect Default Url Redirect When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- description string
Description of this test case.
- fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- header
Action URLMapHeader Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- host
Rules URLMapHost Rule[] The list of HostRules to use against the URL. Structure is documented below.
- map
Id number The unique identifier for the resource.
- name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- path
Matchers URLMapPath Matcher[] The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link string The URI of the created resource.
- tests
URLMap
Test[] The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- default_
route_ Dict[URLMapaction Default Route Action] defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- default_
service str The backend service or backend bucket to use when none of the given paths match.
- default_
url_ Dict[URLMapredirect Default Url Redirect] When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- description str
Description of this test case.
- fingerprint str
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- header_
action Dict[URLMapHeader Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- host_
rules List[URLMapHost Rule] The list of HostRules to use against the URL. Structure is documented below.
- map_
id float The unique identifier for the resource.
- name str
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- path_
matchers List[URLMapPath Matcher] The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self_
link str The URI of the created resource.
- tests
List[URLMap
Test] The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Structure is documented below.
Supporting Types
URLMapDefaultRouteAction
- Cors
Policy URLMapDefault Route Action Cors Policy Args The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Default Route Action Fault Injection Policy Args The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Default Route Action Request Mirror Policy Args Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapDefault Route Action Retry Policy Args Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Default Route Action Timeout Args Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapDefault Route Action Url Rewrite Args The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend List<URLMapServices Default Route Action Weighted Backend Service Args> A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- Cors
Policy URLMapDefault Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Default Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Default Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapDefault Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Default Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapDefault Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend []URLMapServices Default Route Action Weighted Backend Service A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy URLMapDefault Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection URLMapPolicy Default Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror URLMapPolicy Default Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy URLMapDefault Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- timeout
URLMap
Default Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite URLMapDefault Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend URLMapServices Default Route Action Weighted Backend Service[] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy Dict[URLMapDefault Route Action Cors Policy] The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection Dict[URLMapPolicy Default Route Action Fault Injection Policy] The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror Dict[URLMapPolicy Default Route Action Request Mirror Policy] Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy Dict[URLMapDefault Route Action Retry Policy] Specifies the retry policy associated with this route. Structure is documented below.
- timeout
Dict[URLMap
Default Route Action Timeout] Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite Dict[URLMapDefault Route Action Url Rewrite] The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend List[URLMapServices Default Route Action Weighted Backend Service] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
URLMapDefaultRouteActionCorsPolicy
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers List<string> Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods List<string> Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin List<string>Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins List<string> Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Expose
Headers List<string> Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers []string Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods []string Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin []stringRegexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins []string Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Expose
Headers []string Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- allow
Credentials boolean In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers string[] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods string[] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin string[]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins string[] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- disabled boolean
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- expose
Headers string[] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age number Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers List[str] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods List[str] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin List[str]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins List[str] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- expose
Headers List[str] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age float Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
URLMapDefaultRouteActionFaultInjectionPolicy
- Abort
URLMap
Default Route Action Fault Injection Policy Abort Args The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Default Route Action Fault Injection Policy Delay Args The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- Abort
URLMap
Default Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Default Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
URLMap
Default Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
URLMap
Default Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
Dict[URLMap
Default Route Action Fault Injection Policy Abort] The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
Dict[URLMap
Default Route Action Fault Injection Policy Delay] The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
URLMapDefaultRouteActionFaultInjectionPolicyAbort
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status number The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status float The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapDefaultRouteActionFaultInjectionPolicyDelay
- Fixed
Delay URLMapDefault Route Action Fault Injection Policy Delay Fixed Delay Args Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Fixed
Delay URLMapDefault Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay URLMapDefault Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay Dict[URLMapDefault Route Action Fault Injection Policy Delay Fixed Delay] Specifies the value of the fixed delay interval. Structure is documented below.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapDefaultRouteActionFaultInjectionPolicyDelayFixedDelay
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
URLMapDefaultRouteActionRequestMirrorPolicy
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
URLMapDefaultRouteActionRetryPolicy
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Default Route Action Retry Policy Per Try Timeout Args Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions List<string> Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Default Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions []string Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries number Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try URLMapTimeout Default Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions string[] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries float Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try Dict[URLMapTimeout Default Route Action Retry Policy Per Try Timeout] Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions List[str] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
URLMapDefaultRouteActionRetryPolicyPerTryTimeout
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
URLMapDefaultRouteActionTimeout
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
URLMapDefaultRouteActionUrlRewrite
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite str Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix strRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
URLMapDefaultRouteActionWeightedBackendService
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Header
Action URLMapDefault Route Action Weighted Backend Service Header Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Header
Action URLMapDefault Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- header
Action URLMapDefault Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- weight number
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
- header_
action Dict[URLMapDefault Route Action Weighted Backend Service Header Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- weight float
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
URLMapDefaultRouteActionWeightedBackendServiceHeaderAction
- Request
Headers List<URLMapTo Adds Default Route Action Weighted Backend Service Header Action Request Headers To Add Args> Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers List<string>To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers List<URLMapTo Adds Default Route Action Weighted Backend Service Header Action Response Headers To Add Args> Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers List<string>To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- Request
Headers []URLMapTo Adds Default Route Action Weighted Backend Service Header Action Request Headers To Add Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers []stringTo Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers []URLMapTo Adds Default Route Action Weighted Backend Service Header Action Response Headers To Add Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers []stringTo Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers URLMapTo Adds Default Route Action Weighted Backend Service Header Action Request Headers To Add[] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers string[]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers URLMapTo Adds Default Route Action Weighted Backend Service Header Action Response Headers To Add[] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers string[]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers List[URLMapTo Adds Default Route Action Weighted Backend Service Header Action Request Headers To Add] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers List[str]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers List[URLMapTo Adds Default Route Action Weighted Backend Service Header Action Response Headers To Add] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers List[str]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
URLMapDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapDefaultUrlRedirect
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query boolean If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect boolean If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect str The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect str The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect str The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response strCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
URLMapHeaderAction
- Request
Headers List<URLMapTo Adds Header Action Request Headers To Add Args> Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers List<string>To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers List<URLMapTo Adds Header Action Response Headers To Add Args> Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers List<string>To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- Request
Headers []URLMapTo Adds Header Action Request Headers To Add Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers []stringTo Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers []URLMapTo Adds Header Action Response Headers To Add Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers []stringTo Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers URLMapTo Adds Header Action Request Headers To Add[] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers string[]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers URLMapTo Adds Header Action Response Headers To Add[] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers string[]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers List[URLMapTo Adds Header Action Request Headers To Add] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers List[str]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers List[URLMapTo Adds Header Action Response Headers To Add] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers List[str]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
URLMapHeaderActionRequestHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapHeaderActionResponseHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapHostRule
- Hosts List<string>
The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
- Path
Matcher string The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- Description string
Description of this test case.
- Hosts []string
The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
- Path
Matcher string The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- Description string
Description of this test case.
- hosts string[]
The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
- path
Matcher string The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- description string
Description of this test case.
- hosts List[str]
The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or ..
- path
Matcher str The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL’s host portion.
- description str
Description of this test case.
URLMapPathMatcher
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Default
Route URLMapAction Path Matcher Default Route Action Args defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- Default
Service string The backend service or backend bucket to use when none of the given paths match.
- Default
Url URLMapRedirect Path Matcher Default Url Redirect Args When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- Description string
Description of this test case.
- Header
Action URLMapPath Matcher Header Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Path
Rules List<URLMapPath Matcher Path Rule Args> The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that’s required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. Structure is documented below.
- Route
Rules List<URLMapPath Matcher Route Rule Args> The list of ordered HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. The order of specifying routeRules matters: the first rule that matches will cause its specified routing action to take effect. Within a given pathMatcher, only one of pathRules or routeRules must be set. routeRules are not supported in UrlMaps intended for External load balancers. Structure is documented below.
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Default
Route URLMapAction Path Matcher Default Route Action defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- Default
Service string The backend service or backend bucket to use when none of the given paths match.
- Default
Url URLMapRedirect Path Matcher Default Url Redirect When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- Description string
Description of this test case.
- Header
Action URLMapPath Matcher Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Path
Rules []URLMapPath Matcher Path Rule The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that’s required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. Structure is documented below.
- Route
Rules []URLMapPath Matcher Route Rule The list of ordered HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. The order of specifying routeRules matters: the first rule that matches will cause its specified routing action to take effect. Within a given pathMatcher, only one of pathRules or routeRules must be set. routeRules are not supported in UrlMaps intended for External load balancers. Structure is documented below.
- name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- default
Route URLMapAction Path Matcher Default Route Action defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- default
Service string The backend service or backend bucket to use when none of the given paths match.
- default
Url URLMapRedirect Path Matcher Default Url Redirect When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- description string
Description of this test case.
- header
Action URLMapPath Matcher Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- path
Rules URLMapPath Matcher Path Rule[] The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that’s required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. Structure is documented below.
- route
Rules URLMapPath Matcher Route Rule[] The list of ordered HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. The order of specifying routeRules matters: the first rule that matches will cause its specified routing action to take effect. Within a given pathMatcher, only one of pathRules or routeRules must be set. routeRules are not supported in UrlMaps intended for External load balancers. Structure is documented below.
- name str
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- default_
route_ Dict[URLMapaction Path Matcher Default Route Action] defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. Structure is documented below.
- default_
service str The backend service or backend bucket to use when none of the given paths match.
- default_
url_ Dict[URLMapredirect Path Matcher Default Url Redirect] When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
- description str
Description of this test case.
- header_
action Dict[URLMapPath Matcher Header Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- path
Rules List[URLMapPath Matcher Path Rule] The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that’s required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. Structure is documented below.
- route
Rules List[URLMapPath Matcher Route Rule] The list of ordered HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. The order of specifying routeRules matters: the first rule that matches will cause its specified routing action to take effect. Within a given pathMatcher, only one of pathRules or routeRules must be set. routeRules are not supported in UrlMaps intended for External load balancers. Structure is documented below.
URLMapPathMatcherDefaultRouteAction
- Cors
Policy URLMapPath Matcher Default Route Action Cors Policy Args The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Path Matcher Default Route Action Fault Injection Policy Args The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Path Matcher Default Route Action Request Mirror Policy Args Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapPath Matcher Default Route Action Retry Policy Args Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Path Matcher Default Route Action Timeout Args Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapPath Matcher Default Route Action Url Rewrite Args The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend List<URLMapServices Path Matcher Default Route Action Weighted Backend Service Args> A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- Cors
Policy URLMapPath Matcher Default Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Path Matcher Default Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Path Matcher Default Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapPath Matcher Default Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Path Matcher Default Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapPath Matcher Default Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend []URLMapServices Path Matcher Default Route Action Weighted Backend Service A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy URLMapPath Matcher Default Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection URLMapPolicy Path Matcher Default Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror URLMapPolicy Path Matcher Default Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy URLMapPath Matcher Default Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- timeout
URLMap
Path Matcher Default Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite URLMapPath Matcher Default Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend URLMapServices Path Matcher Default Route Action Weighted Backend Service[] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy Dict[URLMapPath Matcher Default Route Action Cors Policy] The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection Dict[URLMapPolicy Path Matcher Default Route Action Fault Injection Policy] The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror Dict[URLMapPolicy Path Matcher Default Route Action Request Mirror Policy] Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy Dict[URLMapPath Matcher Default Route Action Retry Policy] Specifies the retry policy associated with this route. Structure is documented below.
- timeout
Dict[URLMap
Path Matcher Default Route Action Timeout] Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite Dict[URLMapPath Matcher Default Route Action Url Rewrite] The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend List[URLMapServices Path Matcher Default Route Action Weighted Backend Service] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
URLMapPathMatcherDefaultRouteActionCorsPolicy
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers List<string> Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods List<string> Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin List<string>Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins List<string> Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Expose
Headers List<string> Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers []string Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods []string Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin []stringRegexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins []string Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Expose
Headers []string Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- allow
Credentials boolean In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers string[] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods string[] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin string[]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins string[] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- disabled boolean
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- expose
Headers string[] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age number Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers List[str] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods List[str] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin List[str]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins List[str] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- expose
Headers List[str] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age float Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
URLMapPathMatcherDefaultRouteActionFaultInjectionPolicy
- Abort
URLMap
Path Matcher Default Route Action Fault Injection Policy Abort Args The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Path Matcher Default Route Action Fault Injection Policy Delay Args The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- Abort
URLMap
Path Matcher Default Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Path Matcher Default Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
URLMap
Path Matcher Default Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
URLMap
Path Matcher Default Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
Dict[URLMap
Path Matcher Default Route Action Fault Injection Policy Abort] The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
Dict[URLMap
Path Matcher Default Route Action Fault Injection Policy Delay] The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyAbort
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status number The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status float The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelay
- Fixed
Delay URLMapPath Matcher Default Route Action Fault Injection Policy Delay Fixed Delay Args Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Fixed
Delay URLMapPath Matcher Default Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay URLMapPath Matcher Default Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay Dict[URLMapPath Matcher Default Route Action Fault Injection Policy Delay Fixed Delay] Specifies the value of the fixed delay interval. Structure is documented below.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapPathMatcherDefaultRouteActionFaultInjectionPolicyDelayFixedDelay
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
URLMapPathMatcherDefaultRouteActionRequestMirrorPolicy
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
URLMapPathMatcherDefaultRouteActionRetryPolicy
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Path Matcher Default Route Action Retry Policy Per Try Timeout Args Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions List<string> Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Path Matcher Default Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions []string Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries number Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try URLMapTimeout Path Matcher Default Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions string[] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries float Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try Dict[URLMapTimeout Path Matcher Default Route Action Retry Policy Per Try Timeout] Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions List[str] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
URLMapPathMatcherDefaultRouteActionRetryPolicyPerTryTimeout
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
URLMapPathMatcherDefaultRouteActionTimeout
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
URLMapPathMatcherDefaultRouteActionUrlRewrite
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite str Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix strRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
URLMapPathMatcherDefaultRouteActionWeightedBackendService
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Header
Action URLMapPath Matcher Default Route Action Weighted Backend Service Header Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Header
Action URLMapPath Matcher Default Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- header
Action URLMapPath Matcher Default Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- weight number
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
- header_
action Dict[URLMapPath Matcher Default Route Action Weighted Backend Service Header Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- weight float
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderAction
- Request
Headers List<URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Request Headers To Add Args> Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers List<string>To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers List<URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Response Headers To Add Args> Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers List<string>To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- Request
Headers []URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Request Headers To Add Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers []stringTo Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers []URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Response Headers To Add Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers []stringTo Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Request Headers To Add[] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers string[]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Response Headers To Add[] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers string[]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers List[URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Request Headers To Add] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers List[str]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers List[URLMapTo Adds Path Matcher Default Route Action Weighted Backend Service Header Action Response Headers To Add] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers List[str]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherDefaultRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherDefaultUrlRedirect
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query boolean If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect boolean If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect str The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect str The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect str The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response strCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
URLMapPathMatcherHeaderAction
- Request
Headers List<URLMapTo Adds Path Matcher Header Action Request Headers To Add Args> Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers List<string>To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers List<URLMapTo Adds Path Matcher Header Action Response Headers To Add Args> Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers List<string>To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- Request
Headers []URLMapTo Adds Path Matcher Header Action Request Headers To Add Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers []stringTo Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers []URLMapTo Adds Path Matcher Header Action Response Headers To Add Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers []stringTo Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers URLMapTo Adds Path Matcher Header Action Request Headers To Add[] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers string[]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers URLMapTo Adds Path Matcher Header Action Response Headers To Add[] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers string[]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers List[URLMapTo Adds Path Matcher Header Action Request Headers To Add] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers List[str]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers List[URLMapTo Adds Path Matcher Header Action Response Headers To Add] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers List[str]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
URLMapPathMatcherHeaderActionRequestHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherHeaderActionResponseHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherPathRule
- Paths List<string>
The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
- Route
Action URLMapPath Matcher Path Rule Route Action Args In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- Service string
The backend service or backend bucket link that should be matched by this test.
- Url
Redirect URLMapPath Matcher Path Rule Url Redirect Args When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
- Paths []string
The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
- Route
Action URLMapPath Matcher Path Rule Route Action In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- Service string
The backend service or backend bucket link that should be matched by this test.
- Url
Redirect URLMapPath Matcher Path Rule Url Redirect When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
- paths string[]
The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
- route
Action URLMapPath Matcher Path Rule Route Action In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- service string
The backend service or backend bucket link that should be matched by this test.
- url
Redirect URLMapPath Matcher Path Rule Url Redirect When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
- paths List[str]
The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here.
- route
Action Dict[URLMapPath Matcher Path Rule Route Action] In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- service str
The backend service or backend bucket link that should be matched by this test.
- url
Redirect Dict[URLMapPath Matcher Path Rule Url Redirect] When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
URLMapPathMatcherPathRuleRouteAction
- Cors
Policy URLMapPath Matcher Path Rule Route Action Cors Policy Args The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Path Matcher Path Rule Route Action Fault Injection Policy Args The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Path Matcher Path Rule Route Action Request Mirror Policy Args Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapPath Matcher Path Rule Route Action Retry Policy Args Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Path Matcher Path Rule Route Action Timeout Args Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapPath Matcher Path Rule Route Action Url Rewrite Args The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend List<URLMapServices Path Matcher Path Rule Route Action Weighted Backend Service Args> A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- Cors
Policy URLMapPath Matcher Path Rule Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Path Matcher Path Rule Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Path Matcher Path Rule Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapPath Matcher Path Rule Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Path Matcher Path Rule Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapPath Matcher Path Rule Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend []URLMapServices Path Matcher Path Rule Route Action Weighted Backend Service A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy URLMapPath Matcher Path Rule Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection URLMapPolicy Path Matcher Path Rule Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror URLMapPolicy Path Matcher Path Rule Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy URLMapPath Matcher Path Rule Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- timeout
URLMap
Path Matcher Path Rule Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite URLMapPath Matcher Path Rule Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend URLMapServices Path Matcher Path Rule Route Action Weighted Backend Service[] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy Dict[URLMapPath Matcher Path Rule Route Action Cors Policy] The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection Dict[URLMapPolicy Path Matcher Path Rule Route Action Fault Injection Policy] The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror Dict[URLMapPolicy Path Matcher Path Rule Route Action Request Mirror Policy] Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy Dict[URLMapPath Matcher Path Rule Route Action Retry Policy] Specifies the retry policy associated with this route. Structure is documented below.
- timeout
Dict[URLMap
Path Matcher Path Rule Route Action Timeout] Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite Dict[URLMapPath Matcher Path Rule Route Action Url Rewrite] The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend List[URLMapServices Path Matcher Path Rule Route Action Weighted Backend Service] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
URLMapPathMatcherPathRuleRouteActionCorsPolicy
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers List<string> Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods List<string> Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin List<string>Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins List<string> Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Expose
Headers List<string> Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers []string Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods []string Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin []stringRegexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins []string Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Expose
Headers []string Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- disabled boolean
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- allow
Credentials boolean In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers string[] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods string[] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin string[]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins string[] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- expose
Headers string[] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age number Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers List[str] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods List[str] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin List[str]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins List[str] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- expose
Headers List[str] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age float Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicy
- Abort
URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Abort Args The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Delay Args The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- Abort
URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
Dict[URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Abort] The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
Dict[URLMap
Path Matcher Path Rule Route Action Fault Injection Policy Delay] The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status number The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status float The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelay
- Fixed
Delay URLMapPath Matcher Path Rule Route Action Fault Injection Policy Delay Fixed Delay Args Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Fixed
Delay URLMapPath Matcher Path Rule Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay URLMapPath Matcher Path Rule Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay Dict[URLMapPath Matcher Path Rule Route Action Fault Injection Policy Delay Fixed Delay] Specifies the value of the fixed delay interval. Structure is documented below.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapPathMatcherPathRuleRouteActionFaultInjectionPolicyDelayFixedDelay
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
URLMapPathMatcherPathRuleRouteActionRequestMirrorPolicy
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
URLMapPathMatcherPathRuleRouteActionRetryPolicy
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Path Matcher Path Rule Route Action Retry Policy Per Try Timeout Args Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions List<string> Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Path Matcher Path Rule Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions []string Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries number Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try URLMapTimeout Path Matcher Path Rule Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions string[] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries float Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try Dict[URLMapTimeout Path Matcher Path Rule Route Action Retry Policy Per Try Timeout] Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions List[str] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
URLMapPathMatcherPathRuleRouteActionRetryPolicyPerTryTimeout
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
URLMapPathMatcherPathRuleRouteActionTimeout
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
URLMapPathMatcherPathRuleRouteActionUrlRewrite
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite str Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix strRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
URLMapPathMatcherPathRuleRouteActionWeightedBackendService
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- Header
Action URLMapPath Matcher Path Rule Route Action Weighted Backend Service Header Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- Header
Action URLMapPath Matcher Path Rule Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- weight number
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- header
Action URLMapPath Matcher Path Rule Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
- weight float
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- header_
action Dict[URLMapPath Matcher Path Rule Route Action Weighted Backend Service Header Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderAction
- Request
Headers List<URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Request Headers To Add Args> Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers List<string>To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers List<URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Response Headers To Add Args> Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers List<string>To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- Request
Headers []URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Request Headers To Add Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers []stringTo Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers []URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Response Headers To Add Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers []stringTo Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Request Headers To Add[] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers string[]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Response Headers To Add[] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers string[]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers List[URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Request Headers To Add] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers List[str]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers List[URLMapTo Adds Path Matcher Path Rule Route Action Weighted Backend Service Header Action Response Headers To Add] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers List[str]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherPathRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherPathRuleUrlRedirect
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query boolean If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect boolean If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect str The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect str The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect str The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response strCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
URLMapPathMatcherRouteRule
- Priority int
For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules.
- Header
Action URLMapPath Matcher Route Rule Header Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Match
Rules List<URLMapPath Matcher Route Rule Match Rule Args> The rules for determining a match. Structure is documented below.
- Route
Action URLMapPath Matcher Route Rule Route Action Args In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- Service string
The backend service or backend bucket link that should be matched by this test.
- Url
Redirect URLMapPath Matcher Route Rule Url Redirect Args When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
- Priority int
For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules.
- Header
Action URLMapPath Matcher Route Rule Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Match
Rules []URLMapPath Matcher Route Rule Match Rule The rules for determining a match. Structure is documented below.
- Route
Action URLMapPath Matcher Route Rule Route Action In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- Service string
The backend service or backend bucket link that should be matched by this test.
- Url
Redirect URLMapPath Matcher Route Rule Url Redirect When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
- priority number
For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules.
- header
Action URLMapPath Matcher Route Rule Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- match
Rules URLMapPath Matcher Route Rule Match Rule[] The rules for determining a match. Structure is documented below.
- route
Action URLMapPath Matcher Route Rule Route Action In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- service string
The backend service or backend bucket link that should be matched by this test.
- url
Redirect URLMapPath Matcher Route Rule Url Redirect When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
- priority float
For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules.
- header_
action Dict[URLMapPath Matcher Route Rule Header Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- match
Rules List[URLMapPath Matcher Route Rule Match Rule] The rules for determining a match. Structure is documented below.
- route
Action Dict[URLMapPath Matcher Route Rule Route Action] In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. Structure is documented below.
- service str
The backend service or backend bucket link that should be matched by this test.
- url
Redirect Dict[URLMapPath Matcher Route Rule Url Redirect] When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Structure is documented below.
URLMapPathMatcherRouteRuleHeaderAction
- Request
Headers List<URLMapTo Adds Path Matcher Route Rule Header Action Request Headers To Add Args> Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers List<string>To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers List<URLMapTo Adds Path Matcher Route Rule Header Action Response Headers To Add Args> Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers List<string>To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- Request
Headers []URLMapTo Adds Path Matcher Route Rule Header Action Request Headers To Add Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers []stringTo Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers []URLMapTo Adds Path Matcher Route Rule Header Action Response Headers To Add Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers []stringTo Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers URLMapTo Adds Path Matcher Route Rule Header Action Request Headers To Add[] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers string[]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers URLMapTo Adds Path Matcher Route Rule Header Action Response Headers To Add[] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers string[]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers List[URLMapTo Adds Path Matcher Route Rule Header Action Request Headers To Add] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers List[str]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers List[URLMapTo Adds Path Matcher Route Rule Header Action Response Headers To Add] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers List[str]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
URLMapPathMatcherRouteRuleHeaderActionRequestHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherRouteRuleHeaderActionResponseHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherRouteRuleMatchRule
- Full
Path stringMatch For satifying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
- Header
Matches List<URLMapPath Matcher Route Rule Match Rule Header Match Args> Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
- Ignore
Case bool Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
- Metadata
Filters List<URLMapPath Matcher Route Rule Match Rule Metadata Filter Args> Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
- Prefix
Match string The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- Query
Parameter List<URLMapMatches Path Matcher Route Rule Match Rule Query Parameter Match Args> Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
- Regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- Full
Path stringMatch For satifying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
- Header
Matches []URLMapPath Matcher Route Rule Match Rule Header Match Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
- Ignore
Case bool Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
- Metadata
Filters []URLMapPath Matcher Route Rule Match Rule Metadata Filter Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
- Prefix
Match string The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- Query
Parameter []URLMapMatches Path Matcher Route Rule Match Rule Query Parameter Match Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
- Regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- full
Path stringMatch For satifying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
- header
Matches URLMapPath Matcher Route Rule Match Rule Header Match[] Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
- ignore
Case boolean Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
- metadata
Filters URLMapPath Matcher Route Rule Match Rule Metadata Filter[] Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
- prefix
Match string The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- query
Parameter URLMapMatches Path Matcher Route Rule Match Rule Query Parameter Match[] Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
- regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- full
Path strMatch For satifying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. FullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
- header
Matches List[URLMapPath Matcher Route Rule Match Rule Header Match] Specifies a list of header match criteria, all of which must match corresponding headers in the request. Structure is documented below.
- ignore
Case bool Specifies that prefixMatch and fullPathMatch matches are case sensitive. Defaults to false.
- metadata_
filters List[URLMapPath Matcher Route Rule Match Rule Metadata Filter] Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overrides those specified in ForwardingRule that refers to this UrlMap. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Structure is documented below.
- prefix
Match str The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- query
Parameter List[URLMapMatches Path Matcher Route Rule Match Rule Query Parameter Match] Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Structure is documented below.
- regex
Match str The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
URLMapPathMatcherRouteRuleMatchRuleHeaderMatch
- Header
Name string The name of the header to add.
- Exact
Match string The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- Invert
Match bool If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
- Prefix
Match string The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- Present
Match bool Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- Range
Match URLMapPath Matcher Route Rule Match Rule Header Match Range Match Args The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
- Regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- Suffix
Match string The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- Header
Name string The name of the header to add.
- Exact
Match string The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- Invert
Match bool If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
- Prefix
Match string The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- Present
Match bool Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- Range
Match URLMapPath Matcher Route Rule Match Rule Header Match Range Match The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
- Regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- Suffix
Match string The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- header
Name string The name of the header to add.
- exact
Match string The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- invert
Match boolean If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
- prefix
Match string The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- present
Match boolean Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- range
Match URLMapPath Matcher Route Rule Match Rule Header Match Range Match The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
- regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- suffix
Match string The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- header
Name str The name of the header to add.
- exact
Match str The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- invert
Match bool If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false.
- prefix
Match str The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
- present
Match bool Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- range
Match Dict[URLMapPath Matcher Route Rule Match Rule Header Match Range Match] The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Structure is documented below.
- regex
Match str The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- suffix
Match str The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
URLMapPathMatcherRouteRuleMatchRuleHeaderMatchRangeMatch
- Range
End int The end of the range (exclusive).
- Range
Start int The start of the range (inclusive).
- Range
End int The end of the range (exclusive).
- Range
Start int The start of the range (inclusive).
- range
End number The end of the range (exclusive).
- range
Start number The start of the range (inclusive).
- range
End float The end of the range (exclusive).
- range
Start float The start of the range (inclusive).
URLMapPathMatcherRouteRuleMatchRuleMetadataFilter
- Filter
Labels List<URLMapPath Matcher Route Rule Match Rule Metadata Filter Filter Label Args> The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
- Filter
Match stringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are: - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
- Filter
Labels []URLMapPath Matcher Route Rule Match Rule Metadata Filter Filter Label The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
- Filter
Match stringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are: - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
- filter
Labels URLMapPath Matcher Route Rule Match Rule Metadata Filter Filter Label[] The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
- filter
Match stringCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are: - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
- filter
Labels List[URLMapPath Matcher Route Rule Match Rule Metadata Filter Filter Label] The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. Structure is documented below.
- filter
Match strCriteria Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are: - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
URLMapPathMatcherRouteRuleMatchRuleMetadataFilterFilterLabel
URLMapPathMatcherRouteRuleMatchRuleQueryParameterMatch
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Exact
Match string The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- Present
Match bool Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- Regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- Name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- Exact
Match string The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- Present
Match bool Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- Regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- name string
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- exact
Match string The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- present
Match boolean Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- regex
Match string The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
- name str
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
- exact
Match str The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch and regexMatch must be set.
- present
Match bool Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch and regexMatch must be set.
- regex
Match str The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see en.cppreference.com/w/cpp/regex/ecmascript Only one of presentMatch, exactMatch and regexMatch must be set.
URLMapPathMatcherRouteRuleRouteAction
- Cors
Policy URLMapPath Matcher Route Rule Route Action Cors Policy Args The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Path Matcher Route Rule Route Action Fault Injection Policy Args The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Path Matcher Route Rule Route Action Request Mirror Policy Args Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapPath Matcher Route Rule Route Action Retry Policy Args Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Path Matcher Route Rule Route Action Timeout Args Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapPath Matcher Route Rule Route Action Url Rewrite Args The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend List<URLMapServices Path Matcher Route Rule Route Action Weighted Backend Service Args> A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- Cors
Policy URLMapPath Matcher Route Rule Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- Fault
Injection URLMapPolicy Path Matcher Route Rule Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- Request
Mirror URLMapPolicy Path Matcher Route Rule Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- Retry
Policy URLMapPath Matcher Route Rule Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- Timeout
URLMap
Path Matcher Route Rule Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Url
Rewrite URLMapPath Matcher Route Rule Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- Weighted
Backend []URLMapServices Path Matcher Route Rule Route Action Weighted Backend Service A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy URLMapPath Matcher Route Rule Route Action Cors Policy The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection URLMapPolicy Path Matcher Route Rule Route Action Fault Injection Policy The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror URLMapPolicy Path Matcher Route Rule Route Action Request Mirror Policy Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy URLMapPath Matcher Route Rule Route Action Retry Policy Specifies the retry policy associated with this route. Structure is documented below.
- timeout
URLMap
Path Matcher Route Rule Route Action Timeout Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite URLMapPath Matcher Route Rule Route Action Url Rewrite The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend URLMapServices Path Matcher Route Rule Route Action Weighted Backend Service[] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
- cors
Policy Dict[URLMapPath Matcher Route Rule Route Action Cors Policy] The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Structure is documented below.
- fault
Injection Dict[URLMapPolicy Path Matcher Route Rule Route Action Fault Injection Policy] The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. timeout and retryPolicy will be ignored by clients that are configured with a faultInjectionPolicy. Structure is documented below.
- request
Mirror Dict[URLMapPolicy Path Matcher Route Rule Route Action Request Mirror Policy] Specifies the policy on how requests intended for the route’s backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Structure is documented below.
- retry
Policy Dict[URLMapPath Matcher Route Rule Route Action Retry Policy] Specifies the retry policy associated with this route. Structure is documented below.
- timeout
Dict[URLMap
Path Matcher Route Rule Route Action Timeout] Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- url
Rewrite Dict[URLMapPath Matcher Route Rule Route Action Url Rewrite] The spec to modify the URL of the request, prior to forwarding the request to the matched service. Structure is documented below.
- weighted
Backend List[URLMapServices Path Matcher Route Rule Route Action Weighted Backend Service] A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non 0 number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions like Url rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. Structure is documented below.
URLMapPathMatcherRouteRuleRouteActionCorsPolicy
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers List<string> Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods List<string> Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin List<string>Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins List<string> Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Expose
Headers List<string> Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- Allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- Allow
Headers []string Specifies the content for the Access-Control-Allow-Headers header.
- Allow
Methods []string Specifies the content for the Access-Control-Allow-Methods header.
- Allow
Origin []stringRegexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Allow
Origins []string Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- Disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- Expose
Headers []string Specifies the content for the Access-Control-Expose-Headers header.
- Max
Age int Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- allow
Credentials boolean In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers string[] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods string[] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin string[]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins string[] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- disabled boolean
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- expose
Headers string[] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age number Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
- allow
Credentials bool In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header.
- allow
Headers List[str] Specifies the content for the Access-Control-Allow-Headers header.
- allow
Methods List[str] Specifies the content for the Access-Control-Allow-Methods header.
- allow
Origin List[str]Regexes Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- allow
Origins List[str] Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes.
- disabled bool
If true, specifies the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
- expose
Headers List[str] Specifies the content for the Access-Control-Expose-Headers header.
- max
Age float Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicy
- Abort
URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Abort Args The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Delay Args The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- Abort
URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- Delay
URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Abort The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Delay The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
- abort
Dict[URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Abort] The specification for how client requests are aborted as part of fault injection. Structure is documented below.
- delay
Dict[URLMap
Path Matcher Route Rule Route Action Fault Injection Policy Delay] The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. Structure is documented below.
URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Http
Status int The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status number The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- http
Status float The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelay
- Fixed
Delay URLMapPath Matcher Route Rule Route Action Fault Injection Policy Delay Fixed Delay Args Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage double
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- Fixed
Delay URLMapPath Matcher Route Rule Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- Percentage float64
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay URLMapPath Matcher Route Rule Route Action Fault Injection Policy Delay Fixed Delay Specifies the value of the fixed delay interval. Structure is documented below.
- percentage number
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
- fixed
Delay Dict[URLMapPath Matcher Route Rule Route Action Fault Injection Policy Delay Fixed Delay] Specifies the value of the fixed delay interval. Structure is documented below.
- percentage float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyDelayFixedDelay
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
URLMapPathMatcherRouteRuleRouteActionRequestMirrorPolicy
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
URLMapPathMatcherRouteRuleRouteActionRetryPolicy
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Path Matcher Route Rule Route Action Retry Policy Per Try Timeout Args Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions List<string> Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- Num
Retries int Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- Per
Try URLMapTimeout Path Matcher Route Rule Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- Retry
Conditions []string Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries number Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try URLMapTimeout Path Matcher Route Rule Route Action Retry Policy Per Try Timeout Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions string[] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
- num
Retries float Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1.
- per
Try Dict[URLMapTimeout Path Matcher Route Rule Route Action Retry Policy Per Try Timeout] Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. Structure is documented below.
- retry
Conditions List[str] Specfies one or more conditions when this retry rule applies. Valid values are: 5xx: Loadbalancer will attempt a retry if the backend service responds with any 5xx response code, or if the backend service does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. connect-failure: Loadbalancer will retry on failures connecting to backend services, for example due to connection timeouts. retriable-4xx: Loadbalancer will retry for retriable 4xx response codes. Currently the only retriable error supported is 409. refused-stream:Loadbalancer will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. cancelled: Loadbalancer will retry if the gRPC status code in the response header is set to cancelled deadline-exceeded: Loadbalancer will retry if the gRPC status code in the response header is set to deadline-exceeded resource-exhausted: Loadbalancer will retry if the gRPC status code in the response header is set to resource-exhausted unavailable: Loadbalancer will retry if the gRPC status code in the response header is set to unavailable
URLMapPathMatcherRouteRuleRouteActionRetryPolicyPerTryTimeout
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
URLMapPathMatcherRouteRuleRouteActionTimeout
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- Seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- Nanos int
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds string
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos number
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
- seconds str
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
- nanos float
Span of time that’s a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
URLMapPathMatcherRouteRuleRouteActionUrlRewrite
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- Host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- Path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite string Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix stringRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
- host
Rewrite str Prior to forwarding the request to the selected service, the request’s host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
- path
Prefix strRewrite Prior to forwarding the request to the selected backend service, the matching portion of the request’s path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.
URLMapPathMatcherRouteRuleRouteActionWeightedBackendService
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- Header
Action URLMapPath Matcher Route Rule Route Action Weighted Backend Service Header Action Args Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- Backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- Weight int
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- Header
Action URLMapPath Matcher Route Rule Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- backend
Service string The full or partial URL to the BackendService resource being mirrored to.
- weight number
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- header
Action URLMapPath Matcher Route Rule Route Action Weighted Backend Service Header Action Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
- backend_
service str The full or partial URL to the BackendService resource being mirrored to.
- weight float
Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user’s request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService’s session affinity policy. The value must be between 0 and 1000
- header_
action Dict[URLMapPath Matcher Route Rule Route Action Weighted Backend Service Header Action] Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Structure is documented below.
URLMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderAction
- Request
Headers List<URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Request Headers To Add Args> Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers List<string>To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers List<URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Response Headers To Add Args> Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers List<string>To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- Request
Headers []URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Request Headers To Add Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- Request
Headers []stringTo Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- Response
Headers []URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Response Headers To Add Headers to add the response prior to sending the response back to the client. Structure is documented below.
- Response
Headers []stringTo Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Request Headers To Add[] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers string[]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Response Headers To Add[] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers string[]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
- request
Headers List[URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Request Headers To Add] Headers to add to a matching request prior to forwarding the request to the backendService. Structure is documented below.
- request
Headers List[str]To Removes A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService.
- response
Headers List[URLMapTo Adds Path Matcher Route Rule Route Action Weighted Backend Service Header Action Response Headers To Add] Headers to add the response prior to sending the response back to the client. Structure is documented below.
- response
Headers List[str]To Removes A list of header names for headers that need to be removed from the response prior to sending the response back to the client.
URLMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionRequestHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherRouteRuleRouteActionWeightedBackendServiceHeaderActionResponseHeadersToAdd
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- Header
Name string The name of the header to add.
- Header
Value string The value of the header to add.
- Replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name string The name of the header to add.
- header
Value string The value of the header to add.
- replace boolean
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
- header
Name str The name of the header to add.
- header
Value str The value of the header to add.
- replace bool
If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header.
URLMapPathMatcherRouteRuleUrlRedirect
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- Host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- Https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- Path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- Redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- Strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect string The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect boolean If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect string The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect string The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response stringCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query boolean If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
- host
Redirect str The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
- https
Redirect bool If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
- path
Redirect str The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- prefix
Redirect str The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters.
- redirect
Response strCode The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained.
- strip
Query bool If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. This field is required to ensure an empty block is not set. The normal default value is false.
URLMapTest
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.