org_cache_usage
Creates, updates, deletes, gets or lists an org_cache_usage resource.
Overview
| Name | org_cache_usage |
| Type | Resource |
| Id | github.actions.org_cache_usage |
Fields
The following fields are returned by SELECT queries:
- get_actions_cache_usage_by_repo_for_org
Response
| Name | Datatype | Description |
|---|---|---|
repository_cache_usages | array | |
total_count | integer |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_actions_cache_usage_by_repo_for_org | select | org | per_page, page | Lists repositories and their 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. OAuth tokens and personal access tokens (classic) need the read:org scope to use this endpoint. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
org | string | The organization name. The name is not case sensitive. |
page | integer | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
per_page | integer | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
SELECT examples
- get_actions_cache_usage_by_repo_for_org
Lists repositories and their 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.
OAuth tokens and personal access tokens (classic) need the read:org scope to use this endpoint.
SELECT
repository_cache_usages,
total_count
FROM github.actions.org_cache_usage
WHERE org = '{{ org }}' -- required
AND per_page = '{{ per_page }}'
AND page = '{{ page }}'
;