actions-marketplace-validations/Consul KV Actions

Manipulate entries in the key/value store of a Consul cluster

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
stateThe action to take with the supplied key and value. If the state is `present` and `value` is set, the key contents will be set to the value supplied and `changed` will be set to `true` only if the value was different to the current contents. If the state is `present` and `value` is not set, the existing value associated to the key will be returned. The state `absent` will remove the key/value pair, again 'changed' will be set to true only if the key actually existed prior to the removal. An attempt can be made to obtain or free the lock associated with a key/value pair with the states `acquire` or attempt changed will be true if the attempt is successful, false otherwise. Possible values are `present`, `absent`, `acquire` and `release` (`acquire` and `release` are experimental). present
keyThe key at which the value should be stored.
valueThe value should be associated with the given key, required if `state` is `present`.
hostHost of the consul agent.localhost
portThe port on which the consul agent is running.8500
schemeThe protocol scheme on which the consul agent is running.http
caTrusted certificates in PEM format.
dcThe datacenter that this agent will communicate with. By default the datacenter of the host is used.
tokenThe token key identifying an ACL rule set that controls access to the key value pair.
recurseIf the key represents a prefix, each entry with the prefix can be retrieved by setting this to `true`.false
retrieveIf the `state` is `present` and `value` is set, perform a read after setting the value and return this value.true
sessionThe session that should be used to acquire or release a lock associated with a key/value pair. Experimental.
casUsed when acquiring a lock with a session. If the `cas` is `0`, then Consul will only put the key if it does not already exist. If the `cas` value is non-zero, then the key is only set if the index matches the ModifyIndex of that key. Experimental.
namedescription
changedReturns true if the key or key value has been changed.
dataA string label to differentiate this status from the status of other systems. For recursive requests, contains a serialized object with k/v. Optional, returned if the key exists.
flagsFlags opaque to user, can be used by application. Optional.
indexModifyIndex to block and wait for changes. Optional.