Sources
Discover versions of an artifact in a source
FAILED_PRECONDITION when the artifact is outside allows or the grant
no longer reaches the source.
Scope: source:read
Authorization
bearerAuth AuthorizationBearer <token>
An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
source_id*source_id
The source_id path parameter.
Match
^src-[0-9a-z]+$Query Parameters
artifact?artifact
The artifact whose versions to list, as allows names it: a chart
name, name/provider, a name under the namespace. Empty for a git
source, whose versions are the repository's tags and branches.
Length
length <= 256page_size?page_size
The page_size query parameter.
Format
int32Range
0 <= value <= 200page_token?page_token
The page_token query parameter.
Response Body
application/json
curl -X GET "https://example.com/v1/sources/string/versions"{ "versions": [ { "name": "string", "kind": "KIND_UNSPECIFIED", "commit": "string", "created_at": "2023-01-15T01:30:15.01Z" } ], "next_page_token": "string", "refreshed_at": "2023-01-15T01:30:15.01Z", "stale_reason": "string"}