BareMetal API, REST: PublicSubnet.Get
Returns the specific PublicSubnet resource.
To get the list of available PublicSubnet resources, make a List request.
HTTP request
GET https://baremetal.api.yandexcloud.kz/baremetal/v1alpha/publicSubnets/{publicSubnetId}
Path parameters
|
Field |
Description |
|
publicSubnetId |
string Required field. ID of the PublicSubnet resource to return. To get the public subnet ID use a PublicSubnetService.List request. |
Response
HTTP Code: 200 - OK
{
"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"
}
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). |