UrlMaps: validate

Requires authorization

Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.


HTTP request

POST https://www.googleapis.com/compute/beta/projects/project/global/urlMaps/urlMap/validate


Parameter name Value Description
Path parameters
project string Project ID for this request.
urlMap string Name of the UrlMap resource to be validated as.


This request requires authorization with at least one of the following scopes (read more about authentication and authorization).


Request body

In the request body, supply data with the following structure:

  "resource": urlMaps Resource
Property name Value Description Notes
resource nested object Content of the UrlMap to be validated.


If successful, this method returns a response body with the following structure:

  "result": {
    "loadSucceeded": boolean,
    "loadErrors": [
    "testPassed": boolean,
    "testFailures": [
        "host": string,
        "path": string,
        "expectedService": string,
        "actualService": string
Property name Value Description Notes
result nested object
result.loadSucceeded boolean Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons.
result.loadErrors[] list
result.testPassed boolean If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure.
result.testFailures[] list
result.testFailures[].host string
result.testFailures[].path string
result.testFailures[].expectedService string
result.testFailures[].actualService string

Send feedback about...

Compute Engine