Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



UrlMaps: validate

Requires authorization

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

Request

HTTP request

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

Parameters

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

Authorization

This request requires authorization with the following scope ( read more about authentication and authorization ).

Scope
https://www.googleapis.com/auth/compute

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.

Response

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

{
  "result": {
    "loadSucceeded": boolean,
    "loadErrors": [
      string
    ],
    "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

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.