highbond_asset_relationship (Resource)
Schema
Required
| asset_id | String | The ID of the asset |
| asset_type_id | String | The ID of the asset type |
| field_name | String | The field name of the label used in this relationship, as defined in the ad hoc attribute type |
| label_field_name | String | The field name of the label used in this relationship, as defined in the ad hoc attribute type |
| object_container_id | String | The ID of either the asset type of the target asset, or the record type of the target asset record |
| object_container_type | String | The ID of either the asset type of the target asset, or the record type of the target asset record |
| object_id | String | The ID of the target asset or asset record |
| object_type | String | The type of the target object; either assets or records |
Optional
| id | String | The ID of this resource. |
Read-Only
| name | String | The display name of the label used in this relationship |
| object_name | String | The name of the target asset or asset record |
Example Usage
resource "highbond_asset_relationship" "main" {
asset_id = highbond_asset.main.id
asset_type_id = highbond_asset_type.main.id
field_name = highbond_attribute_type.adhoc.field_name
object_id = highbond_asset_record.main.id
object_type = "records"
object_container_id = highbond_asset_record_type.main.id
object_container_type = "record_types"
label_field_name = highbond_attribute_type.adhoc.type_options.0.labels.0.field_name
}
