Skip to content
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

how to set consistency modes in Key/Value HTTP Endpoint and Catalog HTTP Endpoint? #1082

Closed
juaby opened this issue Jul 6, 2015 · 6 comments

Comments

@juaby
Copy link

juaby commented Jul 6, 2015

in the doc, it tells that these endpoint support all consistency modes but not show how to

@armon
Copy link
Member

armon commented Jul 6, 2015

@juaby See the "consistency mode" section here (https://consul.io/docs/agent/http.html). You just need to provide the ?stale or ?consistent query parameters in the request.

@juaby
Copy link
Author

juaby commented Jul 7, 2015

@armon thank you very much. next time I'll read doc more carefully

@armon armon closed this as completed Jul 7, 2015
@asarkar
Copy link

asarkar commented Apr 7, 2019

@armon Just ?consistent without any value, or ?consistent=true?

@armon
Copy link
Member

armon commented Apr 10, 2019

@asarkar no value is needed. As long as the flag is there, it will be respected.

@asarkar
Copy link

asarkar commented Apr 10, 2019

@armon, thanks for your response. This seems like an unusual way, since query params aren’t really command line flags. Why not just have consistency=$mode?

@armon
Copy link
Member

armon commented Apr 22, 2019

@asarkar It could have been done that way, but that is not currently a flag the API supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants