For a list of methods for this resource, see the end of this page.

Resource representations

A Subnetwork resource.

  "kind": "compute#subnetwork",
  "id": unsigned long,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "network": string,
  "ipCidrRange": string,
  "gatewayAddress": string,
  "region": string,
  "selfLink": string
Property name Value Description Notes
creationTimestamp string [Output Only] Creation timestamp in RFC3339 text format.
description string An optional description of this resource. Provide this property when you create the resource.
gatewayAddress string [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
id unsigned long [Output Only] The unique identifier for the resource. This identifier is defined by the server.
ipCidrRange string The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, or Ranges must be unique and non-overlapping within a network. Only IPv4 is supported.
kind string [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
name string The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
network string The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks.
region string URL of the region where the Subnetwork resides.


Retrieves an aggregated list of subnetworks.
Deletes the specified subnetwork.
Expands the IP CIDR range of the subnetwork to a specified value.
Returns the specified subnetwork. Get a list of available subnetworks list() request.
Creates a subnetwork in the specified project using the data included in the request.
Retrieves a list of subnetworks available to the specified project.

Send feedback about...

Compute Engine