MENU
      deleteSubnet

        deleteSubnet


        記事の要約

        VPC環境で利用できます。

        概要

        Subnetを削除します。

        リクエスト

        リクエストパラメータ

        パラメータ名必須の有無タイプ制約事項説明
        regionCodeNoStringリージョンコード
        削除するSubnetのリージョン(Region)を決定できます。
        regionCodeはgetRegionListアクションを通じて取得できます。
        Default:getRegionList照会結果の最初のリージョンを選択
        subnetNoYesString削除するSubnet番号
        subnetNoはgetSubnetListアクションを通じて取得できます。
        responseFormatTypeNoStringレスポンス結果のフォーマットタイプ
        Options : xml | json
        Default : xml

        レスポンス

        レスポンスデータタイプ

        • SubnetListタイプ
        SubnetList extends CommonResponse
        private Integer totalRows;
        private List subnetList = new ArrayList<>();
        Subnet
        private String subnetNo;
        private String vpcNo;
        private String zoneCode;
        private String subnetName;
        private String subnet;
        private CommonCode subnetStatus;
        private Date createDate;
        private CommonCode subnetType;
        private CommonCode usageType;
        private String networkAclNo;

        リクエスト例

        ncloud vpc deleteSubnet --regionCode KR --subnetNo ***43
        Plain text

        レスポンス例

        <deleteSubnetResponse>
          <requestId>a0746ba0-488a-45d1-94e9-a62dea9db1a8</requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
          <totalRows>1</totalRows>
          <subnetList>
            <subnet>
              <subnetNo>***43</subnetNo>
              <vpcNo>***04</vpcNo>
              <zoneCode>KR-1</zoneCode>
              <subnetName>test-***</subnetName>
              <subnet>***.***.1.0/24</subnet>
              <subnetStatus>
                <code>TERMTING</code>
                <codeName>terminating</codeName>
              </subnetStatus>
              <createDate>2020-07-31T14:38:00+0900</createDate>
              <subnetType>
                <code>PUBLIC</code>
                <codeName>Public</codeName>
              </subnetType>
              <usageType>
                <code>GEN</code>
                <codeName>General</codeName>
              </usageType>
              <networkAclNo>***31</networkAclNo>
            </subnet>
          </subnetList>
        </deleteSubnetResponse>
        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.