HashiCorp Consul · Schema

Consul KV Pair

Schema for a key/value pair returned by the Consul KV API.

ACLConfigurationHealth CheckingKey/Value StoreMulti-DatacenterOpen SourceService DiscoveryService Mesh

Properties

Name Type Description
Key string
Value stringnull Base64-encoded value of the key (null when not present).
Flags integer User-defined 64-bit unsigned integer associated with the entry.
CreateIndex integer
ModifyIndex integer
LockIndex integer
Session stringnull ID of the session holding the lock on this key, if any.
Namespace string
Partition string
View JSON Schema on GitHub

JSON Schema

consul-kv-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/consul/refs/heads/main/json-schema/consul-kv-schema.json",
  "title": "Consul KV Pair",
  "description": "Schema for a key/value pair returned by the Consul KV API.",
  "type": "object",
  "properties": {
    "Key": { "type": "string" },
    "Value": {
      "type": ["string", "null"],
      "description": "Base64-encoded value of the key (null when not present)."
    },
    "Flags": {
      "type": "integer",
      "description": "User-defined 64-bit unsigned integer associated with the entry."
    },
    "CreateIndex": { "type": "integer" },
    "ModifyIndex": { "type": "integer" },
    "LockIndex": { "type": "integer" },
    "Session": {
      "type": ["string", "null"],
      "description": "ID of the session holding the lock on this key, if any."
    },
    "Namespace": { "type": "string" },
    "Partition": { "type": "string" }
  },
  "required": ["Key", "CreateIndex", "ModifyIndex"]
}