List the rows of a table
Returns a page of one table of one luna, in rowid order. Each luna has its own tables, so you name the luna with key. An index shows its rows table alone.
/_luna/tenants/{tenant}/data/{type}/{table}AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
data:readtenantstringrequiredThe tenant, by its name.
typestringrequiredThe luna type, by its name.
tablestringrequiredThe table, by its name.
keystringrequiredThe luna's key as JSON, such as {"id":"a"}. For a type keyed by one field, the value of that field alone also works.
afterinteger<int64>The cursor of the last page, to read the next one.
limitinteger<int64>How many rows to return. 50 when left out.
A page of rows.
columnsTableColumn[]requiredThe table's columns, in the order the type declares them.
Show propertiesHide properties
TableColumnnamestringrequiredtypestringrequiredThe column's type: string, int, float, bool, timestamp, uuid, enum, json, bytes, blobRef or vector.
nullablebooleanrequiredWhether the column may hold null.
rowsTableRow[]requiredShow propertiesHide properties
TableRowrowidinteger<int64>requiredThe row's id within its table.
valuesobjectrequiredThe row's value for each column, by the column's name. Bytes are shown as {"$bytes": length} and a vector as {"$vector": dimensions}.
countinteger<int64>requiredHow many rows the table holds in all.
cursorinteger<int64> | nullThe rowid of the last row when there are more. Send it back as after. It is null on the last page.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.