removeEndpointRouteTableAssociation

Prev Next

VPC 환경에서 이용 가능합니다.

Endpoint Route Table에 설정된 연관 대상을 제거합니다. IGW, POGW 유형의 Endpoint Route Table은 연관 대상을 변경할 수 없습니다.

구문

removeEndpointRouteTableAssociation 구문은 다음과 같습니다.

./ncloud vpc removeEndpointRouteTableAssociation \
    --endpointRouteTableNo <endpoint-route-table-no> \
    --targetNoList <target-no-list> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

옵션

removeEndpointRouteTableAssociation 실행 시 지정할 수 있는 옵션을 설명합니다.

필수 옵션

removeEndpointRouteTableAssociation의 필수 옵션입니다.

옵션 타입 필수 여부 설명
--endpointRouteTableNo String Required Endpoint Route Table 번호
--targetNoList List Required 연관 대상 번호 목록

공통 옵션

vpc 명령에서 공통으로 사용하는 옵션에 대한 정보는 VPC 옵션을 참조해 주십시오.

예시

연관 대상 제거 요청이 성공하면 Endpoint Route Table의 구성 정보와 연관 대상, 라우트 목록이 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vpc removeEndpointRouteTableAssociation \
    --endpointRouteTableNo 45678901 \
    --targetNoList 34567890 \
    --regionCode KR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "removeEndpointRouteTableAssociationResponse": {
    "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": "Updated description",
        "associationList": [],
        "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"
  }
}