» openstack_keymanager_container_v1

Use this data source to get the ID of an available Barbican container.

» Example Usage

data "openstack_keymanager_container_v1" "example" {
  name = "my_container"
}

» Argument Reference

The following arguments are supported:

  • region - (Optional) The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to fetch a container. If omitted, the region argument of the provider is used.

  • name - (Optional) The Container name.

» Attributes Reference

The following attributes are exported:

  • container_ref - The container reference / where to find the container.
  • region - See Argument Reference above.
  • name - See Argument Reference above.
  • type - The container type.
  • secret_refs - A set of dictionaries containing references to secrets. The structure is described below.
  • creator_id - The creator of the container.
  • status - The status of the container.
  • created_at - The date the container was created.
  • updated_at - The date the container was last updated.
  • consumers - The list of the container consumers. The structure is described below.

The secret_refs block supports:

  • name - The name of the secret reference. The reference names must correspond the container type, more details are available here.

  • secret_ref - The secret reference / where to find the secret, URL.

The consumers block supports:

  • name - The name of the consumer.

  • url - The consumer URL.