Resource: UrlMap
Represents a URL Map resource.
Compute Engine has two URL Map resources:
A URL map resource is a component of certain types of cloud load balancers and Traffic Director:
urlMaps
are used by global external Application Load Balancers, classic Application Load Balancers, and cross-region internal Application Load Balancers. *
regionUrlMaps
are used by internal Application Load Balancers, regional external Application Load Balancers and regional internal Application Load Balancers.
For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table.
For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table.
This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket.
To use the global
urlMaps
resource, the backend service must have a
loadBalancingScheme
of either
EXTERNAL
,
EXTERNAL_MANAGED
, or
INTERNAL_SELF_MANAGED
. To use the
regionUrlMaps
resource, the backend service must have a
loadBalancingScheme
of
INTERNAL_MANAGED
. For more information, read URL Map Concepts.
JSON representation |
---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "selfLink": string, "hostRules": [ { object ( |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always
for url maps. |
id |
[Output Only] The unique identifier for the resource. This identifier is defined by the server. |
creationTimestamp |
[Output Only] Creation timestamp in RFC3339 text format. |
name |
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
description |
An optional description of this resource. Provide this property when you create the resource. |
selfLink |
[Output Only] Server-defined URL for the resource. |
hostRules[] |
The list of host rules to use against the URL. |
pathMatchers[] |
The list of named
to use against the URL. |
tests[] |
The list of expected URL mapping tests. Request to update the
succeeds only if all test cases pass. You can specify a maximum of 100 tests per
. Not supported when the URL map is bound to a target gRPC proxy that has
field set to
. |
defaultService |
The full or partial URL of the
resource to which traffic is directed if none of the
match. If
is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. Only one of
,
or
can be set.
has no effect when the URL map is bound to a target gRPC proxy that has the
field set to
. |
defaultRouteAction |
takes effect when none of the
match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. Only one of
,
or
can be set. URL maps for classic Application Load Balancers only support the
action within
.
has no effect when the URL map is bound to a target gRPC proxy that has the
field set to
. |
defaultUrlRedirect |
When none of the specified
match, the request is redirected to a URL specified by
. Only one of
,
or
can be set. Not supported when the URL map is bound to a target gRPC proxy. |
headerAction |
Specifies changes to request and response headers that need to take effect for the selected
. The
specified here take effect after
specified under
.
is not supported for load balancers that have their
set to
. Not supported when the URL map is bound to a target gRPC proxy that has
field set to
. |
defaultCustomErrorResponsePolicy |
specifies how the Load Balancer returns error responses when
or
responds with an error. This policy takes effect at the load balancer level and applies only when no policy has been defined for the error code at lower levels like PathMatcher, RouteRule and PathRule within this UrlMap. For example, consider a UrlMap with the following configuration:
If a request for encounters a
, the policy in
will be enforced. When the request for encounters a
, the policy in
will be enforced. When a request that does not match any host in
such as
, encounters a
,
takes effect. When used in conjunction with
, retries take precedence. Only once all retries are exhausted, the
is applied. While attempting a retry, if
is successful in reaching the service, the
is ignored and the response from the service is returned to the client.
is supported only for global external Application Load Balancers. |
fingerprint |
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a
. An up-to-date fingerprint must be provided in order to update the
, otherwise the request will fail with error
. To see the latest fingerprint, make a
request to retrieve a UrlMap. A base64-encoded string. |
region |
[Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
Methods |
|
---|---|
|
The method compute.v1.UrlMapsService.AggregatedList is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.Delete is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.Get is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.Insert is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.InvalidateCache is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.List is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.Patch is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.Update is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.UrlMapsService.Validate is not available in Trusted Cloud by S3NS. |