vault_namespace

Lists all direct child Namespaces in Vault.

Note this feature is available only with Vault Enterprise.

Example Usage

Child namespaces

data "vault_namespaces" "children" {}

Nested namespace

To fetch the details of nested namespaces:

data "vault_namespaces" "children" {
  namespace = "parent"
}

data "vault_namespace" "child" {
  for_each  = data.vault_namespaces.children.paths
  namespace = data.vault_namespaces.children.namespace
  path      = each.key
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the above arguments, the following attributes are exported: