Upload Collector Conf Files

Upload Collector Conf Files

User can upload configuration files in collector module.

Request
URI
POST
https://{api_host}/dcc/v1/collectors/{collector-name}/modules/{module-name}/files
COPY
Path Parameters
string
collector-name
Required

id of the instantiated collector

collector-name example
demo-collector
string
module-name
Required

name of collector module

module-name example
Collecting
Query Parameters
boolean
overwrite
Optional
Constraints: default: false

Set to 'true' if user wants to overwrite existing file.


Request Body
File of type(s) multipart/form-data
Optional
{
    "files": [
        "string"
    ]
}
array of string
files
Optional

files

Authentication
This operation uses the following authentication methods.
Responses
207

File uploaded successfully

Returns MultiStatusUploadResponse of type(s) application/json
{
    "existing_file_list": [
        [
            "Collecting/Availability-Filter/test/conf/availability-filter.xml",
            "Collecting/Availability-Filter/test/conf/test.xml"
        ]
    ],
    "failed_file_list": [
        [
            "Collecting/Availability-Filter/test/conf/test1.xml"
        ]
    ],
    "success_file_list": [
        [
            "Collecting/Availability-Filter/test/conf/test1.xml"
        ]
    ]
}
array of string
existing_file_list
Optional

Array of successfully deleted file path strings.

array of string
failed_file_list
Optional

Array of failed deleted file path strings.

array of string
success_file_list
Optional

Array of failed deleted file path strings.


400

Bad request

Operation doesn't return any data structure

401

User authentication failed

Operation doesn't return any data structure

403

Access to the requested resource/operation is forbidden

Operation doesn't return any data structure

404

Collector/file not found

Operation doesn't return any data structure

500

Internal server error

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{}' https://{api_host}/dcc/v1/collectors/{collector-name}/modules/{module-name}/files