Projects: getXpnResources

Requires authorization

Get service resources (a.k.a service project) associated with this host project.

Request

HTTP request

GET https://www.googleapis.com/compute/beta/projects/project/getXpnResources

Parameters

Parameter name Value Description
Path parameters
project string Project ID for this request.
Optional query parameters
filter string
maxResults unsigned integer
order_by string
pageToken string

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

Do not supply a request body with this method.

Response

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

{
  "kind": "compute#projectsGetXpnResources",
  "resources": [
    {
      "type": string,
      "id": string
    }
  ],
  "nextPageToken": string
}
Property name Value Description Notes
kind string [Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)
resources[] list Service resources (a.k.a service projects) attached to this project as their shared VPC host.
resources[].type string The type of the service resource.
resources[].id string The ID of the service resource. In the case of projects, this field matches the project ID (e.g., my-project), not the project number (e.g., 12345678).
nextPageToken string [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.

Monitor your resources on the go

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

Send feedback about...

Compute Engine