Lists all direct child Namespaces in Vault.
Note this feature is available only with Vault Enterprise.
data "vault_namespaces" "children" {}
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
}
The following arguments are supported:
namespace
- (Optional) The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespace
is always relative to the provider's configured namespace.In addition to the above arguments, the following attributes are exported:
paths
- Set of the paths of direct child namespaces.