Available in VPC
Change the number of containers in the Data Forest app component.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
POST | /api/v2/apps/setContainerCount |
Request headers
For information about the headers common to all Data Forest APIs, see Data Forest request headers.
Request body
You can include the following data in the body of your request:
Field | Type | Required | Description |
---|---|---|---|
id |
String | Required | App's unique identifier
|
componentName |
String | Required | Component name
|
containerCount |
Integer | Required | Number of containers |
Request example
The request example is as follows:
curl --location --request POST 'https://df.apigw.ntruss.com/api/v2/apps/setContainerCount' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--data '{
"id": "***ziexhg0FcWx5eGUA***",
"componentName": "shell",
"containerCount": 2
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
success |
Boolean | - | API processing result
|
message |
String | - | Result message
|
id |
String | - | App's unique identifier
|
Response status codes
For response status codes common to all Data Forest APIs, see Data Forest response status codes.
Response example
The response example is as follows:
{
"success": true,
"id": "***ziexhg0FcWx5eGUA***"
}