BareMetal API, REST: PrivateSubnet.List
Retrieves the list of PrivateSubnet resources in the specified folder.
HTTP request
GET https://baremetal.api.yandexcloud.kz/baremetal/v1alpha/privateSubnets
Query parameters
|
Field |
Description |
|
folderId |
string ID of the folder to list private 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
{
"privateSubnets": [
{
"id": "string",
"cloudId": "string",
"folderId": "string",
"name": "string",
"description": "string",
"status": "string",
"zoneId": "string",
"hardwarePoolId": "string",
"vrfOptions": {
"vrfId": "string",
"cidr": "string",
"dhcpOptions": {
"startIp": "string",
"endIp": "string"
},
"gatewayIp": "string"
},
"createdAt": "string",
"labels": "object"
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
privateSubnets[] |
List of PrivateSubnet 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 |
PrivateSubnet
A PrivateSubnet resource.
|
Field |
Description |
|
id |
string ID of the private subnet. |
|
cloudId |
string ID of the cloud that the private subnet belongs to. |
|
folderId |
string ID of the folder that the private subnet belongs to. |
|
name |
string Name of the private subnet. |
|
description |
string Optional description of the private subnet. |
|
status |
enum (Status) Status of the private subnet.
|
|
zoneId |
string ID of the availability zone where the server resides. |
|
hardwarePoolId |
string ID of the hardware pool that the private subnet belongs to. |
|
vrfOptions |
Optional VRF options for the private subnet. If missing, the private subnet will be unrouted, |
|
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 |
VrfOptions
VRF options for the private subnet.
|
Field |
Description |
|
vrfId |
string ID of the VRF. |
|
cidr |
string CIDR block for the subnet. |
|
dhcpOptions |
DHCP options for the subnet. |
|
gatewayIp |
string Gateway IP address for the subnet. |
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). |