Up-to-date reference of API arguments for IAM project you can get at documentation portal
opentelekomcloud_identity_project_v3¶
Use this data source to get the ID of an OpenTelekomCloud project.
Example Usage¶
data "opentelekomcloud_identity_project_v3" "project_1" {
name = "demo"
}
Query Current Project details¶
If name or domain_id are not provided, data source gets info about current project.
data "opentelekomcloud_identity_project_v3" "project_1" {
}
Argument Reference¶
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 aretrueandfalse.is_domain- (Optional) Whether this project is a domain. Valid values aretrueandfalse.name- (Optional) The name of the project.parent_id- (Optional) The parent of this project.
Attributes Reference¶
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- ID of an enterprise account to which a project belongs.enabled- Whether a project is available.is_domain- Indicates whether the user calling the API is a tenant.name- Project name.parent_id- Parent ID of the project.region- Indicates the region where the project is present.