Skip to main content
GET
/
v1
/
regions
/
{region}
/
projects
/
{project}
/
compute
/
subnets
/
{id}
Get subnet details
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/subnets/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "selfLink": "/v1/regions/us-texas-1/projects/project-x9y8z7/compute/subnets/subnet-a1b2c3",
  "uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "id": "subnet-a1b2c3",
  "displayName": "<string>",
  "description": "<string>",
  "network": "/v1/regions/us-texas-1/projects/project-x9y8z7/compute/networks/default",
  "ipv4Cidr": "10.0.1.0/24",
  "ipv6Cidr": "fd00:1::/64",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using OAuth2/OIDC tokens

Path Parameters

region
string
required

Region identifier

project
string
required

Project identifier

id
string
required

Unique subnet identifier

Response

Subnet details

Subnet within a network. Read-only for MVP — subnets are system-managed.

Server-defined URL for this resource.

Example:

"/v1/regions/us-texas-1/projects/project-x9y8z7/compute/subnets/subnet-a1b2c3"

uid
string<uuid>

Server-generated UUID.

id
string

Server-generated identifier for the subnet.

Example:

"subnet-a1b2c3"

displayName
string

Human-friendly display name for the subnet.

description
string

An optional description of this resource.

network
string<uri>
Example:

"/v1/regions/us-texas-1/projects/project-x9y8z7/compute/networks/default"

ipv4Cidr
string

IPv4 CIDR block for the subnet. Optional — generated by the system by default.

Example:

"10.0.1.0/24"

ipv6Cidr
string

IPv6 CIDR block for the subnet. Optional — generated by the system by default.

Example:

"fd00:1::/64"

createdAt
string<date-time>
updatedAt
string<date-time>