Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class UrlDispatchRule.
Rules to match an HTTP request and dispatch that request to a service.
Generated from protobuf messagegoogle.appengine.v1.UrlDispatchRule
Namespace
Google \ Cloud \ AppEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ domain
string
Domain name to match against. The wildcard "*" is supported if specified before a period: "*.". Defaults to matching all domains: "*".
↳ path
string
Pathname within the host. Must start with a "/". A single "*" can be included at the end of the path. The sum of the lengths of the domain and path may not exceed 100 characters.
↳ service
string
Resource ID of a service in this application that should serve the matched request. The service must already exist. Example:default.
getDomain
Domain name to match against. The wildcard "*" is supported if
specified before a period: "*.".
Defaults to matching all domains: "*".
Returns
Type
Description
string
setDomain
Domain name to match against. The wildcard "*" is supported if
specified before a period: "*.".
Defaults to matching all domains: "*".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPath
Pathname within the host. Must start with a "/". A
single "*" can be included at the end of the path.
The sum of the lengths of the domain and path may not
exceed 100 characters.
Returns
Type
Description
string
setPath
Pathname within the host. Must start with a "/". A
single "*" can be included at the end of the path.
The sum of the lengths of the domain and path may not
exceed 100 characters.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getService
Resource ID of a service in this application that should
serve the matched request. The service must already
exist. Example:default.
Returns
Type
Description
string
setService
Resource ID of a service in this application that should
serve the matched request. The service must already
exist. Example:default.
[[["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 UrlDispatchRule (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-appengine-admin/latest/V1.UrlDispatchRule)\n- [2.0.3](/php/docs/reference/cloud-appengine-admin/2.0.3/V1.UrlDispatchRule)\n- [1.3.5](/php/docs/reference/cloud-appengine-admin/1.3.5/V1.UrlDispatchRule)\n- [1.2.2](/php/docs/reference/cloud-appengine-admin/1.2.2/V1.UrlDispatchRule)\n- [1.1.1](/php/docs/reference/cloud-appengine-admin/1.1.1/V1.UrlDispatchRule)\n- [1.0.6](/php/docs/reference/cloud-appengine-admin/1.0.6/V1.UrlDispatchRule) \nReference documentation and code samples for the Google Cloud Appengine Admin V1 Client class UrlDispatchRule.\n\nRules to match an HTTP request and dispatch that request to a service.\n\nGenerated from protobuf message `google.appengine.v1.UrlDispatchRule`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AppEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDomain\n\nDomain name to match against. The wildcard \"`*`\" is supported if\nspecified before a period: \"`*.`\".\n\nDefaults to matching all domains: \"`*`\".\n\n### setDomain\n\nDomain name to match against. The wildcard \"`*`\" is supported if\nspecified before a period: \"`*.`\".\n\nDefaults to matching all domains: \"`*`\".\n\n### getPath\n\nPathname within the host. Must start with a \"`/`\". A\nsingle \"`*`\" can be included at the end of the path.\n\nThe sum of the lengths of the domain and path may not\nexceed 100 characters.\n\n### setPath\n\nPathname within the host. Must start with a \"`/`\". A\nsingle \"`*`\" can be included at the end of the path.\n\nThe sum of the lengths of the domain and path may not\nexceed 100 characters.\n\n### getService\n\nResource ID of a service in this application that should\nserve the matched request. The service must already\nexist. Example: `default`.\n\n### setService\n\nResource ID of a service in this application that should\nserve the matched request. The service must already\nexist. Example: `default`."]]