HashiCorp Vault · JSON Structure

Vault Kv Secret Data Request Structure

SecretDataRequest schema from HashiCorp Vault API

Type: object Properties: 2 Required: 1
DevOpsEncryptionOpen SourcePKISecrets ManagementSecurity

SecretDataRequest is a JSON Structure definition published by HashiCorp Vault, describing 2 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

data options

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/vault/refs/heads/main/json-structure/vault-kv-secret-data-request-structure.json",
  "name": "SecretDataRequest",
  "description": "SecretDataRequest schema from HashiCorp Vault API",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "Key-value pairs to store as the secret. Values can be strings, numbers, or nested objects.",
      "additionalProperties": true
    },
    "options": {
      "type": "object",
      "properties": {
        "cas": {
          "type": "int32",
          "description": "Check-and-set value. If set, the write will only succeed if the current version matches this value. Set to 0 to write only if the key does not exist."
        }
      }
    }
  },
  "required": [
    "data"
  ]
}