HashiCorp Vault · JSON Structure

Vault Kv Secret Metadata Response Structure

SecretMetadataResponse schema from HashiCorp Vault API

Type: object Properties: 1
DevOpsEncryptionOpen SourcePKISecrets ManagementSecurity

SecretMetadataResponse is a JSON Structure definition published by HashiCorp Vault, describing 1 property. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

data

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-metadata-response-structure.json",
  "name": "SecretMetadataResponse",
  "description": "SecretMetadataResponse schema from HashiCorp Vault API",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "current_version": {
          "type": "int32",
          "description": "The current version number of the secret.",
          "example": 2
        },
        "max_versions": {
          "type": "int32",
          "description": "Maximum number of versions retained.",
          "example": 10
        },
        "oldest_version": {
          "type": "int32",
          "description": "The oldest version number available.",
          "example": 1
        },
        "created_time": {
          "type": "datetime",
          "description": "Time when the secret was first created.",
          "example": "2025-03-15T14:30:00Z"
        },
        "updated_time": {
          "type": "datetime",
          "description": "Time when the secret was last updated.",
          "example": "2025-03-16T10:00:00Z"
        },
        "cas_required": {
          "type": "boolean",
          "example": false
        },
        "versions": {
          "type": "object",
          "description": "Map of version number to version metadata.",
          "additionalProperties": {
            "$ref": "#/components/schemas/SecretVersionMetadata"
          }
        },
        "custom_metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  }
}