Method: projects.getXpnResources

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

HTTP request

GET https://compute.googleapis.com/compute/v1/projects/{project}/getXpnResources

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
project

string

Project ID for this request.

Query parameters

Parameters
maxResults

number (uint32 format)

pageToken

string

filter

string

order_by

string

Request body

The request body must be empty.

Response body

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

JSON representation
{
  "resources": [
    {
      "type": enum,
      "id": string
    }
  ],
  "nextPageToken": string,
  "kind": string,
}
Fields
resources[]

object

Service resources (a.k.a service projects) attached to this project as their shared VPC host.

resources[].type

enum

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.

kind

string

[Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the Auth Guide.

Send feedback about...

Compute Engine