Skip to main content

dtctl vpn create-service

Usage​

dtctl vpn create-service [flags]

Aliases​

cw

Description​

Create a VPN service on a router. The service is the endpoint that VPN connections attach to.

Example​

dtctl vpn create-service --vpn-id 0 --name my-vpn-service --service-router-id <router-id>

Flags​

OptionDescription
--admin-state-up, -aWhether the service is administratively up
Default: true
--name, -nVPN service name (required)
--service-router-id, -rRouter ID to create the service on (required)
--vpn-id, -iVPN ID (pass 0 when the connection does not yet exist) (required)
CommandDescription
dtctl vpn update-serviceUpdate a VPN service
dtctl vpn delete-serviceDelete a VPN service
dtctl vpn service-detailsShow a VPN service
dtctl vpn servicesList VPN services

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text