Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class UrlMap.
URL pattern and description of how the URL should be handled. App Engine can
handle URLs by executing application code or by serving static files
uploaded with the version, such as images, CSS, or JavaScript.
Generated from protobuf messagegoogle.appengine.v1.UrlMap
Namespace
Google \ Cloud \ AppEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ url_regex
string
URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
Executes a script to handle the requests that match this URL pattern. Only theautovalue is supported for Node.js in the App Engine standard environment, for example"script": "auto".
Executes a script to handle the requests that match this URL
pattern. Only theautovalue is supported for Node.js in the
App Engine standard environment, for example"script": "auto".
Executes a script to handle the requests that match this URL
pattern. Only theautovalue is supported for Node.js in the
App Engine standard environment, for example"script": "auto".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Appengine Admin V1 Client - Class UrlMap (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-appengine-admin/latest/V1.UrlMap)\n- [2.0.3](/php/docs/reference/cloud-appengine-admin/2.0.3/V1.UrlMap)\n- [1.3.5](/php/docs/reference/cloud-appengine-admin/1.3.5/V1.UrlMap)\n- [1.2.2](/php/docs/reference/cloud-appengine-admin/1.2.2/V1.UrlMap)\n- [1.1.1](/php/docs/reference/cloud-appengine-admin/1.1.1/V1.UrlMap)\n- [1.0.6](/php/docs/reference/cloud-appengine-admin/1.0.6/V1.UrlMap) \nReference documentation and code samples for the Google Cloud Appengine Admin V1 Client class UrlMap.\n\nURL pattern and description of how the URL should be handled. App Engine can\nhandle URLs by executing application code or by serving static files\nuploaded with the version, such as images, CSS, or JavaScript.\n\nGenerated from protobuf message `google.appengine.v1.UrlMap`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AppEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUrlRegex\n\nURL prefix. Uses regular expression syntax, which means regexp\nspecial characters must be escaped, but should not contain groupings.\n\nAll URLs that begin with this prefix are handled by this handler, using the\nportion of the URL after the prefix as part of the file path.\n\n### setUrlRegex\n\nURL prefix. Uses regular expression syntax, which means regexp\nspecial characters must be escaped, but should not contain groupings.\n\nAll URLs that begin with this prefix are handled by this handler, using the\nportion of the URL after the prefix as part of the file path.\n\n### getStaticFiles\n\nReturns the contents of a file, such as an image, as the response.\n\n### hasStaticFiles\n\n### setStaticFiles\n\nReturns the contents of a file, such as an image, as the response.\n\n### getScript\n\nExecutes a script to handle the requests that match this URL\npattern. Only the `auto` value is supported for Node.js in the\nApp Engine standard environment, for example `\"script\": \"auto\"`.\n\n### hasScript\n\n### setScript\n\nExecutes a script to handle the requests that match this URL\npattern. Only the `auto` value is supported for Node.js in the\nApp Engine standard environment, for example `\"script\": \"auto\"`.\n\n### getApiEndpoint\n\nUses API Endpoints to handle requests.\n\n### hasApiEndpoint\n\n### setApiEndpoint\n\nUses API Endpoints to handle requests.\n\n### getSecurityLevel\n\nSecurity (HTTPS) enforcement for this URL.\n\n### setSecurityLevel\n\nSecurity (HTTPS) enforcement for this URL.\n\n### getLogin\n\nLevel of login required to access this resource. Not supported for Node.js\nin the App Engine standard environment.\n\n### setLogin\n\nLevel of login required to access this resource. Not supported for Node.js\nin the App Engine standard environment.\n\n### getAuthFailAction\n\nAction to take when users access resources that require\nauthentication. Defaults to `redirect`.\n\n### setAuthFailAction\n\nAction to take when users access resources that require\nauthentication. Defaults to `redirect`.\n\n### getRedirectHttpResponseCode\n\n`30x` code to use when performing redirects for the `secure` field.\n\nDefaults to `302`.\n\n### setRedirectHttpResponseCode\n\n`30x` code to use when performing redirects for the `secure` field.\n\nDefaults to `302`.\n\n### getHandlerType"]]