Requires authorization
Retrieves the list of region resources available to the specified project. Try it now .
Request
HTTP request
GET https://www.googleapis.com/compute/v1/projects/project/regions
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
project
|
string
|
Name of the project scoping this request. |
Optional query parameters | ||
filter
|
string
|
Optional. Filter expression for filtering listed resources. |
maxResults
|
unsigned integer
|
Optional. Maximum count of results to be returned.
Maximum value is 500 and default value is 100.
Acceptable values are
0
to
500
, inclusive.
(Default:
100
)
|
pageToken
|
string
|
Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. |
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.readonly
|
https://www.googleapis.com/auth/compute
|
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "compute#regionList", "selfLink": string, "id": string, "items": [ regions Resource ], "nextPageToken": string }
Property name | Value | Description | Notes |
---|---|---|---|
kind
|
string
|
Type of resource. | |
selfLink
|
string
|
Server defined URL for this resource (output only). | |
id
|
string
|
Unique identifier for the resource; defined by the server (output only). | |
items[]
|
list
|
The region resources. | |
nextPageToken
|
string
|
A token used to continue a truncated list request (output only). |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.