GitHub Actions 캐시에 대한 REST API 엔드포인트
REST API를 사용하여 .에서 GitHub Actions리포지토리에 대한 캐시와 상호 작용합니다.
GitHub Actions의 캐시 정보
REST API를 사용하여 리포지토리에 대한 캐시를 쿼리하고 관리할 수 있습니다 GitHub Actions. 명령줄에서 캐시를 GitHub CLI 관리하는 확장을 설치할 수도 있습니다. 자세한 내용은 종속성 캐싱 참조을(를) 참조하세요.
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.
"Get GitHub Actions cache usage for an enterprise"에 대한 세분화된 액세스 토큰
이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:
세분화된 토큰은 필수 권한 집합을 포함해야 합니다.:
- "Enterprise administration" enterprise permissions (write)
"Get GitHub Actions cache usage for an enterprise"에 대한 매개 변수
| 이름, 유형, 설명 |
|---|
accept string Setting to |
| 이름, 유형, 설명 |
|---|
enterprise string 필수The slug version of the enterprise name. |
"Get GitHub Actions cache usage for an enterprise"에 대한 HTTP 응답 상태 코드
| 상태 코드 | 설명 |
|---|---|
200 | OK |
"Get GitHub Actions cache usage for an enterprise"에 대한 코드 샘플
요청 예제
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2026-03-10" \
http(s)://HOSTNAME/api/v3/enterprises/ENTERPRISE/actions/cache/usageResponse
Status: 200{
"total_active_caches_size_in_bytes": 3344284,
"total_active_caches_count": 5
}Get GitHub Actions cache usage policy for an enterprise
Gets the GitHub Actions cache usage policy for an enterprise.
OAuth tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
"Get GitHub Actions cache usage policy for an enterprise"에 대한 세분화된 액세스 토큰
이 엔드포인트는 다음 세분화된 토큰 형식에서 작동합니다.:
세분화된 토큰은 필수 권한 집합을 포함해야 합니다.:
- "Enterprise administration" enterprise permissions (write)
"Get GitHub Actions cache usage policy for an enterprise"에 대한 매개 변수
| 이름, 유형, 설명 |
|---|
accept string Setting to |