AddFilePlugin
- Print
- PDF
AddFilePlugin
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
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 header
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 | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
configList | Y | List<String> | File path | |
instanceNo | Y | String | InstanceNo of the server; only one instanceNo can be entered. | |
type | N | String | VPCServer , ClassicServer , CloudHadoop , default : VPCServer | Product name |
Examples
Request examples
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 examples
The API returns HTTP code 200 without any response body if the setup is completed without any errors.
Was this article helpful?