Admiral

Sources

Discover versions of an artifact in a source

GET
/v1/sources/{source_id}/versions

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.

Lengthlength <= 256
page_size?page_size

The page_size query parameter.

Formatint32
Range0 <= value <= 200
page_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"}