setContainerCount
    • PDF

    setContainerCount

    • PDF

    記事の要約

    VPC環境で利用できます。

    Data Forestアプリのコンポーネントのコンテナ数を変更します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    idYESString- アプリ識別子 UUID(base62)
    - idは Appsの getList APIを通じて取得可能
    componentNameYESString- コンポーネントの名前
    - idは AI Appsの getDetail APIを通じて取得可能
    containerCountYESInteger変更するアプリのコンテナ数を入力

    リクエストヘッダ

    共通ガイド参照

    リクエストボディ

    • JSON
        {
        "componentName": "string",
        "containerCount": 0,
        "id": "string"
        }
      
    • XML
        <?xml version="1.0" encoding="UTF-8"?>
        <SetAppContainerCountRequest>
            <componentName>string</componentName>
            <containerCount>0</containerCount>
            <id>string</id>
        </SetAppContainerCountRequest>
      

    レスポンス

    レスポンスボディ

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

    エラーコード

    DataForest概要参照

    リクエスト例

    • HTTP

      POST https://df.apigw.ntruss.com/api/v2/apps/setContainerCount
      HOST: df.apigw.ntruss.com
      Content-Type: application/json
      x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
      x-ncp-apigw-timestamp: 1658898041497
      x-ncp-iam-access-key: 17F9A6E9F72BD92ED94B
      
      {
      "id": "A4LI7d5mRn1f6M2HxZAEE2"",
      "componentName": "zkweb",
      "containerCount": 2
      }
      
    • BASH

      curl -X POST "https://df.apigw.ntruss.com/api/v2/apps/setContainerCount" \
      -H "accept: application/json" \
      -H "Content-Type: application/json" \
      -H "x-ncp-apigw-timestamp:1658898041497" \
      -H "x-ncp-iam-access-key:17F9A6E9F72BD92ED94B" \
      -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \
      -d '{
      "id": "eLFQZ4DAmwzbLz6VHvAHuS",
      "componentName": "zkweb",
      "containerCount": 2
      }'
      

    レスポンス例

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

      {
      "success": true,
      "message": "success",
      "id": "eLFQZ4DAmwzbLz6VHvAHuS"
      }
      
      

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

    What's Next
    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.