» yandex_resourcemanager_folder
Use this data source to get information about a Yandex Resource Manager Folder. For more information, see the official documentation.
# Get folder by ID
data "yandex_resourcemanager_folder" "my_folder_1" {
folder_id = "folder_id_number_1"
}
# Search by fields
data "yandex_resourcemanager_folder" "my_folder_2" {
folder_id = "folder_id_number_2"
}
output "my_folder_1_name" {
value = "${data.yandex_resourcemanager_folder.my_folder_1.name}"
}
output "my_folder_2_cloud_id" {
value = "${data.yandex_resourcemanager_folder.my_folder_2.cloud_id}"
}
» Argument Reference
The following arguments are supported:
NOTE: Either folder_id or name must be specified.
» Attributes Reference
The following attributes are exported:
-
description- Description of the folder. -
cloud_id- ID of the cloud that contains the folder. -
status- Current status of the folder. -
labels- A map of labels applied to this folder. -
created_at- Folder creation timestamp.