MENU
      removeRoute

        removeRoute


        Article summary

        Can be used in a VPC environment.

        Overview

        Remove the routing list set in the routing table. Routes set by default can't be removed.

        Request

        Request parameter

        Parameter NameRequired StatusTypeRestrictionsDescription
        regionCodeNoStringRegion Code
        You can decide the region of the routing table where a route will be removed.
        The regionCode can be obtained through the getRegionList action.
        Default: Select the first region of the getRegionList query results.
        vpcNoYesStringVPC number
        This determines the VPC of the routing table where a route will be removed.
        vpcNo can be obtained through the getVpcList action.
        routeTableNoYesStringRouting table number
        This determines the number of the routing table where a route will be removed.
        The routeTableNo can be obtained through the getRouteTableList action.
        routeList.N.destinationCidrBlockYesStringDestination IPv4 CIDR block
        This specifies the destination IP address range of the route to be removed.
        routeList.N.targetTypeCodeYesStringDestination type code
        This determines the destination type of the route to be removed.
        Options : NATGW (NAT Gateway) | VPCPEERING (VPC Peering) | VGW (Virtual Private Gateway)
        routeList.N.targetNoYesStringDestination identification number
        This determines the destination identification number that corresponds to the destination type.
        targetNo can be obtained through a query action corresponding to each destination type.
        routeList.N.targetNameYesStringDestination name
        Enter the destination name corresponding to the destination type.
        targetName can be obtained through a query action corresponding to each destination type.
        responseFormatTypeNoStringFormat type for the response result
        Options : xml | json
        Default : xml

        Response

        Response data type

        • routeList type
        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;

        Example

        Request example

        ncloud vpc removeRoute --regionCode KR --vpcNo ***04 --routeTableNo ***38 --routeList "destinationCidrBlock='***.***.200.0/24', targetTypeCode='NATGW', targetNo='***9734', targetName='test-***'" "destinationCidrBlock='***.***.201.0/24', targetTypeCode='VGW', targetNo='***9735', targetName='test-***'"
        Plain text

        Response example

        The routing list of the corresponding routing table after executing the request

        <removeRouteResponse>
          <requestId>fb1ea6cf-15bf-4600-b737-1d7bed33421e</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>
        </removeRouteResponse>
        XML

        Was this article helpful?

        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.