--- title: "addEndpointRouteTableAssociation" slug: "cli-vpc-addendpointroutetableassociation" updated: 2026-11-24T09:23:45Z published: 2026-11-24T09:23:45Z canonical: "cli.ncloud-docs.com/cli-vpc-addendpointroutetableassociation" --- > ## 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. # addEndpointRouteTableAssociation VPC 환경에서 이용 가능합니다. Endpoint Route Table에 연관 대상을 추가합니다. IGW, POGW 유형의 Endpoint Route Table은 연관 대상을 변경할 수 없습니다. ## 구문 `addEndpointRouteTableAssociation` 구문은 다음과 같습니다. ``` ./ncloud vpc addEndpointRouteTableAssociation \ --endpointRouteTableNo \ --targetNoList \ [--regionCode ] \ [--output ] ``` ## 옵션 `addEndpointRouteTableAssociation` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `addEndpointRouteTableAssociation`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--endpointRouteTableNo` | String | Required | Endpoint Route Table 번호 - [getEndpointRouteTableList](/docs/cli-vpc-endpointroutetable-getendpointroutetablelist) 참조 | | `--targetNoList` | List | Required | 연관 대상 번호 목록 - 공백으로 구분하여 여러 개 입력 가능 (예시: `--targetNoList 1234 2345`) - Endpoint Route Table 유형과 같은 유형의 인스턴스 번호 입력 | ### 공통 옵션 `vpc` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [VPC 옵션](/docs/cli-vpc#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 연관 대상 추가 요청이 성공하면 Endpoint Route Table의 구성 정보와 연관 대상, 라우트 목록이 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` ./ncloud vpc addEndpointRouteTableAssociation \ --endpointRouteTableNo 45678901 \ --targetNoList 34567890 \ --regionCode KR \ --output json ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "addEndpointRouteTableAssociationResponse": { "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": [ { "targetType": { "code": "TRANSITVPCCONNECT", "codeName": "Transit VPC Connect" }, "targetNo": "34567890", "targetName": "test-transit-vpc-connect" } ], "routeList": [ { "destinationCidrBlock": "10.98.0.0/16", "targetType": { "code": "IGW", "codeName": "Internet Gateway" }, "targetNo": "", "targetName": "INTERNET GATEWAY" } ] } ], "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```