Yandex Cloud
КейсыДокументация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex BareMetal
    • Все инструкции
    • Обзор сервиса
    • Интеграции с другими сервисами Yandex Cloud
      • Обзор
      • Готовые конфигурации серверов
      • Своя конфигурация сервера
      • Конфигурация сервера по запросу
      • Обзор
      • Extend: Virtualization
      • Extend: Yandex Cloud Stackland
      • Extend: Managed Service for Kubernetes®
      • Обзор
      • Публичная сеть
      • Приватная сеть
      • DHCP
      • DNS в приватной сети
      • MC-LAG
      • Ограничения в сетях BareMetal
      • Обзор
      • Образы в Yandex BareMetal
      • Управление доступом
      • Дополнительные настройки серверов
      • Консоль управления
        • Аутентификация в API
            • Overview
              • Overview
              • Get
              • List
              • Create
              • Update
              • Delete
              • ListOperations
      • Справочник метрик
    • Квоты и лимиты
  • Правила тарификации
  • История изменений
  • Вопросы и ответы

В этой статье:

  • HTTP request
  • Path parameters
  • Response
  • DhcpOptions
  • DnsOptions
  • DnsServer
  1. Концепции
  2. Настройка и управление
  3. Справочник API
  4. API v1alpha
  5. REST (англ.)
  6. PublicSubnet
  7. Get

BareMetal API, REST: PublicSubnet.Get

Статья создана
Yandex Cloud
Обновлена 6 ноября 2026 г.
Открыть в Markdown
  • HTTP request
  • Path parameters
  • Response
  • DhcpOptions
  • DnsOptions
  • DnsServer

Returns the specific PublicSubnet resource.
To get the list of available PublicSubnet resources, make a List request.

HTTP requestHTTP request

GET https://baremetal.api.cloud.yandex.net/baremetal/v1alpha/publicSubnets/{publicSubnetId}

Path parametersPath 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.

ResponseResponse

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",
    "dnsOptions": {
      "servers": [
        {
          // Includes only one of the fields `ipAddress`, `dnsInboundEndpointId`
          "ipAddress": "string",
          "dnsInboundEndpointId": "string"
          // end of the list of possible fields
        }
      ],
      "domainName": "string"
    }
  },
  "gatewayIp": "string",
  "publicPrefixPoolId": "string",
  "createdAt": "string",
  "labels": "object",
  "deletionUnlockedAt": "string"
}

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.
The name is unique within the folder.

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).

  • DEDICATED: Dedicated public subnet.
  • EPHEMERAL: Ephemeral public subnet.

prefixLength

string (int64)

Prefix length of the public subnet CIDR block.

cidr

string

CIDR block for the public subnet.

dhcpOptions

DhcpOptions

DHCP options for the public subnet.

gatewayIp

string

Gateway IP address for the public subnet.

publicPrefixPoolId

string

ID of the public prefix pool that the public subnet belongs to.

createdAt

string (date-time)

Creation timestamp.

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

labels

object (map<string, string>)

Resource labels as key:value pairs.

deletionUnlockedAt

string (date-time)

Timestamp when deletion of the public subnet is allowed.

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

DhcpOptionsDhcpOptions

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).

dnsOptions

DnsOptions

DNS configuration handed out to servers via DHCP.

DnsOptionsDnsOptions

DNS configuration distributed through DHCP.

Field

Description

servers[]

DnsServer

DNS servers handed out to servers via DHCP option 6.
The order is preserved.

The maximum number of elements is 3.

domainName

string

DNS Domain name handed out to servers via DHCP options 15 and 119.

The maximum string length in characters is 253. Value must match the regular expression ([a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?([.][a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*)|.

DnsServerDnsServer

Represents a DNS server specified either by an IP address or by a Cloud DNS inbound endpoint.

Field

Description

ipAddress

string

Manual DNS server IP address.

The maximum string length in characters is 15. Value must match the regular expression (?:0|[1-9][0-9]?|1[0-9]{2}|2[0-4][0-9]|25[0-5])(?:[.](?:0|[1-9][0-9]?|1[0-9]{2}|2[0-4][0-9]|25[0-5])){3}.

Includes only one of the fields ipAddress, dnsInboundEndpointId.

dnsInboundEndpointId

string

ID of the Cloud DNS inbound endpoint.

Value must match the regular expression [a-z][a-z0-9]*.

Includes only one of the fields ipAddress, dnsInboundEndpointId.

Была ли статья полезна?

Предыдущая
Overview
Следующая
List
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»