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>
      

    응답

    응답 바디

    • JSON
        {
          "contents": [
            {
              "isPublic": true,
              "subnetName": "string",
              "subnetNo": 0,
              "zoneName": "string",
              "zoneNo": 0
            }
          ],
          "message": "string",
          "success": true,
          "total": 0
        }
      
    • XML
        <?xml version="1.0" encoding="UTF-8"?>
        <GetSubnetListResponse>
            <contents>
                <isPublic>true</isPublic>
                <subnetName>string</subnetName>
                <subnetNo>0</subnetNo>
                <zoneName>string</zoneName>
                <zoneNo>0</zoneNo>
            </contents>
            <message>string</message>
            <success>true</success>
            <total>0</total>
        </GetSubnetListResponse>
      

    오류코드

    DataForest 개요 참조

    예시

    요청 예시

    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.