AddFilePlugin
- Print
- PDF
AddFilePlugin
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Add a file plugin. If there is an existing file plugin setting for the server, then it is appended to the list.
Requests
API URL
URL: https://cw.apigw.ntruss.com/cw_server/real/api/plugin/file/add
Method: POST
Request headers
The request headers specified in common settings are required.
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
x-ncp-dmn_cd: PUB
x-ncp-region_code: {your region code}
Request body
Parameter name | Required | Type | Restrictions | Description |
---|---|---|---|---|
configList | Required | List<String> | File path | |
instanceNo | Required | String | Server's instanceNo; only one instanceNo can be entered | |
type | Optional | String | VPCServer , ClassicServer , CloudHadoop , default: VPCServer | Product name |
Examples
Request example
POST /cw_server/real/api/plugin/file/add
Host: cw.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
x-ncp-dmn_cd: PUB
x-ncp-region_code: {your region code}
Payload:
{
"configList": [
"/root/insight_test/insight.pyc",
"/root/insight_test/api/file.pyc"
],
"instanceNo": "1234567",
"type": "VPCServer"
}
Response example
If the settings are completed without error, then HTTP code 200 is returned without a response body.
Was this article helpful?