---
title: "getRouteList"
slug: "cli-vpc-routetable-getroutelist"
tags: ["Route Table"]
updated: 2026-05-21T09:02:07Z
published: 2026-05-21T09:11:37Z
canonical: "cli-gov.ncloud-docs.com/cli-vpc-routetable-getroutelist"
---

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

# getRouteList

<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 조회 결과의 첫 번째 리전을 선택   |
| routeTableNo                       | Yes          | String                |                           | - 라우트 테이블 번호<br/>조회할 라우트 리스트의 라우트 테이블 번호를 결정함<br/>routeTableNo는 [getRouteTableList](/docs/cli-vpc-routetable-getroutetablelist) 액션을 통해 획득 가능 |
| vpcNo                              | Yes          | String                |                           | - VPC 번호<br/>조회할 라우트 테이블의 VPC 번호를 결정함<br/>vpcNo는 [getVpcList](/docs/cli-vpc-vpcmanagement-getvpclist) 액션을 통해 획득 가능 |
| responseFormatType                 | No           | String                |                           | - 응답 결과의 포맷 타입<br/>Options : xml \| json<br/>Default : xml |

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

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

- routeList 타입

| RouteList extends CommonResponse |
| ---------- |
| private Integer totalRows; |
| private List<Route> routeList = new ArrayList<>(); |

| Route |
| ---------- |
| private String routeTableNo; |
| private String destinationCidrBlock; |
| private String targetName; |
| private CommonCode targetType; |
| private String targetNo; |
| private Boolean isDefault; |


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

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

```
ncloud vpc getRouteList --regionCode KR --routeTableNo ***38 --vpcNo ***04
```

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

```xml
<getRouteListResponse>
  <requestId>97b1034c-e030-40b8-bc22-58da1c3e5b0b</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>2</totalRows>
  <routeList>
    <route>
      <destinationCidrBlock>***.***.0.0/16</destinationCidrBlock>
      <targetName>LOCAL</targetName>
      <routeTableNo>***38</routeTableNo>
      <targetType>
        <code>LOCAL</code>
        <codeName>Local</codeName>
      </targetType>
      <targetNo></targetNo>
      <isDefault>true</isDefault>
    </route>
    <route>
      <destinationCidrBlock>***.***.0.0/0</destinationCidrBlock>
      <targetName>INTERNET GATEWAY</targetName>
      <routeTableNo>***38</routeTableNo>
      <targetType>
        <code>IGW</code>
        <codeName>Internet Gateway</codeName>
      </targetType>
      <targetNo></targetNo>
      <isDefault>true</isDefault>
    </route>
  </routeList>
</getRouteListResponse>
```
