get Method

Get the named Versions of an iModel. Returned Versions are ordered from the latest ChangeSet to the oldest.

get(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, query: VersionQuery = new VersionQuery()): Promise<Version[]>

throws WsgError with WSStatus.InstanceNotFound if InstanceIdQuery.byId is used and a Version with the specified id could not be found.

throws Common iModelHub errors

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context.
iModelId GuidString Id of the iModel. See HubIModel.
query VersionQuery Optional query object to filter the queried Versions or select different data from them.

Returns - Versions that match the query.

Defined in

Last Updated: 13 October, 2019