setUserConfigurationList
    • PDF

    setUserConfigurationList

    • PDF

    記事の要約

    VPC環境で利用できます。

    ユーザーが構成した Notebook Specを設定します。

    リクエスト

    リクエストパラメータ

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

    リクエストヘッダ

    共通ガイド参照

    リクエストボディ

    • JSON
      {
        "id": "string",
        "userConfigurations": [
          {
            "componentName": "string",
            "name": "string",
            "value": "string"
          }
        ]
      }
      
    • XML
      <?xml version="1.0" encoding="UTF-8"?>
      <SetNotebookUserConfigurationListRequest>
        <id>string</id>
        <userConfigurations>
          <componentName>string</componentName>
          <name>string</name>
          <value>string</value>
        </userConfigurations>
      </SetNotebookUserConfigurationListRequest>
      

    レスポンス

    レスポンスボディ

    • JSON
        {
          "message": "string",
          "success": true
        }
      
    • XML
      <?xml version="1.0" encoding="UTF-8"?>
        <SetNotebookUserConfigurationListResponse>
            <message>string</message>
            <success>true</success>
        </SetNotebookUserConfigurationListResponse>
      

    エラーコード

    DataForest概要参照

    リクエスト例

    POST https://df.apigw.ntruss.com/api/v2/notebooks/setUserConfigurationList
    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": "57LdGyOt7xXefniX27qWkp",
      "userConfigurations": [
        {
          "name": "Access Password",
          "value": "qaz123QAZ!@#",
          "componentName": "Jupyter Lab"
        }
         ]
    }
    
    curl -X POST "https://df.beta-apigw.ntruss.com/api/v2/notebooks/setUserConfigurationList" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "x-ncp-iam-access-key: F5O55GOTR4CqYJqPDnCu" \
    -H "x-ncp-apigw-timestamp: 1684892443931" \
    -H "x-ncp-apigw-signature-v2: 74j5KqcSF8CpfaASzqGLQE2Io3bHkKnWz/CRf6thEyU=" \
    -d "{ \"id\": \"57LdGyOt7xXefniX27qWkp\", \"userConfigurations\": [ { \"name\": \"Access Password\", \"value\": \"qaz123QAZ!@#\", \"componentName\": \"Jupyter Lab\" } ]}"
    

    レスポンス例

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

      {
          "success": true
      }
      

    エラーコードの例

    • HTTP

      HTTP StatusDescription
      400invalid request parameters
    • BASH

      {
        "message": "invalid request parameter (constraint violation Not available, notebook user configuration id's value 'qaz1@#')",
        "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.