cache_usage
Overview
Name | cache_usage |
Type | Resource |
Id | github.actions.cache_usage |
Fields
Name | Datatype | Description |
---|---|---|
active_caches_count | integer | The number of active caches in the repository. |
active_caches_size_in_bytes | integer | The sum of the size in bytes of all the active cache items in the repository. |
full_name | string | The repository owner and name for the cache usage being shown. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_actions_cache_usage | SELECT | owner, repo | Gets 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_org | SELECT | org | Gets 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. |