Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex BareMetal
    • All guides
    • Overview
    • Integrations with other Yandex Cloud services
      • Overview
      • Stock server configurations
      • Custom server configuration
      • On-request server configuration
      • Overview
      • Extend: Virtualization
      • Extend: Yandex Cloud Stackland
      • Extend: Managed Service for Kubernetes®
      • Overview
      • Public network
      • Private network
      • DHCP
      • DNS in a private network
      • MC-LAG
      • Restrictions in BareMetal networks
      • Overview
      • Images
      • Access management
      • Additional server settings
      • Management console
        • API authentication
            • Overview
              • Overview
              • Get
              • List
              • Create
              • Update
              • Delete
              • ListOperations
      • Monitoring metrics
    • Quotas and limits
  • Pricing policy
  • Release notes
  • FAQ

In this article:

  • HTTP request
  • Path parameters
  • Response
  • DhcpOptions
  • DnsOptions
  • DnsServer
  1. Concepts
  2. Setup and management
  3. API reference
  4. API v1alpha
  5. REST
  6. PublicSubnet
  7. Get

BareMetal API, REST: PublicSubnet.Get

Written by
Yandex Cloud
Updated at November 6, 2026
View in 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.

Was the article helpful?

Previous
Overview
Next
List
© 2026 Direct Cursus Technology L.L.C.