Subnet

A set of methods for managing Subnet resources.

JSON Representation

{
  "id": "string",
  "folderId": "string",
  "createdAt": "string",
  "name": "string",
  "description": "string",
  "labels": "object",
  "networkId": "string",
  "zoneId": "string",
  "v4CidrBlocks": [
    "string"
  ],
  "v6CidrBlocks": [
    "string"
  ],
  "routeTableId": "string"
}
Field Description
id string

ID of the subnet.

folderId string

ID of the folder that the subnet belongs to.

createdAt string (date-time)

Creation timestamp in RFC3339 text format.

String in RFC3339 text format.

name string

Name of the subnet. The name is unique within the project. 3-63 characters long.

description string

Optional description of the subnet. 0-256 characters long.

labels object

Resource labels as key:value pairs. Мaximum of 64 per resource.

networkId string

ID of the network the subnet belongs to.

zoneId string

ID of the availability zone where the subnet resides.

v4CidrBlocks[] string

CIDR block. The range of internal addresses that are defined for this subnet. This field can be set only at Subnet resource creation time and cannot be changed. For example, 10.0.0.0/22 or 192.168.0.0/24. Minimum subnet size is /28, maximum subnet size is /16.

v6CidrBlocks[] string

IPv6 not available yet.

routeTableId string

ID of route table the subnet is linked to.

Methods

Method Description
create Creates a subnet in the specified folder and network. Method starts an asynchronous operation that can be cancelled while it is in progress.
delete Deletes the specified subnet.
get Returns the specified Subnet resource.
list Retrieves the list of Subnet resources in the specified folder.
listOperations List operations for the specified subnet.
update Updates the specified subnet. Method starts an asynchronous operation that can be cancelled while it is in progress.