-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calls for getting CDB lists #301
Conversation
Hi! |
Hi, I made changes for showing relative paths in the output: # curl -u foo:bar -k -X GET "http://127.0.0.1:55000/lists?pretty&offset=1&limit=2&sort=-path"
{
"error": 0,
"data": {
"totalItems": 2,
"items": [
{
"path": "etc/lists/audit-keys",
"items": [
{
"key": "audit-wazuh-w",
"value": "write"
},
{
"key": "audit-wazuh-r",
"value": "read"
},
{
"key": "audit-wazuh-a",
"value": "attribute"
},
{
"key": "audit-wazuh-x",
"value": "execute"
},
{
"key": "audit-wazuh-c",
"value": "command"
}
]
},
{
"path": "etc/lists/amazon/aws-test",
"items": [
{
"key": "AttachLoadBalancers",
"value": "Autoscaling"
},
{
"key": "DetachLoadBalancers",
"value": "Autoscaling"
},
{
"key": "CreateSubnet",
"value": "Legacy Wazuh CDB"
},
{
"key": "CreateTags",
"value": "Legacy Wazuh CDB"
},
{
"key": "CreateVolume",
"value": "Legacy Wazuh CDB"
},
{
"key": "DeletePlacementGroup",
"value": "Legacy Wazuh CDB"
}
]
}
]
}
} curl -u foo:bar -k -X GET "http://127.0.0.1:55000/lists/files?pretty"
{
"error": 0,
"data": [
{
"path": "etc/lists/amazon",
"name": "aws-eventnames"
},
{
"path": "etc/lists/amazon",
"name": "aws-test"
},
{
"path": "etc/lists",
"name": "audit-keys"
},
{
"path": "etc/lists",
"name": "aa-test-list"
}
]
} |
I miss this new endpoint to be added to mocha tests. |
Mocha tests were added @crd1985! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me everything is ok.
Thx!
Merging blocked by wazuh/wazuh#2481 |
Hi team,
This PR is for adding new calls for getting CDB lists (issue #298). Below there are some examples of these new calls.
curl -u foo:bar -k -X GET "http://127.0.0.1:55000/lists
:curl -u foo:bar -k -X GET "http://127.0.0.1:55000/lists/files
:Best regards,
Demetrio.