highbond_govmap_organization_unit (Resource)
Schema
Required
group_type_id | String | The group type id of Group |
name | String | The Name of Group |
Optional
country_id | String | The Country Id of Group |
force_updates | Boolean | Allows overriding top-level 'create_only' option. |
id | String | The ID of this resource. |
parent_group_id | String | The Parent Group ID is optional only when creating the first group (Note: Only one group per organization can be created without Parent Group Id). However, for all other group creations, it is a required field. |
Example Usage
resource "highbond_govmap_organization_unit_type" "main" {
name = "Sample Group"
}
// Parent group
resource "highbond_govmap_organization_unit" "parent" {
name = "Group Name"
group_type_id = highbond_govmap_organization_unit_type.main.id
country_id = "1"
}
resource "highbond_govmap_organization_unit" "main" {
name = "Group Name"
parent_group_id = highbond_govmap_organization_unit.parent.id // The Parent Group ID is optional only when creating the first group (Note: Only one group per organization can be created without Parent Group Id). However, for all other group creations, it is a required field.
group_type_id = highbond_govmap_organization_unit_type.main.id
country_id = "1"
}