List CERN Open Data Record Files
cern_opendata_list_filesList one record's files: its file indexes (groups of up to ~1,500 files) with their XRootD URI-list URLs, and per file the XRootD URI, HTTPS download URL, size, adler32 checksum and availability. Without index, returns the record's indexes and its regular files; with index, reads only that index and pages through its files. Files marked on demand sit on tape and must be requested on the record's portal page before download.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | A file index key from the indexes list, matched exactly (a .txt ending is read as .json). Omit to list the record's indexes and regular files. | |
| limit | No | Files per page, 1-500. | |
| recid | Yes | Record id: up to 12 digits (6004), optionally after an experiment prefix (atlas-160006); recid:6004 or a portal record URL also work. cern_opendata_search_records and cern_opendata_get_records return it. | |
| cursor | No | next_cursor from the previous page, unchanged, with the same recid and index. Omit for the first page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The page size (limit) applied to this call. | |
| error | No | Present when the call failed. Absent on success. | |
| files | No | This page of files: regular files in record scope, the index's files in index scope. | |
| recid | No | The record id. | |
| scope | No | record: the record's indexes and regular files; index: one index's files. | |
| shown | No | Number of items returned on this page. | |
| title | No | Record title. | |
| notice | No | Guidance for the next call: how to page on, why nothing matched and what to change, or a caveat about the results. | |
| indexes | No | Every file index in record scope; only the selected one in index scope. | |
| children | No | Set only for an umbrella record holding no files itself: the child recids whose files make it up. Empty otherwise. | |
| has_more | No | True when more files remain past this page. | |
| truncated | No | True when more results remain past this page; notice says how to reach them. | |
| portal_url | No | The record page, where on-demand (tape) files are requested. | |
| totalCount | No | Files in scope: regular files in record scope, index files in index scope. | |
| next_cursor | No | Pass as cursor, with the same recid and index, for the next page. | |
| availability | No | Record-level availability: online, partial, ondemand or requested. | |
| availability_details | No | File counts by availability state for the whole record. |