dtctl network subnet
Usage
dtctl network subnet [flags]
Aliases
ss
Description
Retrieve details of a subnet, by its network ID and subnet ID (both from dtctl network show).
Example
dtctl network subnet --network-id <network-id> --subnet-id <subnet-id>
Response
In text output (the default), this command returns the following columns: ID, Name, Project ID, Network ID, IP Version, Subnet Pool ID, Enable DHCP, IPv6 RA Mode, IPv6 Address Mode, Gateway IP, CIDR, Allocation Pools, DNS Nameservers, Description, Created At, Updated At, Revision Number, Project ID.
Pass --output json to get the full response object instead.
Flags
| Option | Description |
|---|---|
--network-id, -n | Network ID (required) |
--subnet-id, -s | Subnet ID (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl network list | List networks |
| dtctl network show | Show a network |
| dtctl network create | Create a network |
| dtctl network update | Rename a network |
| dtctl network update-subnet | Update a subnet |
| dtctl network delete | Delete a network |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |