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:
urlMapsare used by global external Application Load Balancers, classic Application Load Balancers, and cross-region internal Application Load Balancers.regionUrlMapsare 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 |
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 |
tests[] |
The list of expected URL mapping tests. Request to update the Not supported when the URL map is bound to a target gRPC proxy that has |
defaultService |
The full or partial URL of the Only one of
|
defaultRouteAction |
Only one of URL maps for classic Application Load Balancers only support the
|
defaultUrlRedirect |
When none of the specified Only one of 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
Not supported when the URL map is bound to a target gRPC proxy that has |
defaultCustomErrorResponsePolicy |
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 When used in conjunction with
|
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 To see the latest fingerprint, make a 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 |
|
|---|---|
|
Retrieves the list of all UrlMap resources, regional and global, available to the specified project. |
|
Deletes the specified UrlMap resource. |
|
Returns the specified UrlMap resource. |
|
Creates a UrlMap resource in the specified project using the data included in the request. |
|
Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. |
|
Retrieves the list of UrlMap resources available to the specified project. |
|
Patches the specified UrlMap resource with the data included in the request. |
|
Updates the specified UrlMap resource with the data included in the request. |
|
Runs static validation for the UrlMap. |
|
The method compute.v1.UrlMapsService.TestPermissions is not available in Cloud de Confiance by S3NS. |