How to get the UUID of a document?

Oh, I see now that this is actually the ID of the data view/index pattern to which this document belongs.

(Now, the bonus question would be: if I knew a document _Id, could I programmatically get the data view that corresponds to its index? I know there could be an unlimited number of data views that point to the same document, but just finding the first one would be ideal.)