secret#

async idem_vault.exec.vault.secrets.kv_v2.secret.get(hub, ctx, path: str, version: int = None) Dict[source]#

Retrieves KV_v2 secret data-source.

Parameters:
  • path (str) – The full logical path to write the data. This should be prefixed ‘with secret/’.

  • version (int, Optional) – The version of the secret to read. If not specified, the latest version will be used.

Request Syntax:
[Idem-state-name]:
  exec.run:
    - path: vault.secrets.kv_v2.secret.get
    - kwargs:
        path: 'string'
        version: int

Examples

my-secret:
  exec.run:
    - path: vault.secrets.kv_v2.secret.get
    - kwargs:
        path: secret/test
        version: 1