---
title: "createRouteTable "
slug: "cli-vpc-routetable-createroutetable"
updated: 2026-04-23T09:04:59Z
published: 2026-04-23T09:07:37Z
canonical: "cli-fin.ncloud-docs.com/cli-vpc-routetable-createroutetable"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://cli-fin.ncloud-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createRouteTable 

<p class="platform-info type-vpc">VPC 환경에서 이용 가능합니다.</p>

## 개요<a name="개요"></a>

라우트 테이블을 생성합니다.

## 요청<a name="요청"></a>


### 요청 파라미터<a name="요청파라미터"></a>


| 파라미터명                            | 필수 여부      | 타입                   | 제약 사항                   | 설명                                         |
| ---------------------------------- | ------------ | --------------------- | ------------------------- | ------------------------------------------- |
| regionCode                         | No           | String                |                           | - 리전 코드<br/>라우트 테이블이 생성될 리전(Region) 결정 가능<br/>regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능<br/>Default : getRegionList 조회 결과의 첫 번째 리전을 선택  |
| vpcNo                              | Yes          | String                |                           | - VPC 번호<br/>라우트 테이블이 생성될 VPC를 결정함<br/>vpcNo는 [getVpcList](/docs/cli-vpc-vpcmanagement-getvpclist) 액션을 통해 획득 가능  |
| routeTableName                     | No           | String                | Min : 3, Max : 30<br/>소문자, 숫자, "-"의 특수문자만 허용하며 알파벳 문자로 시작해야 함<br/>영어 또는 숫자로 끝나야 함   | - 생성할 라우트 테이블 이름<br/>Default : NAVER Cloud Platform가 자동으로 부여함   |
| supportedSubnetTypeCode            | Yes          | String                |                           | - 지원하는 서브넷 유형 코드<br/>생성할 라우트 테이블이 지원하는 서브넷 유형을 결정함<br/>Options : PUBLIC (공인) \| PRIVATE (사설)|
| routeTableDescription              | No           | String                | Min : 0, Max : 1000 Bytes | 생성할 라우트 테이블에 대한 설명    |
| responseFormatType                 | No           | String                |                           | - 응답 결과의 포맷 타입<br/>Options : xml \| json<br/>Default : xml |

## 응답<a name="응답"></a>

### 응답 데이터 타입<a name="응답데이터타입"></a>

- RouteTableList 타입

| RouteTableList extends CommonResponse |
| ---------- |
| private Integer totalRows; |
| private List<RouteTable> routeTableList = new ArrayList<>(); |

| RouteTable |
| ---------- |
| private String routeTableNo; |
| private String routeTableName; |
| private String regionCode; |
| private String vpcNo; |
| private CommonCode supportedSubnetType; |
| private Boolean isDefault; |
| private CommonCode routeTableStatus; |
| private String routeTableDescription; |


## 예시<a name="예시"></a>

### 요청 예시<a name="요청예시"></a>


```
ncloud vpc createRouteTable --regionCode FKR --vpcNo ***04 --routeTableName test-*** --supportedSubnetTypeCode PUBLIC
```

### 응답 예시<a name="응답예시"></a>


```xml
<createRouteTableResponse>
  <requestId>9f59a9dc-cddf-4580-a232-3359f088a1e8</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <routeTableList>
    <routeTable>
      <routeTableNo>***38</routeTableNo>
      <routeTableName>test-***</routeTableName>
      <regionCode>FKR</regionCode>
      <vpcNo>***04</vpcNo>
      <supportedSubnetType>
        <code>PUBLIC</code>
        <codeName>Public</codeName>
      </supportedSubnetType>
      <isDefault>false</isDefault>
      <routeTableStatus>
        <code>RUN</code>
        <codeName>run</codeName>
      </routeTableStatus>
      <routeTableDescription></routeTableDescription>
    </routeTable>
  </routeTableList>
</createRouteTableResponse>
```
