aws.iotsitewise.list_asset_relationships
Example SQL Queries
SELECT * FROMaws.iotsitewise.list_asset_relationshipsWHERE"asset_id" = 'VALUE'AND "traversal_type" = 'VALUE';Description
Retrieves a paginated list of asset relationships for an asset. You can use this operation to identify an asset's root asset and all associated assets between that asset and its root.
Table Definition
| Column Name | Column Data Type |
|---|---|
| asset_id Required Input Column The ID of the asset. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide. | VARCHAR |
| traversal_type Required Input Column The type of traversal to use to identify asset relationships. Choose the following option:
| VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| hierarchy_info The assets that are related through an asset hierarchy. This object is present if the relationshipType is HIERARCHY. | STRUCT( |
Show child fields
| |
| relationship_type The relationship type of the assets in this relationship. This value is one of the following:
| VARCHAR |