MENU
      getRouteList

        getRouteList


        기사 요약

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

        개요

        라우트 테이블에 설정된 라우트 리스트를 조회합니다.

        요청

        요청 파라미터

        파라미터명필수 여부타입제약 사항설명
        regionCodeNoString- 리전 코드
        라우트 리스트가 조회될 라우트 테이블의 리전(Region) 결정 가능
        regionCode는 getRegionList 액션을 통해 획득 가능
        Default : getRegionList 조회 결과의 첫 번째 리전을 선택
        routeTableNoYesString- 라우트 테이블 번호
        조회할 라우트 리스트의 라우트 테이블 번호를 결정함
        routeTableNo는 getRouteTableList 액션을 통해 획득 가능
        vpcNoYesString- VPC 번호
        조회할 라우트 테이블의 VPC 번호를 결정함
        vpcNo는 getVpcList 액션을 통해 획득 가능
        responseFormatTypeNoString- 응답 결과의 포맷 타입
        Options : xml | json
        Default : xml

        응답

        응답 데이터 타입

        • routeList 타입
        RouteList extends CommonResponse
        private Integer totalRows;
        private List routeList = new ArrayList<>();
        Route
        private String routeTableNo;
        private String destinationCidrBlock;
        private String targetName;
        private CommonCode targetType;
        private String targetNo;
        private Boolean isDefault;

        예시

        요청 예시

        ncloud vpc getRouteList --regionCode KR --routeTableNo ***38 --vpcNo ***04
        Plain text

        응답 예시

        <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>
        XML

        이 문서가 도움이 되었습니까?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.