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.

Request

HTTP request

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

Parameters

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

Authorization

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

Scope
https://www.googleapis.com/auth/compute
https://www.googleapis.com/auth/cloud-platform

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

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Compute Engine