getAsset Method

Gets a connect asset.

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: 13 June, 2024