index For
Determines the shard index for the messages heading to the entity with the specified target identifier.
Return
the shard index
Parameters
entity Id
the identifier of the entity, to which the messages are dispatched
entity State Type
the type URL of the entity, to which the messages are dispatched