Use this data source to get the ID of an OpenStack project.
data "openstack_identity_project_v3" "project_1" {
name = "demo"
}
The following arguments are supported:
domain_id
- (Optional) The domain this project belongs to.
enabled
- (Optional) Whether the project is enabled or disabled. Valid
values are true
and false
.
is_domain
- (Optional) Whether this project is a domain. Valid values
are true
and false
.
name
- (Optional) The name of the project.
parent_id
- (Optional) The parent of this project.
tags
- (Optional) Tags for the project.
project_id
- (Optional) The id of the project. Conflicts with any of the
above arguments.
id
is set to the ID of the found project. In addition, the following attributes
are exported:
description
- The description of the project.domain_id
- See Argument Reference above.enabled
- See Argument Reference above.is_domain
- See Argument Reference above.name
- See Argument Reference above.parent_id
- See Argument Reference above.tags
- See Argument Reference above.project_id
- See Argument Reference above.region
- The region the project is located in.