Skip to main content

subnetworks_usable

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

Overview

Namesubnetworks_usable
TypeResource
Idgoogle.compute.subnetworks_usable

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
itemsarray[Output] A list of usable subnetwork URLs.
kindstringOutput only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks. (default: compute#usableSubnetworksAggregatedList)
nextPageTokenstring[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger thanmaxResults, 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. In special cases listUsable may return 0 subnetworks andnextPageToken which still should be used to get the next page of results.
scopedWarningsarrayOutput only. [Output Only] Informational warning messages for failures encountered from scopes.
selfLinkstringOutput only. [Output Only] Server-defined URL for this resource.
unreachablesarrayOutput only. [Output Only] Unreachable resources.
warningobject[Output Only] Informational warning message.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_usableselectprojectfilter, maxResults, pageToken, orderBy, returnPartialSuccess, serviceProjectRetrieves an aggregated list of all usable subnetworks in the 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
serviceProjectstring

SELECT examples

Retrieves an aggregated list of all usable subnetworks in the project.

SELECT
id,
items,
kind,
nextPageToken,
scopedWarnings,
selfLink,
unreachables,
warning
FROM google.compute.subnetworks_usable
WHERE project = '{{ project }}' -- required
AND filter = '{{ filter }}'
AND maxResults = '{{ maxResults }}'
AND pageToken = '{{ pageToken }}'
AND orderBy = '{{ orderBy }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
AND serviceProject = '{{ serviceProject }}'
;