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
Subnet을 생성한다.
상태 ACTIVE (CURRENT)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.3 | - |
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| vpc_id required | string | VPC ID | 7df8abb4912e4709b1cb237daccca7a8 |
| type required | string | Subnet 유형 | - |
| name required | string | Subnet 명 | subnetName |
| cidr required | string | Subnet Cidr | 192.167.1.0/24 |
| category required | string | Subnet 구분 | PRIMARY |
| allocation_pools optional | array | IP 할당 범위 | [ |
| description optional | string | 설명 | Subnet Description |
| dns_nameservers optional | array | DNS Name Server | [ |
| gateway_ip_address optional | string | Gateway IP 주소 | 192.167.1.1 |
| host_routes optional | array | 호스트 경로 | [ |
| primary_subnet_id optional | string | Primary Subnet ID | 023c57b14f11483689338d085e061492 |
| tags optional | array | 태그 목록 | '{"key": "", "value": ""}' |
Responses
| Name | Description | Example |
|---|---|---|
| id | Subnet ID | 023c57b14f11483689338d085e061492 |
| account_id | Account ID | f1e6c81a2b054582878cb9724dc2ce9f |
| allocation_pools | IP 할당 범위 | |
| category | Subnet 구분 | PRIMARY |
| cidr | Subnet Cidr | 192.167.1.0/24 |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | 설명 | Subnet Description |
| dhcp_ip_address | DHCP IP 주소 | |
| dns_nameservers | DNS Name Server | |
| gateway_ip_address | Gateway IP 주소 | 192.167.1.1 |
| host_routes | 호스트 경로 | |
| modified_at | 수정 시간 | 2024-05-17T00:23:17Z |
| modified_by | 수정자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| name | Subnet 명 | subnetName |
| primary_subnet_id | Primary Subnet ID | 023c57b14f11483689338d085e061492 |
| secondary_subnet_ids | Secondary Subnet ID 목록 | [“522e102f680448a8804d18d4838baa78”, “aec40baf53c243c1bb8401a703a2c888”] |
| state | 상태 | |
| type | Subnet 유형 | PUBLIC |
| vpc_id | VPC ID | 7df8abb4912e4709b1cb237daccca7a8 |
| vpc_name | VPC 명 | vpcName |
| zones | Subnet Zone 목록 | [“kr-west1-a”, “kr-west1-b”, “kr-west1-c”] |