0

I have consul entries in my kubernetes cluster. I need to perform CRUD operations. These are the commands I know, but I need to Get all and Delete and this has to be done with HTTP requests and not with consul cli.

GET - curl -k -X GET /?token=

GET ALL -

CREATE/PUT - curl -k --request PUT --data '' /?token=

DELETE -

can someone please help me to find those two empty commands?

Community
  • 1
  • 1
Jananath Banuka
  • 493
  • 3
  • 11
  • 22

1 Answers1

0

I provided an answer here https://stackoverflow.com/a/61491161/12384224 on how you can retrieve all values from Consul's KV store.

Consul's KV Store API docs contain curl examples for creating and deleting a given key. Take a look at Consul's Transaction API documentation if you are looking for a way to create and delete keys en-masse.

Blake Covarrubias
  • 2,138
  • 2
  • 6
  • 14