NetworkSpec

Network spec.

Fields
enableInternetAccess boolean

Whether to enable public internet access. Default false.

network string

The full name of the Google Compute Engine network

subnetwork string

The name of the subnet that this instance is in. Format: projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}

JSON representation
{
 "enableInternetAccess": boolean,
 "network": string,
 "subnetwork": string
}

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年04月06日 UTC.