Skip to main content

url_maps

Overview

Nameurl_maps
TypeResource
Idgoogle.compute.url_maps

Fields

NameDatatypeDescription
idstring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringName 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 [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
defaultRouteActionobject
regionstring[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.
selfLinkstring[Output Only] Server-defined URL for the resource.
kindstring[Output Only] Type of the resource. Always compute#urlMaps for url maps.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
defaultServicestringThe full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
hostRulesarrayThe list of host rules to use against the URL.
testsarrayThe list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
headerActionobjectThe request and response header transformations that take effect before the request is passed along to the selected backendService.
fingerprintstringFingerprint 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 UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap.
defaultUrlRedirectobjectSpecifies settings for an HTTP redirect.
pathMatchersarrayThe list of named PathMatchers to use against the URL.

Methods

NameAccessible byRequired ParamsDescription
getSELECTproject, urlMapReturns the specified UrlMap resource.
listSELECTprojectRetrieves the list of UrlMap resources available to the specified project.
insertINSERTprojectCreates a UrlMap resource in the specified project using the data included in the request.
deleteDELETEproject, urlMapDeletes the specified UrlMap resource.
invalidate_cacheEXECproject, urlMapInitiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see Invalidating cached content.
patchEXECproject, urlMapPatches the specified UrlMap resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
updateEXECproject, urlMapUpdates the specified UrlMap resource with the data included in the request.
validateEXECproject, urlMapRuns static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.