Skip to main content

usable_subnetworks

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

Overview

Nameusable_subnetworks
TypeResource
Idgoogle.container.usable_subnetworks

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
ipCidrRangestringThe range of internal addresses that are owned by this subnetwork.
networkstringNetwork Name. Example: projects/my-project/global/networks/my-network
secondaryIpRangesarraySecondary IP ranges.
statusMessagestringA human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
subnetworkstringSubnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_aggregated_usable_subnetworks_listselectprojectsIdfilter, pageSize, pageTokenLists subnetworks that are usable for creating clusters in a 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
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists subnetworks that are usable for creating clusters in a project.

SELECT
ipCidrRange,
network,
secondaryIpRanges,
statusMessage,
subnetwork
FROM google.container.usable_subnetworks
WHERE projectsId = '{{ projectsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';