getSubnetList
    • PDF

    getSubnetList

    • PDF

    記事の要約

    VPC環境で利用できます。

    Notebook作成時、作成可能な Subnetを確認します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    typeCodeYESString- typeCodeは Notebooksの getTypeList APIを通じて取得可能
    vpcNoYESIntegerPublic Subnetを保有した VPC- vpcNoは Notebooksの getVpcList APIを通じて取得可能

    リクエストヘッダ

    共通ガイド参照

    リクエストボディ

    • JSON
        {
            "typeCode": "string",
            "vpcNo": 0
        }
      
    • XML
        <?xml version="1.0" encoding="UTF-8"?>
        <GetSubnetListRequest>
            <typeCode>string</typeCode>
            <vpcNo>0</vpcNo>
        </GetSubnetListRequest>
      

    エラーコード

    HTTP StatusDescription
    400invalid request parameters
    403not allowed to access
    404no such element
    500unexpected error

    リクエスト例

    POST https://df.apigw.ntruss.com/api/v2/notebooks/getSubnetList
    HOST: df.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-signature-v2: Azm1WBMWDgEONUCUbsVkB4tRIpc053uOHU8bitbQRtU=
    x-ncp-apigw-timestamp: 1658898041497
    x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu { \"typeCode\": \"SW.DFRNT.OS.LNX64.CNTOS.0708.B050\", \"vpcNo\": 8717}
    
    curl -X POST "https://df.apigw.ntruss.com/api/v2/notebooks/getSubnetList" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \ 
    -H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
    -H "x-ncp-apigw-timestamp: 1684746475134" \
    -H "x-ncp-apigw-signature-v2: T7cOntzhT16AorO6hipld/xPlRj+Lh4VaUAZq/kdMIQ=" \
    -d "{ \"typeCode\": \"SW.DFRNT.OS.LNX64.CNTOS.0708.B050\", \"vpcNo\": 8717}"
    

    レスポンス例

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

      {
          "success": true,
          "total": 1,
          "contents": [
              {
              "zoneNo": 3,
              "zoneName": "KR-2",
              "subnetNo": 13594,
              "subnetName": "prisub-kr",
              "isPublic": true
              }
          ]
      }
      

    この記事は役に立ちましたか?

    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.