Method: projects.locations.list

List all locations that provides at least one type of CMLE capability.

HTTP request

GET https://ml.googleapis.com/v1/{parent=projects/*}/locations

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
parent

string

Required. The name of the project for which available locations are to be listed (since some locations might be whitelisted for specific projects).

Query parameters

Parameters
pageToken

string

Optional. A page token to request the next page of results.

You get the token from the nextPageToken field of the response from the previous call.

pageSize

number

Optional. The number of locations to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the nextPageToken field.

The default value is 20, and the maximum page size is 100.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "locations": [
    {
      object(Location)
    }
  ],
  "nextPageToken": string
}
Fields
locations[]

object(Location)

Locations where at least one type of CMLE capability is available.

nextPageToken

string

Optional. Pass this token as the pageToken field of the request for a subsequent call.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Machine Learning Engine (Cloud ML Engine)