hashicorp / hashicorp/consul

Add filtering support to the /v1/acl/* APIs

Open
#9,843 4 comments 0 reactions 0 assignees View on GitHub
theme/acls type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

CONSUL_VERSION : 1.9.0

I try to filter the result return by the endpoint /acl/tokens like the following :

Curl request :
`curl -H "X-Consul-Token: MYTOKEN" -X GET http://localhost:8500/v1/acl/tokens --data-urlencode 'filter=Description=="crep"'`

Api call :
`acls, _, err := acl.TokenList(&api.QueryOptions{Filter: "Description == crep"})`

The result are not filtered.
I have followed the documentation (https://www.consul.io/api-docs/features/filtering) without success.
Can you tell me if my filter is wrong or if you are able to reproduce my problem ?

Thanks for your help

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.