Get

Returns the specified subnetwork

3 variables
16 variables

Returns the specified subnetwork. Gets a list of available subnetworks list() request

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • View and manage your data across Google Cloud Platform services
  • View and manage your Google Compute Engine resources
  • View your Google Compute Engine resources

Input

This building block consumes 3 input parameters

  = Parameter name
  = Format

project STRING Required

Project ID for this request

region STRING Required

Name of the region scoping this request

subnetwork STRING Required

Name of the Subnetwork resource to return

Output

This building block provides 16 output parameters

  = Parameter name
  = Format

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. This field can be set only at resource creation time

enableFlowLogs BOOLEAN

Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging

fingerprint BINARY

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.

To see the latest fingerprint, make a get() request to retrieve a Subnetwork

gatewayAddress STRING

[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork

id INTEGER

[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, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time

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. This field can be set only at resource creation time

privateIpGoogleAccess BOOLEAN

Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess

region STRING

URL of the region where the Subnetwork resides. This field can be set only at resource creation time

secondaryIpRanges[] OBJECT

Represents a secondary IP range of a subnetwork

secondaryIpRanges[].ipCidrRange STRING

The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported

secondaryIpRanges[].rangeName STRING

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork

selfLink STRING

[Output Only] Server-defined URL for the resource