Projects: getXpnResources

Requires authorization

Get XPN resources associated with this host project. Try it now.

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
https://www.googleapis.com/auth/compute.readonly

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 XPN resources.
resources[] list XPN resources attached to this project as their XPN host.
resources[].type string The type of the XPN resource.
resources[].id string The ID of the XPN resource. In the case of projects, this field matches the project's name, not the canonical ID.
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.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

Compute Engine