List the build cache entries of a CI runner pool
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/resources/cr-0123456789abcdef/cache?ref=refs%2Fheads%2Fmain';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/resources/cr-0123456789abcdef/cache?ref=refs%2Fheads%2Fmain' \ --header 'Authorization: Bearer <token>'Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Example
test-orgThe CI runner pool resource ID
Example
cr-0123456789abcdefQuery Parameters
Section titled “Query Parameters”Only the entries of this GitHub repository id.
Example
refs/heads/mainOnly the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
Opaque nextCursor from the previous page of the same filter.
Responses
Section titled “Responses”The entries
object
Size of every entry that matches the filter (partial when totalsComplete is false).
Number of entries that match the filter (partial when totalsComplete is false).
False when the count stopped at its time limit (about 10 seconds) on a very large cache; totalBytes and entryCount then cover only the part counted.
object
GitHub repository id.
Owner/name recorded for repoId, or null when none is recorded.
The git ref that saved the entry. A pull request saves to refs/pull/
The actions/cache key.
The cache version (a hash of the paths and compression the job used).
When the entry was saved. Entries expire 14 days after they are saved.
Opaque. Pass as cursor, with the same filter, for the next page; null on the last page.
Example
{ "entries": [ { "repoId": 123456, "repo": "acme/web", "ref": "refs/heads/main", "key": "node-cache-Linux-x64-npm-abc", "version": "a1b2c3", "sizeBytes": 104857600 } ]}The cursor is not valid for this filter
Cloud access required
Resource not found, the resource is not a CI runner pool, or the organisation does not have CI runners
RepoId is not a non-negative integer, or ref is not valid or is sent without repoId
The build cache service is unavailable
