MENU
      deleteSubnet

        deleteSubnet


        記事の要約

        VPC環境で利用できます。

        Subnet番号を指定して削除します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        GET、POST/deleteSubnet

        リクエストヘッダ

        VPC APIで共通して使用されるヘッダの詳細は、VPCの共通ヘッダをご参照ください。

        リクエストクエリパラメータ

        パラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        regionCodeStringOptional削除対象の Subnetのリージョンコード
      • 照会結果の最初のリージョン(デフォルト)
      • getRegionListを通じて確認
      • subnetNoStringRequired削除対象の Subnet番号
      • getSubnetListを通じて確認
      • responseFormatTypeStringOptionalレスポンス結果の形式
        • xml(デフォルト) | json

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location 'https://ncloud.apigw.ntruss.com/vpc/v2/deleteSubnet
        ?regionCode=KR
        &subnetNo=***43'
        --header 'x-ncp-apigw-timestamp: {Timestamp}'
        --header 'x-ncp-iam-access-key: {Sub Account Access Key}'
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        レスポンス

        レスポンス形式を説明します。

        レスポンスボディ

        レスポンスボディの詳細は、SubnetListをご参照ください。

        レスポンスステータスコード

        NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、Ncloud APIのレスポンスステータスコードをご参照ください。

        レスポンス例

        レスポンスのサンプルコードは次の通りです。

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