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 juaby commented Jul 6, 2015

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

@armon

This comment has been minimized.

Copy link
Member

@armon 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

This comment has been minimized.

Copy link
Author

@juaby juaby commented Jul 7, 2015

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

@armon armon closed this Jul 7, 2015
@asarkar

This comment has been minimized.

Copy link

@asarkar asarkar commented Apr 7, 2019

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

@armon

This comment has been minimized.

Copy link
Member

@armon armon commented Apr 10, 2019

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

@asarkar

This comment has been minimized.

Copy link

@asarkar 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

This comment has been minimized.

Copy link
Member

@armon 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
Projects
None yet
3 participants
You can’t perform that action at this time.