---
title: "GET /asset-models/{assetModelId}"
method: GET
path: "/asset-models/{assetModelId}"
---

# GET /asset-models/{assetModelId}

`GET /asset-models/{assetModelId}`

Retrieves information about an asset model.

## Path parameters

- `assetModelId` string, required

## Query parameters

- `excludeProperties` boolean

## Response `200`

Success

- DescribeAssetModelResponse
  - `assetModelId` string, required — The ID of the asset model.
  - `assetModelArn` string, required — <p>The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a> of the asset model, which has the following format.</p> <p> <code>arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}</code> </p>
  - `assetModelName` string, required — The name of the asset model.
  - `assetModelDescription` string, required — The asset model's description.
  - `assetModelProperties` AssetModelProperty[], required — <p>The list of asset properties for the asset model.</p> <p>This object doesn't include properties that you define in composite models. You can find composite model properties in the <code>assetModelCompositeModels</code> object.</p>
    - `id` string — The ID of the asset model property.
    - `name` string, required — The name of the asset model property.
    - `dataType` 'STRING' | 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRUCT', required — The data type of the asset model property.
    - `dataTypeSpec` string — The data type of the structure for this property. This parameter exists on properties that have the <code>STRUCT</code> data type.
    - `unit` string — The unit of the asset model property, such as <code>Newtons</code> or <code>RPM</code>.
    - `type` object, required — The property type (see <code>PropertyType</code>).
      - `attribute` object — Specifies an asset attribute property. An attribute generally contains static information, such as the serial number of an <a href="https://en.wikipedia.org/wiki/Internet_of_things#Industrial_applications">IIoT</a> wind turbine.
        - `defaultValue` string — The default value of the asset model property attribute. All assets that you create from the asset model contain this attribute value. You can update an attribute's value after you create an asset. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/update-attribute-values.html">Updating attribute values</a> in the <i>IoT SiteWise User Guide</i>.
      - `measurement` object — Specifies an asset measurement property. A measurement represents a device's raw sensor data stream, such as timestamped temperature values or timestamped power values.
        - `processingConfig` object — The processing configuration for the given measurement property. You can configure measurements to be kept at the edge or forwarded to the Amazon Web Services Cloud. By default, measurements are forwarded to the cloud.
          - `forwardingConfig` object, required — The forwarding configuration for the given measurement property.
            - `state` 'DISABLED' | 'ENABLED', required — The forwarding state for the given property.
      - `transform` object — Specifies an asset transform property. A transform contains a mathematical expression that maps a property's data points from one form to another, such as a unit conversion from Celsius to Fahrenheit.
        - `expression` string, required — <p>The mathematical expression that defines the transformation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p>
        - `variables` ExpressionVariable[], required — The list of variables used in the expression.
          - `name` string, required — The friendly name of the variable to be used in the expression.
          - `value` object, required — The variable that identifies an asset property from which to use values.
            - `propertyId` string, required — The ID of the property to use as the variable. You can use the property <code>name</code> if it's from the same asset model.
            - `hierarchyId` string — <p>The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID.</p> <p>You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same <code>propertyId</code>. For example, you might have separately grouped assets that come from the same asset model. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset hierarchies</a> in the <i>IoT SiteWise User Guide</i>.</p>
        - `processingConfig` object — The processing configuration for the given transform property. You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed at the edge or in the cloud.
          - `computeLocation` 'EDGE' | 'CLOUD', required — The compute location for the given transform property.
          - `forwardingConfig` ForwardingConfig — The forwarding configuration for a given property.
            - `state` 'DISABLED' | 'ENABLED', required — The forwarding state for the given property.
      - `metric` object — Specifies an asset metric property. A metric contains a mathematical expression that uses aggregate functions to process all input data points over a time interval and output a single data point, such as to calculate the average hourly temperature.
        - `expression` string, required — <p>The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p>
        - `variables` ExpressionVariable[], required — The list of variables used in the expression.
          - `name` string, required — The friendly name of the variable to be used in the expression.
          - `value` object, required — The variable that identifies an asset property from which to use values.
            - `propertyId` string, required — The ID of the property to use as the variable. You can use the property <code>name</code> if it's from the same asset model.
            - `hierarchyId` string — <p>The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID.</p> <p>You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same <code>propertyId</code>. For example, you might have separately grouped assets that come from the same asset model. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset hierarchies</a> in the <i>IoT SiteWise User Guide</i>.</p>
        - `window` object, required — The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per <code>window</code>.
          - `tumbling` object — The tumbling time interval window.
            - `interval` string, required — <p>The time interval for the tumbling window. The interval time must be between 1 minute and 1 week.</p> <p>IoT SiteWise computes the <code>1w</code> interval the end of Sunday at midnight each week (UTC), the <code>1d</code> interval at the end of each day at midnight (UTC), the <code>1h</code> interval at the end of each hour, and so on. </p> <p>When IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. IoT SiteWise places the computed data point at the end of the interval.</p>
            - `offset` string — <p>The offset for the tumbling window. The <code>offset</code> parameter accepts the following:</p> <ul> <li> <p>The offset time.</p> <p>For example, if you specify <code>18h</code> for <code>offset</code> and <code>1d</code> for <code>interval</code>, IoT SiteWise aggregates data in one of the following ways:</p> <ul> <li> <p>If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.</p> </li> <li> <p>If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.</p> </li> </ul> </li> <li> <p>The ISO 8601 format.</p> <p>For example, if you specify <code>PT18H</code> for <code>offset</code> and <code>1d</code> for <code>interval</code>, IoT SiteWise aggregates data in one of the following ways:</p> <ul> <li> <p>If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.</p> </li> <li> <p>If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.</p> </li> </ul> </li> <li> <p>The 24-hour clock.</p> <p>For example, if you specify <code>00:03:00</code> for <code>offset</code>, <code>5m</code> for <code>interval</code>, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC). </p> </li> <li> <p>The offset time zone.</p> <p>For example, if you specify <code>2021-07-23T18:00-08</code> for <code>offset</code> and <code>1d</code> for <code>interval</code>, IoT SiteWise aggregates data in one of the following ways:</p> <ul> <li> <p>If you create the metric before or at 6 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.</p> </li> <li> <p>If you create the metric after 6 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.</p> </li> </ul> </li> </ul>
        - `processingConfig` object — The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.
          - `computeLocation` 'EDGE' | 'CLOUD', required — The compute location for the given metric property.
  - `assetModelHierarchies` AssetModelHierarchy[], required — A list of asset model hierarchies that each contain a <code>childAssetModelId</code> and a <code>hierarchyId</code> (named <code>id</code>). A hierarchy specifies allowed parent/child asset relationships for an asset model.
    - `id` string — The ID of the asset model hierarchy. This ID is a <code>hierarchyId</code>.
    - `name` string, required — The name of the asset model hierarchy that you specify by using the <a href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html">CreateAssetModel</a> or <a href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html">UpdateAssetModel</a> API operation.
    - `childAssetModelId` string, required — The ID of the asset model. All assets in this hierarchy must be instances of the <code>childAssetModelId</code> asset model.
  - `assetModelCompositeModels` AssetModelCompositeModel[] — The list of composite asset models for the asset model.
    - `name` string, required — The name of the composite model.
    - `description` string — The description of the composite model.
    - `type` string, required — The type of the composite model. For alarm composite models, this type is <code>AWS/ALARM</code>.
    - `properties` unknown
    - `id` string — The ID of the asset model composite model.
  - `assetModelCreationDate` string, date-time, required — The date the asset model was created, in Unix epoch time.
  - `assetModelLastUpdateDate` string, date-time, required — The date the asset model was last updated, in Unix epoch time.
  - `assetModelStatus` object, required — The current status of the asset model, which contains a state and any error message.
    - `state` 'CREATING' | 'ACTIVE' | 'UPDATING' | 'PROPAGATING' | 'DELETING' | 'FAILED', required — The current state of the asset model.
    - `error` object — Contains associated error information, if any.
      - `code` 'VALIDATION_ERROR' | 'INTERNAL_FAILURE', required — The error code.
      - `message` string, required — The error message.
      - `details` DetailedError[] — A list of detailed errors.
        - `code` 'INCOMPATIBLE_COMPUTE_LOCATION' | 'INCOMPATIBLE_FORWARDING_CONFIGURATION', required — The error code.
        - `message` string, required — The error message.

## Other responses

- `480` — InvalidRequestException
- `481` — ResourceNotFoundException
- `482` — InternalFailureException
- `483` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/iotsitewise.md) · [All operations](https://skmtc.net/aws/apis/iotsitewise/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iotsitewise/versions/d13e5d3e0a6f/schema)
