Skip to main content
Version: Latest Version (2.9.1)

highbond_asset_record_relationship (Resource)

Schema

Required

field_nameString The field name of the ad hoc attribute type defining this relationship
label_field_nameString The field name of the label used in this relationship, as defined in the ad hoc attribute type
object_container_idString The ID of either the asset type of the target asset, or the record type of the target asset record
object_container_typeString The type of the target object's container; either asset_types or record_types
object_idString The ID of the target asset or asset record
object_typeString The type of the target object; either assets or records
record_idString The ID of the asset record
record_type_idString The ID of the asset record type

Optional

idString The ID of this resource.

Read-Only

nameString The display name of the label used in this relationship
object_nameString 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
}