Creating a Log Collection Task
Function
Creates a log collection task.
Syntax
Operation type: POST
URL: https://{ip}:{port}/edgemanager/v1/logmgmt/dump/task
Request message body:
{
"module": module,
"edgeNodes": edgeNodes
}
Request Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
module |
Mandatory |
Type of cogs collected |
Character string. The value is edgeNode. |
edgeNodes |
Mandatory |
Array of node IDs to be collected |
Array. The number ranges from 1 to 100 and must be unique. The minimum value of each number in the array is 1 and the maximum value is 2^32-1. |
Usage Example
Request:
POST https://10.10.10.10:30035/edgemanager/v1/logmgmt/dump/task
Request message body:
{
"module": "edgeNode",
"edgeNodes": [2]
}
Response:
{
"status": "00000000",
"msg": "success",
"data": {
"taskId": "dumpMultiNodesLog.413f66d069888b135e976c57"
}
}
Response status code: 200
Output Description
Parameter |
Type |
Description |
|---|---|---|
status |
String |
Error code |
msg |
String |
Description |
data |
Object |
Result of creating a log collection task |
Parameter |
Type |
Description |
|---|---|---|
taskId |
String |
ID of the task that is successfully created |
Parent topic: Log Collection APIs