Project Access Tokens

Per-day request counts for one access token

Changed on

Returns a zero-filled daily series of request counts for a single token, oldest first, so the response always has exactly days entries.

days defaults to 30 and is capped at 60, matching how long per-day counts are retained.

A project access token may read only its own usage; asking for another token's returns 403. A platform token may read any token in the project.

get/projects/{id}/access-tokens/{tokenId}/usage

Request

  • Base URL: https://api.volcano.dev
  • URL: https://api.volcano.dev/projects/{id}/access-tokens/{tokenId}/usage
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring uuid required

Project ID

tokenIdstring uuid required

Project access token ID

Query parameters

daysinteger

Number of trailing days to return (1-60, default 30).

Response

Successful response

token_idstring uuid required
namestring required
token_prefixstring required

The token's display prefix, which identifies the credential when its name does not. Revoking frees a name, so a project that rotated ci-deploy has two entries here both called ci-deploy. Not usable as a credential.

daysinteger required

Number of daily entries returned, always equal to the requested window.

total_requestsinteger required

Changes