getSASToken Method

Get event SAS Token. Used to authenticate for EventHandler.getEvent.

getSASToken(requestContext: AuthorizedClientRequestContext, iModelId: string): Promise<EventSAS>

throws Common iModelHub errors

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
iModelId string Id of the iModel. See HubIModel.

Returns - Promise<EventSAS>

SAS Token to connect to the topic.

Defined in

Last Updated: 12 June, 2024