Comments (2)
Hi @elvarb,
Your body seems right, maybe you are not using the correct Content-Type, currently we support two content-types:
- application/x-www-form-urlencoded
- application/json
Please use one of them to send your POST Request, for example at the documentation you will find a POST request example using cURL:
curl -u foo:bar -k -X POST -d 'name=NewHost&ip=10.0.0.8' https://127.0.0.1:55000/agents
By the way the error 601 you are getting is not totally right, it should be a different error regarding to "Content-type" error, that's on us, we have just fixed it and it will be included on next release.
Thanks you so much for the interest, please don't hesitate to ask if you have further questions.
Regards,
Pedro S.
from wazuh-api.
Tested again using x-www-form-urlencoded and that worked.
I had totally missed the example part of the documentation, extremely nice to include both python and powershell examples as well.
What I'm really interested in doing is automating agent deployments for Windows environments so I will probably ask more questions in the future. Are the github issues the right place for basic questions or do you have a live chat of some sorts as well?
from wazuh-api.
Related Issues (20)
- foo: timestamp out of range for platform time_t HOT 2
- Error with PowerShell Script for register agent.
- Wazuh could not be recovered. HOT 3
- Possible race condition with API log rotation and API calls
- Increase filesize limit HOT 1
- Add support for querying vulnerability data for agent HOT 3
- How can i get alerts from API or other method if it possible HOT 7
- /experimental/syscollector endpoint error having disconnected nodes
- API alert information HOT 2
- API mocha test results for version 3.13.2 HOT 1
- wazuh-api crash when FIPS enabled on Redhat/CentOS 7 HOT 3
- configure_api.sh does not change Kibana plugin .yml file HOT 2
- When trying to restart Agents in a Group without Agents assigned to it shows "Bad request" message. HOT 1
- issue with API? HOT 3
- Wazuh API Call - Active-Response 404 Error - Wazuh Api 4.1.5 HOT 1
- Not working endpoint wazuh-api /sca/{agent:id}/checks/{sca: id} HOT 2
- wazuh(code=exited,status=1/FAILURE)
- wazuh-manager:4.3.10 keeps restarting
- Wazuh API breaks every now and then and i cant figure out why
- How can I get Security Events Alerts through API for all agents of specific group
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wazuh-api.