Skip to main content
API resource reference for Subnet, part of the Networking service. To create or change one, see Changing resources; to read or inspect, see Reading resources.
This resource is part of an alpha API (v1alpha). Its fields and behavior are subject to change.

Identity

Groupnetworking.datumapis.com
Versionv1alpha
KindSubnet
ScopeProject

Overview

A Subnet defines a range of IP addresses within a network context at a specific location. You create one to allocate addressing for a network, specifying the IP family, subnet class, start address, and prefix length. Once created, Datum Cloud tracks the subnet’s allocated address range in its status.

Spec fields

FieldTypeRequiredDescription
spec.ipFamilystringYesThe IP family of a subnet. One of IPv4, IPv6.
spec.locationObjectYesThe location which a subnet is associated with.
spec.location.namestringYesName of a datum location.
spec.location.namespacestringYesNamespace for the datum location.
spec.networkContextObjectYesA subnet’s network context.
spec.networkContext.namestringYesThe network context name.
spec.prefixLengthintegerYesThe prefix length of a subnet.
spec.startAddressstringYesThe start address of a subnet.
spec.subnetClassstringYesThe class of subnet.

Status fields (read-only)

FieldTypeDescription
status.conditions[]ObjectRepresents the observations of a subnet’s current state.
status.prefixLengthintegerThe prefix length of a subnet.
status.startAddressstringThe start address of a subnet.

Usage

apiVersion: networking.datumapis.com/v1alpha
kind: Subnet
metadata:
  name: my-subnet
spec:
  ipFamily: IPv4
  subnetClass: private
  startAddress: "10.0.0.0"
  prefixLength: 24
  location:
    name: my-location
    namespace: my-project
  networkContext:
    name: my-network-context
# Create or update the subnet
datumctl apply -f subnet.yaml --project my-project

# List subnets in the project
datumctl get subnets --project my-project

# Inspect a single subnet
datumctl describe subnet my-subnet --project my-project
Run datumctl explain subnets --recursive to see the full, live field tree for this resource.
Last modified on July 2, 2026