getAsset Method

Gets a specific iTwin asset context.

getAsset(requestContext: AuthorizedClientRequestContext, queryOptions?: RequestQueryOptions): Promise<Asset>

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
queryOptions RequestQueryOptions Query options. Use the mapped EC property names in the query strings and not the TypeScript property names.

Returns - Promise<Asset>

Resolves to the found asset. Rejects if no assets, or more than one asset is found.

Defined in

Last Updated: 12 June, 2024