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

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

NameAccessible byRequired ParamsDescription
projects_aggregated_usable_subnetworks_listSELECTprojectsIdLists subnetworks that are usable for creating clusters in a project.

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 }}';