--- title: "addEndpointRouteTableRoute" slug: "cli-vpc-addendpointroutetableroute" updated: 2026-11-24T09:23:45Z published: 2026-11-24T09:23:45Z canonical: "cli.ncloud-docs.com/cli-vpc-addendpointroutetableroute" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # addEndpointRouteTableRoute VPC 환경에서 이용 가능합니다. Endpoint Route Table에 라우트를 추가합니다. ## 구문 `addEndpointRouteTableRoute` 구문은 다음과 같습니다. ``` ./ncloud vpc addEndpointRouteTableRoute \ --endpointRouteTableNo \ --routeList \ [--regionCode ] \ [--output ] ``` ## 옵션 `addEndpointRouteTableRoute` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `addEndpointRouteTableRoute`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--endpointRouteTableNo` | String | Required | Endpoint Route Table 번호 - [getEndpointRouteTableList](/docs/cli-vpc-endpointroutetable-getendpointroutetablelist) 참조 | | `--routeList` | List | Required | 라우트 목록 - 각 라우트는 따옴표 안에 {필드='값'} 쌍을 콤마로 구분하여 입력 - `destinationCidrBlock` (Required): 목적지 IPv4 주소 범위 - `targetTypeCode` (Required): 목적지 유형 - `IGW` \| `VGW` \| `TRANSITVPCCONNECT` \| `SFC` \| `POGW` \| `NATGW` \| `OGW` - 회원 및 리전별로 사용 가능한 유형만 지정 가능 - `targetNo` (Conditional): 목적지 인스턴스 번호 - `targetTypeCode`가 `IGW`인 경우 입력하지 않음 - 그 외 유형은 필수 입력 | ### 공통 옵션 `vpc` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [VPC 옵션](/docs/cli-vpc#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 라우트 추가 요청이 성공하면 Endpoint Route Table의 구성 정보와 연관 대상, 라우트 목록이 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` ./ncloud vpc addEndpointRouteTableRoute \ --endpointRouteTableNo 45678901 \ --routeList "destinationCidrBlock='10.99.0.0/16', targetTypeCode='SFC', targetNo='56789012'" "destinationCidrBlock='10.98.0.0/16', targetTypeCode='IGW'" \ --regionCode KR \ --output json ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "addEndpointRouteTableRouteResponse": { "totalRows": 1, "endpointRouteTableList": [ { "endpointRouteTableNo": "45678901", "endpointRouteTableName": "test-endpoint-route-table", "regionCode": "KR", "vpcNo": "23456789", "vpcName": "test-transit-vpc", "endpointRouteTableType": { "code": "TRANSITVPCCONNECT", "codeName": "Transit VPC Connect" }, "endpointRouteTableStatus": { "code": "SET", "codeName": "설정중" }, "endpointRouteTableDescription": "Test endpoint route table", "associationList": [], "routeList": [ { "destinationCidrBlock": "10.98.0.0/16", "targetType": { "code": "IGW", "codeName": "Internet Gateway" }, "targetNo": "", "targetName": "INTERNET GATEWAY" }, { "destinationCidrBlock": "10.99.0.0/16", "targetType": { "code": "SFC", "codeName": "Service Function Chain" }, "targetNo": "56789012", "targetName": "test-service-function-chain" } ] } ], "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```