Skip to main content

tags

Creates, updates, deletes, gets or lists a tags resource.

Overview

Nametags
TypeResource
Idvercel.vcr.tags

Fields

The following fields are returned by SELECT queries:

A tag pointing at an image in a Vercel Container Registry repository, enriched with the backing image's metadata and VHS-readiness status.

NameDatatypeDescription
image_idstringInternal identifier of the image the tag points at. (example: img_a1b2c3d4e5f6) (wire: imageId)
archstringCPU architecture the manifest targets. Only present for single-platform manifests. (example: amd64)
created_atstringISO 8601 timestamp of when the tag was created. (example: 2026-06-30T10:00:00.000Z) (wire: createdAt)
kindstringWhether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. (attestation, index, manifest)
manifest_digeststringSHA-256 digest of the image manifest the tag points at. (example: sha256:2c4e8f3a1b9d0e5c7a6f4b2d8e1c9a0b3d5f7e9c1a2b4d6f8e0c2a4b6d8f0e2c) (wire: manifestDigest)
platformstringOperating system the manifest targets. Only present for single-platform manifests. (example: linux)
pushed_bystringIdentifier of the actor that pushed the image. (wire: pushedBy)
size_in_bytesnumberTotal size in bytes of the image's resources (manifest, config and layer blobs) stored by the registry. (wire: sizeInBytes)
statusstringVHS-readiness status, or null for a multi-platform index. (preparing, ready, unoptimized, )
tagstringThe tag name. (example: latest)
updated_atstringISO 8601 timestamp of when the tag was last updated. (example: 2026-06-30T10:00:00.000Z) (wire: updatedAt)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject_id, id_or_name, tagteam_id, slugFetch a single tag from a repository, including the backing image's metadata and VHS-readiness status.
listselectproject_id, id_or_namelimit, cursor, sort_by, sort_order, team_id, slugList a repository's tags.

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.

NameDatatypeDescription
id_or_namestring
project_idstringProject ID. Missing or empty values return HTTP 400. (wire: projectId)
tagstring
cursorstring
limitinteger
slugstringThe Team slug to perform the request on behalf of.
sort_bystringField to sort the non-pinned tags by. (wire: sortBy)
sort_orderstringSort direction. Defaults to desc. (wire: sortOrder)
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Fetch a single tag from a repository, including the backing image's metadata and VHS-readiness status.

SELECT
image_id,
arch,
created_at,
kind,
manifest_digest,
platform,
pushed_by,
size_in_bytes,
status,
tag,
updated_at
FROM vercel.vcr.tags
WHERE project_id = '{{ project_id }}' -- required
AND id_or_name = '{{ id_or_name }}' -- required
AND tag = '{{ tag }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;