MENU
      getVpcDetail

        getVpcDetail


        기사 요약

        VPC 환경에서 이용 가능합니다.

        Notebook 생성 시, VPC의 상세정보를 확인합니다.

        요청

        요청 파라미터

        파라미터명필수 여부타입제약 사항설명
        vpcNoYESInteger- vpcNo는 Notebooks의 getVpcList API를 통해 확인 가능

        요청 헤더

        공통 가이드 참조

        요청 바디

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

        응답

        응답 바디

        • JSON
          {
            "createdAt": "2023-06-07T06:18:03.284Z",
            "ipv4Cidr": "string",
            "message": "string",
            "regionNo": 0,
            "state": "string",
            "success": true,
            "vpcName": "string",
            "vpcNo": 0
          }
          JSON
        • XML
          <?xml version="1.0" encoding="UTF-8"?>
          <GetVpcDetailResponse>
              <createdAt>2023-06-07T06:19:15.814Z</createdAt>
              <ipv4Cidr>string</ipv4Cidr>
              <message>string</message>
              <regionNo>0</regionNo>
              <state>string</state>
              <success>true</success>
              <vpcName>string</vpcName>
              <vpcNo>0</vpcNo>
          </GetVpcDetailResponse>
          XML

        오류코드

        DataForest 개요 참조

        예시

        요청 예시

        POST https://df.apigw.ntruss.com/api/v2/notebooks/getVpcDetail
        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
        {
          "vpcNo": "8717"
        }
        HTTP
        curl -X POST "https://df.apigw.ntruss.com/api/v2/notebooks/getVpcDetail" \
        -H "accept: application/json" \
        -H "Content-Type: application/json" \
        -H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
        -H "x-ncp-apigw-timestamp: 1684744821022" \
        -H "x-ncp-apigw-signature-v2: Aoi0b3KEWmWfABvAavifPMaz3QRmo6P0EJwLq+PDDF0=" \
        -d "{ \"vpcNo\": 8717}"
        Bash

        응답 예시

        • HTTP

          HTTP StatusDescription
          200OK
        • BASH

          {
            "success": true,
            "vpcNo": 8717,
            "vpcName": "test-vpc",
            "regionNo": 1,
            "ipv4Cidr": "172.16.0.0/16",
            "state": "Running",
            "createdAt": "2023-03-21T10:35:43.8+09:00"
          }
          JSON

        오류 코드 예시

        • HTTP

          HTTP StatusDescription
          403not allowed to access
        • BASH

          {
            "message": "resource ('string') is not allowed or not exists",
            "success": false
          }
          JSON

        이 문서가 도움이 되었습니까?

        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.