setContainerCount
- Print
- PDF
setContainerCount
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Changes the number of component containers of the Data Forest app.
Requests
Request Parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
id | YES | String | - app identifier UUID (base62) - id can be acquired through getList API of Apps. | |
componentName | YES | String | Component name - id can be acquired through the AI App’s getDetail API | |
containerCount | YES | Integer | Enter the number of app containers you want. |
Request headers
Request Bodies
- 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>
Responses
Response bodies
- 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>
Errors
Examples
Request Examples
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 }'
Response examples
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "message": "success", "id": "eLFQZ4DAmwzbLz6VHvAHuS" }
Was this article helpful?