1.3

1.3

scp-cli vpc subnet create
--vpc_id <value>
--type <value>
--name <value>
--cidr <value>
--category <value>
[--allocation_pools <value>]
[--description <value>]
[--dns_nameservers <value>]
[--gateway_ip_address <value>]
[--host_routes <value>]
[--primary_subnet_id <value>]
[--tags <value>]

Description

Create subnet.

State ACTIVE (CURRENT)

VersionNot Before
1.3-

Parameters

NameTypeDescriptionExample
vpc_id
required
stringVPC Id7df8abb4912e4709b1cb237daccca7a8
type
required
stringSubnet Type-
name
required
stringSubnet NamesubnetName
cidr
required
stringSubnet Cidr192.167.1.0/24
category
required
stringSubnet CategoryPRIMARY
allocation_pools
optional
arrayAllocation Pools[
description
optional
stringDescriptionSubnet Description
dns_nameservers
optional
arrayDNS Name Servers[
gateway_ip_address
optional
stringGateway IP Address192.167.1.1
host_routes
optional
arrayHost Routes[
primary_subnet_id
optional
stringPrimary Subnet ID023c57b14f11483689338d085e061492
tags
optional
arrayTag List'{"key": "", "value": ""}'

Responses

NameDescriptionExample
idSubnet Id023c57b14f11483689338d085e061492
account_idAccount IDf1e6c81a2b054582878cb9724dc2ce9f
allocation_poolsAllocation Pools
categorySubnet CategoryPRIMARY
cidrSubnet Cidr192.167.1.0/24
created_atCreated At2024-05-17T00:23:17Z
created_byCreated By90dddfc2b1e04edba54ba2b41539a9ac
descriptionDescriptionSubnet Description
dhcp_ip_addressDHCP IP Address
dns_nameserversDNS Name Servers
gateway_ip_addressGateway IP Address192.167.1.1
host_routesHost Routes
modified_atModified At2024-05-17T00:23:17Z
modified_byModified By90dddfc2b1e04edba54ba2b41539a9ac
nameSubnet NamesubnetName
primary_subnet_idPrimary Subnet ID023c57b14f11483689338d085e061492
secondary_subnet_idsSecondary Subnet ID List[“522e102f680448a8804d18d4838baa78”, “aec40baf53c243c1bb8401a703a2c888”]
stateState
typeSubnet TypePUBLIC
vpc_idVPC Id7df8abb4912e4709b1cb237daccca7a8
vpc_nameVPC NamevpcName
zonesSubnet Zone List[“kr-west1-a”, “kr-west1-b”, “kr-west1-c”]