VaultTokenMetadata#

pydantic model phalanx.models.vault.VaultTokenMetadata#

Metadata about a new or existing Vault token.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "VaultTokenMetadata",
   "description": "Metadata about a new or existing Vault token.",
   "type": "object",
   "properties": {
      "display_name": {
         "title": "Display Name",
         "type": "string"
      },
      "accessor": {
         "title": "Accessor",
         "type": "string"
      },
      "expires": {
         "title": "Expires",
         "type": "string",
         "format": "date-time"
      },
      "policies": {
         "title": "Policies",
         "type": "array",
         "items": {
            "type": "string"
         }
      }
   },
   "required": [
      "display_name",
      "accessor",
      "expires",
      "policies"
   ]
}

Fields:
field accessor: str [Required]#

Accessor for the token, used to get metadata or revoke it.

field display_name: str [Required]#

Display name of the token.

field expires: datetime [Required]#

When the token expires.

field policies: list[str] [Required]#

Policies applied to this token.