Skip to main content

cache_usage

Overview

Namecache_usage
TypeResource
Idgithub.actions.cache_usage

Fields

NameDatatypeDescription
active_caches_countintegerThe number of active caches in the repository.
active_caches_size_in_bytesintegerThe sum of the size in bytes of all the active cache items in the repository.
full_namestringThe repository owner and name for the cache usage being shown.

Methods

NameAccessible byRequired ParamsDescription
get_actions_cache_usageSELECTowner, repoGets GitHub Actions cache usage for a repository.
The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.
Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.
get_actions_cache_usage_for_orgSELECTorgGets the total GitHub Actions cache usage for an organization.
The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.
You must authenticate using an access token with the read:org scope to use this endpoint. GitHub Apps must have the organization_admistration:read permission to use this endpoint.