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.