highbond_asset_record_relationship (Resource)
Schema
Required
field_name | String | The field name of the ad hoc attribute type defining this relationship |
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 type of the target object's container; either asset_types or record_types |
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 |
record_id | String | The ID of the asset record |
record_type_id | String | The ID of the asset record type |
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_record_relationship" "main" {
record_type_id = highbond_asset_record_type.main.id
record_id = highbond_asset_record.main.id
field_name = highbond_attribute_type.adhoc.field_name
object_id = highbond_asset.main.id
object_type = "assets"
object_container_id = highbond_asset_type.main.id
object_container_type = "asset_types"
label_field_name = highbond_attribute_type.adhoc.type_options.0.labels.0.field_name
}