alicloud_rdc_organizations

This data source provides the Rdc Organizations of the current Alibaba Cloud user.

Example Usage

Basic Usage

variable "name" {
  default = "tf-testAccOrganizations-Organizations"
}

resource "alicloud_rdc_organization" "default" {
  organization_name = var.name
  source            = var.name
}
data "alicloud_rdc_organizations" "ids" {
  ids = [alicloud_rdc_organization.default.id]
}
output "rdc_organization_id_1" {
  value = data.alicloud_rdc_organizations.ids.id
}

data "alicloud_rdc_organizations" "nameRegex" {
  name_regex = "^my-Organization"
}
output "rdc_organization_id_2" {
  value = data.alicloud_rdc_organizations.nameRegex.id
}

Argument Reference

The following arguments are supported:

Argument Reference

The following attributes are exported in addition to the arguments listed above: