get_asset_property_value
async
¶
get_asset_property_value(
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
asset_id: Optional[ID] = None,
property_id: Optional[ID] = None,
property_alias: Optional[AssetPropertyAlias] = None,
) -> GetAssetPropertyValueResponse
Gets an asset property's current value. For more information, see Querying current values in the IoT SiteWise User Guide.
To identify an asset property, you must specify one of the following:
-
The
assetIdandpropertyIdof an asset property. -
A
propertyAlias, which is a data stream alias (for example,/company/windfarm/3/turbine/7/temperature). To define an asset property's alias, see UpdateAssetProperty.
Parameters:
-
asset_id(Optional[ID], default:None) –The ID of the asset, in UUID format.
-
property_id(Optional[ID], default:None) –The ID of the asset property, in UUID format.
-
property_alias(Optional[AssetPropertyAlias], default:None) –The alias that identifies the property, such as an OPC-UA server data stream path (for example,
/company/windfarm/3/turbine/7/temperature). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.
Raises:
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
ResourceNotFoundException–The requested resource can't be found.
-
ServiceUnavailableException–The requested service is unavailable.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.