BareMetal API, REST: PublicSubnet.List
Retrieves the list of PublicSubnet resources in the specified folder.
HTTP request
GET https://baremetal.api.yandexcloud.kz/baremetal/v1alpha/publicSubnets
Query parameters
|
Field |
Description |
|
folderId |
string ID of the folder to list public subnets in. To get the folder ID use a yandex.cloud.resourcemanager.v1.FolderService.List request. |
|
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
|
pageToken |
string Page token. To get the next page of results, set |
|
orderBy |
string By which column the listing should be ordered and in which direction, |
|
filter |
string A filter expression that filters resources listed in the response. Each condition has the form
|
Response
HTTP Code: 200 - OK
{
"publicSubnets": [
{
"id": "string",
"cloudId": "string",
"folderId": "string",
"name": "string",
"description": "string",
"zoneId": "string",
"hardwarePoolIds": [
"string"
],
"type": "string",
"prefixLength": "string",
"cidr": "string",
"dhcpOptions": {
"startIp": "string",
"endIp": "string"
},
"gatewayIp": "string",
"createdAt": "string",
"labels": "object"
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
publicSubnets[] |
List of PublicSubnet resources. |
|
nextPageToken |
string Token for getting the next page of the list. If the number of results is greater than Each subsequent page will have its own |
PublicSubnet
A PublicSubnet resource.
|
Field |
Description |
|
id |
string ID of the public subnet. |
|
cloudId |
string ID of the cloud that the public subnet belongs to. |
|
folderId |
string ID of the folder that the public subnet belongs to. |
|
name |
string Name of the public subnet. |
|
description |
string Optional description of the public subnet. |
|
zoneId |
string ID of the availability zone where the server resides. |
|
hardwarePoolIds[] |
string IDs of the hardware pool that the public subnet belongs to. |
|
type |
enum (PublicSubnetType) Type of the public subnet (static or ephemeral).
|
|
prefixLength |
string (int64) Prefix length of the public subnet CIDR block. |
|
cidr |
string CIDR block for the public subnet. |
|
dhcpOptions |
DHCP options for the public subnet. |
|
gatewayIp |
string Gateway IP address for the public subnet. |
|
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
|
labels |
object (map<string, string>) Resource labels as |
DhcpOptions
DHCP options for a subnet.
|
Field |
Description |
|
startIp |
string Start IP address of the DHCP range (inclusive). |
|
endIp |
string End IP address of the DHCP range (inclusive). |