The Buffer File Control API
Using the Buffer File Control API, you can delete or move the buffer files. It is recommended to move the buffer files to a new folder within the same drive.
Note:
- After the buffer files are moved, the collector will remain in the stopped state. You can start the collector by using the Start Collector API endpoint.
- Moving files to a network shared drive is not supported.
METHOD | PUT |
URI |
|
SAMPLE URI | Sample URI for moving buffer files: Sample URI for deleting buffer files:
|
SAMPLE RESPONSE | Sample response for moving buffer files: Sample response for deleting buffer files:
|
SAMPLE cURL COMMAND |
|
Query Parameters
Query parameters include the Payload parameter, which is a JSON file, which contains the following properties.
Parameter | Description | Required? | Values |
---|---|---|---|
interfaceName |
The interface name of the collector. | Yes | String |
bufferMode |
Indicates whether you want to move or delete the files. | Yes |
|
bufferPath |
The directory to which you want to move the buffer files. For example: C:\\Data\\NewBufferFilesLocation or C:/Data/NewBufferPathLocation Note: The double slash (\\) is required in the JSON format. |
Yes (only if you want to move the buffer files) | String |
winUserName |
The Windows username. | Yes (only if you want to use the command-line mode) | String |
winPassword |
The Windows password | Yes (only if you want to use the command-line mode) | String |
Response Parameters
Parameter | Data Type | Required? | Description |
---|---|---|---|
ErrorCode |
Integer | Yes | For example, ErrorCode = 0 implies the operation was successful. |
ErrorMessage |
String | Yes | For example, NULL. |
Data |
String | No | Indicates if the task has been initiated (and if the collector is in the stopped state). |