getDetail
    • PDF

    getDetail

    • PDF

    記事の要約

    VPC環境で利用できます。

    作成した Notebookの詳細情報を確認します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    idYESString- idは Notebooksの getList APIを通じて取得可能

    リクエストヘッダ

    共通ガイド参照

    リクエストボディ

    • JSON
        {
            "id": "string"
        }
      
    • XML
        <?xml version="1.0" encoding="UTF-8"?>
        <GetNotebookDetailRequest>
            <id>string</id>
        </GetNotebookDetailRequest>
      

    レスポンス

    レスポンスボディ

    • JSON
        {
          "acgName": "string",
          "acgNo":0,
          "additionalStorage": {
            "storageGB": 0,
            "storageType": "string"
          },
          "createdAt": "2023-06-07T06:28:34.992Z",
          "domain": "string",
          "id": "string",
          "loginKeyName": "string",
          "message": "string",
          "name": "string",
          "serverDesc": "string",
          "sshAccount": "string",
          "state": "ACCEPTED",
          "subnetName": "string",
          "subnetNo": 0,
          "success": true,
          "typeName": "string",
          "userConfigurations": [
            {
              "componentName": "string",
              "description": "string",
              "isMasking": true,
              "name": "string",
              "regexpDescription": "string",
              "regularExpression": "string",
              "value": "string"
            }
          ],
          "vpcName": "string",
          "vpcNo": 0
        }
      
    • XML
        <?xml version="1.0" encoding="UTF-8"?>
        <GetNotebookDetailResponse>
            <acgName>string</acgName>
            <acgNo>0</acgNo>
            <additionalStorage>
                <storageGB>0</storageGB>
                <storageType>string</storageType>
            </additionalStorage>
            <createdAt>2023-06-07T06:28:51.589Z</createdAt>
            <domain>string</domain>
            <id>string</id>
            <loginKeyName>string</loginKeyName>
            <message>string</message>
            <name>string</name>
            <serverDesc>string</serverDesc>
            <sshAccount>string</sshAccount>
            <state>ACCEPTED</state>
            <subnetName>string</subnetName>
            <subnetNo>0</subnetNo>
            <success>true</success>
            <typeName>string</typeName>
            <userConfigurations>
                <componentName>string</componentName>
                <description>string</description>
                <isMasking>true</isMasking>
                <name>string</name>
                <regexpDescription>string</regexpDescription>
                <regularExpression>string</regularExpression>
                <value>string</value>
            </userConfigurations>
            <vpcName>string</vpcName>
            <vpcNo>0</vpcNo>
        </GetNotebookDetailResponse>
      

    エラーコード

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

    リクエスト例

    POST https://df.apigw.ntruss.com/api/v2/notebooks/getDetail
    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
    {
      "id": "7kHeVWhiRsxdRl0nXz04ri"
    }
    
    curl -X POST "https://df.apigw.ntruss.com/api/v2/notebooks/getDetail" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
    -H "x-ncp-apigw-timestamp: 1684750174503" \
    -H "x-ncp-apigw-signature-v2: bj7hVWhEfBRCr49ztbXA4OxXpZgezJXryP83IcSFmbg=" \
    -d "{ \"id\": \"7kHeVWhiRsxdRl0nXz04ri\"}"
    

    レスポンス例

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

      {
              "success": true,
              "id": "7kHeVWhiRsxdRl0nXz04ri",
              "name": "df-notebook",
              "typeName": "Jupyter Lab",
              "state": "RUNNING",
              "vpcNo": 8717,
              "vpcName": "test-vpc",
              "subnetName": "prisub-kr",
              "acgNo":7178,
              "acgName": "df-notebook-acg-1ss11",
              "serverDesc": "vCPU 4EA, Memory 16GB, [HDD]Disk 50GB",
              "loginKeyName": "subin-beta",
              "domain": "7khevwhirsxdrl0nxz04ri-notebook.kr.df.beta.naverncp.com:18080",
              "sshAccount": "forest",
              "additionalStorage": {
                  "storageGB": 0,
                  "storageType": "SSD"
              },
              "userConfigurations": [
                  {
                  "name": "Access Password",
                  "value": "",
                  "componentName": "Jupyter Lab",
                  "regularExpression": "^[a-zA-Z][a-zA-Z0-9]{1,7}$",
                  "isMasking": true
                  },
                  {
                  "name": "Access Key",
                  "value": "",
                  "componentName": "Object Storage",
                  "regularExpression": ".*",
                  "isMasking": true
                  },
                  {
                  "name": "Secret Key",
                  "value": "",
                  "componentName": "Object Storage",
                  "regularExpression": ".*",
                  "isMasking": true
                  }
              ]
      }
      

    エラーコードの例

    • HTTP

      HTTP StatusDescription
      404no such element
    • BASH

        {
            "message": "no such element",
            "success": false
        }
      

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

    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.