Skip to main content

xpn_resources

Creates, updates, deletes, gets or lists a xpn_resources resource.

Overview

Namexpn_resources
TypeResource
Idgoogle.compute.xpn_resources

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstringThe ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).
typestringThe type of the service resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_xpn_resourcesselectprojectfilter, maxResults, orderBy, pageToken, returnPartialSuccessGets service resources (a.k.a service project) associated with this host project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean

SELECT examples

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

SELECT
id,
type
FROM google.compute.xpn_resources
WHERE project = '{{ project }}' -- required
AND filter = '{{ filter }}'
AND maxResults = '{{ maxResults }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}';