1.0
1.0
scpcli vpc subnet create
--vpc_id <value>
--type <value>
--name <value>
--cidr <value>
[--allocation_pools <value>]
[--description <value>]
[--dns_nameservers <value>]
[--host_routes <value>]
[--tags <value>]
Description
Subnet을 생성한다.
상태 ACTIVE (DEPRECATED)
| 버전 | 최소 지원 보장일 |
|---|---|
| 1.0 | 20251231 |
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 |
| allocation_pools optional | array | IP 할당 범위 | [ |
| description optional | string | 설명 | Subnet Description |
| dns_nameservers optional | array | DNS Name Server | [ |
| host_routes optional | array | 호스트 경로 | [ |
| tags optional | array | 태그 목록 | '{"key": "", "value": ""}' |
Responses
| Name | Description | Example |
|---|---|---|
| id | Subnet ID | 023c57b14f11483689338d085e061492 |
| account_id | Account ID | f1e6c81a2b054582878cb9724dc2ce9f |
| allocation_pools | IP 할당 범위 | |
| cidr | Subnet Cidr | 192.167.1.0/24 |
| created_at | 생성 시간 | 2024-05-17T00:23:17Z |
| created_by | 생성자 | 90dddfc2b1e04edba54ba2b41539a9ac |
| description | 설명 | Subnet Description |
| 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 |
| state | 상태 | |
| type | Subnet 유형 | |
| vpc_id | VPC ID | 7df8abb4912e4709b1cb237daccca7a8 |
| vpc_name | VPC 명 | vpcName |