Etcd · Schema
Compare
A condition in a transaction that compares a key's attribute to a target value
Cloud-NativeConsensusDistributed SystemsGraduatedKey-Value StoreKubernetes
Properties
| Name | Type | Description |
|---|---|---|
| result | string | The comparison operation to apply |
| target | string | The attribute of the key to compare |
| key | string | The key to compare in base64-encoded format |
| range_end | string | The range end for comparing a range of keys |
| version | string | Version to compare against when target is VERSION |
| create_revision | string | Create revision to compare against when target is CREATE |
| mod_revision | string | Mod revision to compare against when target is MOD |
| value | string | Value to compare against when target is VALUE in base64-encoded format |
| lease | string | Lease ID to compare against when target is LEASE |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Compare",
"title": "Compare",
"type": "object",
"description": "A condition in a transaction that compares a key's attribute to a target value",
"properties": {
"result": {
"type": "string",
"enum": [
"EQUAL",
"GREATER",
"LESS",
"NOT_EQUAL"
],
"description": "The comparison operation to apply"
},
"target": {
"type": "string",
"enum": [
"VERSION",
"CREATE",
"MOD",
"VALUE",
"LEASE"
],
"description": "The attribute of the key to compare"
},
"key": {
"type": "string",
"description": "The key to compare in base64-encoded format"
},
"range_end": {
"type": "string",
"description": "The range end for comparing a range of keys"
},
"version": {
"type": "string",
"description": "Version to compare against when target is VERSION"
},
"create_revision": {
"type": "string",
"description": "Create revision to compare against when target is CREATE"
},
"mod_revision": {
"type": "string",
"description": "Mod revision to compare against when target is MOD"
},
"value": {
"type": "string",
"description": "Value to compare against when target is VALUE in base64-encoded format"
},
"lease": {
"type": "string",
"description": "Lease ID to compare against when target is LEASE"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/etcd-compare"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.