actions

Get GitHub Actions cache usage for an enterprise

Gets the total GitHub Actions cache usage for an enterprise. 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.

OAuth tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.

[!NOTE] The "Enterprise administration" fine-grained permission is not available to callers. To use this API, you must use an OAuth app token or a personal access token (classic).

get/enterprises/{enterprise}/actions/cache/usage

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/enterprises/{enterprise}/actions/cache/usage
  • Auth: none declared

Path parameters

enterprisestring required

The slug version of the enterprise name.

Response

Response

total_active_caches_countinteger required

The count of active caches across all repositories of an enterprise or an organization.

total_active_caches_size_in_bytesinteger required

The total size in bytes of all active cache items across all repositories of an enterprise or an organization.

Changes

No recorded changes to this operation across all 83 revisions of this API.