HashiCorp Vault · JSON Structure

Vault Sys Policy Request Structure

PolicyRequest schema from HashiCorp Vault API

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

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

Properties

policy

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-sys-policy-request-structure.json",
  "name": "PolicyRequest",
  "description": "PolicyRequest schema from HashiCorp Vault API",
  "type": "object",
  "properties": {
    "policy": {
      "type": "string",
      "description": "HCL policy document defining path-based access rules. Capabilities include create, read, update, delete, list, and sudo.",
      "example": "path \"secret/data/myapp/*\" { capabilities = [\"create\", \"read\", \"update\"] }"
    }
  },
  "required": [
    "policy"
  ]
}