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:

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. (PROJECT, XPN_RESOURCE_TYPE_UNSPECIFIED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_xpn_resourcesselectprojectreturnPartialSuccess, orderBy, maxResults, pageToken, filterGets 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 returnPartialSuccess = '{{ returnPartialSuccess }}'
AND orderBy = '{{ orderBy }}'
AND maxResults = '{{ maxResults }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
;