VPC 환경에서 이용 가능합니다.
사용자가 지정한 조건에 따라 Endpoint Route Table을 생성합니다.
구문
createEndpointRouteTable 구문은 다음과 같습니다.
./ncloud vpc createEndpointRouteTable \
--vpcNo <vpc-no> \
--endpointRouteTableTypeCode <IGW|VGW|TRANSITVPCCONNECT|POGW|OGW|NATGW> \
[--endpointRouteTableName <endpoint-route-table-name>] \
[--endpointRouteTableDescription <endpoint-route-table-description>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
옵션
createEndpointRouteTable 실행 시 지정할 수 있는 옵션을 설명합니다.
필수 옵션
createEndpointRouteTable의 필수 옵션입니다.
| 옵션 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
--vpcNo |
String | Required | VPC 번호
|
--endpointRouteTableTypeCode |
String | Required | Endpoint Route Table 유형
|
선택 옵션
createEndpointRouteTable의 선택 옵션입니다. 지정하지 않은 옵션에는 기본값이 적용됩니다.
| 옵션 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
--endpointRouteTableName |
String | Optional | Endpoint Route Table 이름
|
--endpointRouteTableDescription |
String | Optional | Endpoint Route Table에 대한 설명 (Byte)
|
공통 옵션
vpc 명령에서 공통으로 사용하는 옵션에 대한 정보는 VPC 옵션을 참조해 주십시오.
예시
Endpoint Route Table 생성 요청이 성공하면 Endpoint Route Table의 구성 정보와 생성 상태가 반환됩니다.
명령
명령 예시는 다음과 같습니다.
./ncloud vpc createEndpointRouteTable \
--vpcNo 23456789 \
--endpointRouteTableTypeCode TRANSITVPCCONNECT \
--endpointRouteTableName test-endpoint-route-table \
--endpointRouteTableDescription "Test endpoint route table" \
--regionCode KR \
--output json
출력
출력 예시는 다음과 같습니다.
{
"createEndpointRouteTableResponse": {
"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": []
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}