ByCloud Docs
GuidesCLIAPISDK

Get subnet

bycloud networking subnets get --subnet_id <subnet_id> [flags]

Get details of a specific subnet

Options

--subnet_id

stringrequired

Subnet ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Command

bycloud networking subnets get \
--subnet_id "abc-123"

Output

ID 550e8400-e29b-41d4-a716-446655440000
CRN crn:spo1:network:subnet:550e8400-e29b-41d4-a716-446655440000
NAME private-subnet
DESCRIPTION string
NETWORK_ID 550e8400-e29b-41d4-a716-446655440001
IP_VERSION 4
CIDR 192.168.1.0/24
GATEWAY_IP 192.168.1.1
DNS_NAMESERVERS 8.8.8.8, 8.8.4.4
ALLOCATION_POOLS
[0]
START 192.168.1.100
END 192.168.1.200
[1]
START 192.168.1.100
END 192.168.1.200
HOST_ROUTES
[0]
DESTINATION 10.0.0.0/8
NEXTHOP 192.168.1.1
[1]
DESTINATION 10.0.0.0/8
NEXTHOP 192.168.1.1
ENABLE_DHCP true
IPV6_RA_MODE slaac
IPV6_ADDRESS_MODE slaac
TAGS web, frontend
PROJECT_ID 550e8400-e29b-41d4-a716-446655440000
CREATED_AT 2024-01-15T10:30:00Z
UPDATED_AT 2024-01-15T10:30:00Z