We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi all,
This issues is related and close #467. As @skiingyac reported to us, the endpoint GET /agents/name/:agent_name is case sensitive.
GET /agents/name/:agent_name
We should add a new parameter to the endpoint (and any other affected endpoint) in order to search using case insensitive.
curl -u foo:bar -k -X GET "https://127.0.0.1:55000/agents/name/NewHost?pretty" { "error": 0, "data": { "ip": "10.0.0.9", "id": "009", "name": "NewHost", "dateAdd": "2019-08-30 09:31:01", "status": "Never connected", "registerIP": "10.0.0.9", "node_name": "unknown" } }
curl -u foo:bar -k -X GET "https://127.0.0.1:55000/agents/name/newhost?pretty" { "error": 1701, "message": "Agent does not exist: newhost" }
curl -u foo:bar -k -X GET "https://127.0.0.1:55000/agents/name/newhost?pretty&insensitive" { "error": 0, "data": { "ip": "10.0.0.9", "id": "009", "name": "NewHost", "dateAdd": "2019-08-30 09:31:01", "status": "Never connected", "registerIP": "10.0.0.9", "node_name": "unknown" } }
Regards.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi all,
This issues is related and close #467. As @skiingyac reported to us, the endpoint
GET /agents/name/:agent_name
is case sensitive.We should add a new parameter to the endpoint (and any other affected endpoint) in order to search using case insensitive.
Before
After
Regards.
The text was updated successfully, but these errors were encountered: