- createRepository - Create a repository
- listRepositories - List repositories
- getRepository - Get a repository
- deleteRepository - Delete a repository
- listRepositoryImages - List repository images
- addRepositoryPermission - Add a repository permission
- removeRepositoryPermission - Remove a repository permission
- listRepositoryPermissions - List repository permissions
- clearRepositoryPermissions - Clear all repository permissions
- listRepositoryTags - List repository tags
- getRepositoryTag - Get a repository tag
- getRepositoryImage - Get a repository image
- deleteRepositoryImage - Delete a repository image
- getRoot - Check registry API version support
- headByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest - Check if a blob exists
- getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest - Download a blob
- deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest - Delete a blob
- getByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid - Get blob upload status
- deleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid - Cancel a blob upload
- updateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid - Upload a blob chunk
- replaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid - Complete a blob upload
- createByTeamSlugByProjectSlugByRepositoryNameBlobsUploads - Start a blob upload
- replaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference - Push an image manifest
- headByTeamSlugByProjectSlugByRepositoryNameManifestsByReference - Check if a manifest exists
- getByTeamSlugByProjectSlugByRepositoryNameManifestsByReference - Pull an image manifest
- deleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference - Delete an image manifest
- getByTeamSlugByProjectSlugByRepositoryNameTagsList - List image tags
Create a container registry repository for a project.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.createRepository({
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
requestBody: {
projectId: "<id>",
name: "nginx",
},
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrCreateRepository } from "@vercel/sdk/funcs/vcrCreateRepository.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrCreateRepository(vercel, {
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
requestBody: {
projectId: "<id>",
name: "nginx",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrCreateRepository failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.CreateRepositoryRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.CreateRepositoryResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
List container registry repositories for a project.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.listRepositories({
projectId: "<id>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrListRepositories } from "@vercel/sdk/funcs/vcrListRepositories.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrListRepositories(vercel, {
projectId: "<id>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrListRepositories failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ListRepositoriesRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.VcrRepositoryList>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Fetch a container registry repository for a project by ID or name.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.getRepository({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetRepository } from "@vercel/sdk/funcs/vcrGetRepository.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrGetRepository(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrGetRepository failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.GetRepositoryRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GetRepositoryResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Schedule a repository for deletion. The repository is marked so it disappears from list/get immediately; subscriber-vcr reclaims every image (manifests, blobs, tags and rows) and finally deletes the repository row asynchronously via the VcrRepositoryRemoved event.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.deleteRepository({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrDeleteRepository } from "@vercel/sdk/funcs/vcrDeleteRepository.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrDeleteRepository(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrDeleteRepository failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.DeleteRepositoryRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
List images for a container registry repository, including their tags.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.listRepositoryImages({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrListRepositoryImages } from "@vercel/sdk/funcs/vcrListRepositoryImages.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrListRepositoryImages(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrListRepositoryImages failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ListRepositoryImagesRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.VcrImageList>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Grant a team access to a VCR repository. Sharing applies to the whole repository.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.addRepositoryPermission({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
requestBody: {
teamId: "team_LLHUOMOoDlqOp8wPE4kFo9pE",
teamSlug: "my-team",
},
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrAddRepositoryPermission } from "@vercel/sdk/funcs/vcrAddRepositoryPermission.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrAddRepositoryPermission(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
requestBody: {
teamId: "team_LLHUOMOoDlqOp8wPE4kFo9pE",
teamSlug: "my-team",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrAddRepositoryPermission failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.AddRepositoryPermissionRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.AddRepositoryPermissionResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Revoke a team's access to a VCR repository.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.removeRepositoryPermission({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
requestBody: {
teamId: "team_LLHUOMOoDlqOp8wPE4kFo9pE",
teamSlug: "my-team",
},
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrRemoveRepositoryPermission } from "@vercel/sdk/funcs/vcrRemoveRepositoryPermission.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrRemoveRepositoryPermission(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
requestBody: {
teamId: "team_LLHUOMOoDlqOp8wPE4kFo9pE",
teamSlug: "my-team",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrRemoveRepositoryPermission failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.RemoveRepositoryPermissionRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
List the teams a VCR repository is shared with.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.listRepositoryPermissions({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrListRepositoryPermissions } from "@vercel/sdk/funcs/vcrListRepositoryPermissions.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrListRepositoryPermissions(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrListRepositoryPermissions failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ListRepositoryPermissionsRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.VcrRepositoryPermissionList>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Revoke every team's access to a VCR repository. Clearing an unshared repository is a no-op.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.clearRepositoryPermissions({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrClearRepositoryPermissions } from "@vercel/sdk/funcs/vcrClearRepositoryPermissions.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrClearRepositoryPermissions(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrClearRepositoryPermissions failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ClearRepositoryPermissionsRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
List a repository's tags.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.listRepositoryTags({
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrListRepositoryTags } from "@vercel/sdk/funcs/vcrListRepositoryTags.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrListRepositoryTags(vercel, {
projectId: "<id>",
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrListRepositoryTags failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ListRepositoryTagsRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListRepositoryTagsResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Fetch a single tag from a repository, including the backing image's metadata and VHS-readiness status.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.getRepositoryTag({
projectId: "<id>",
idOrName: "<value>",
tag: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetRepositoryTag } from "@vercel/sdk/funcs/vcrGetRepositoryTag.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrGetRepositoryTag(vercel, {
projectId: "<id>",
idOrName: "<value>",
tag: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrGetRepositoryTag failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.GetRepositoryTagRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GetRepositoryTagResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Fetch an individual image from a repository, including its tags and Dockerfile history entries with discriminated layer details for UI rendering. The image may be addressed by its internal id (image_...) or by its manifest digest (sha256:...).
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.getRepositoryImage({
projectId: "<id>",
idOrName: "<value>",
imageIdOrDigest: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetRepositoryImage } from "@vercel/sdk/funcs/vcrGetRepositoryImage.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrGetRepositoryImage(vercel, {
projectId: "<id>",
idOrName: "<value>",
imageIdOrDigest: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrGetRepositoryImage failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.GetRepositoryImageRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GetRepositoryImageResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
Schedule an image for deletion. The image is marked so it disappears from list/get immediately; subscriber-vcr reclaims the manifest, blobs, tags and row asynchronously via the VcrManifestRemoved event.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vcr.deleteRepositoryImage({
projectId: "<id>",
idOrName: "<value>",
imageId: "<id>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrDeleteRepositoryImage } from "@vercel/sdk/funcs/vcrDeleteRepositoryImage.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await vcrDeleteRepositoryImage(vercel, {
projectId: "<id>",
idOrName: "<value>",
imageId: "<id>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrDeleteRepositoryImage failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.DeleteRepositoryImageRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
GET /v2/ Docker Registry v2 version check. Returns a 401 challenge when no credentials are provided, prompting the Docker client to send auth. With valid credentials, returns 200 so the client can proceed.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.getRoot();
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetRoot } from "@vercel/sdk/funcs/vcrGetRoot.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrGetRoot(vercel);
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrGetRoot failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GetRootResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
HEAD /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Check whether a blob exists. Used by the Docker client before pushing a layer to avoid re-uploading content that already exists.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.headByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrHeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest } from "@vercel/sdk/funcs/vcrHeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrHeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrHeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
GET /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Fetch a blob by digest.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
await vercel.vcr.getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest } from "@vercel/sdk/funcs/vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
if (res.ok) {
const { value: result } = res;
} else {
console.log("vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<void>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
DELETE /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Blob deletion is intentionally not supported. Matches the behaviour of most public registries.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
await vercel.vcr.deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest } from "@vercel/sdk/funcs/vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
if (res.ok) {
const { value: result } = res;
} else {
console.log("vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<void>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
GET /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Query the status of an in-progress blob upload. Used by clients to resume a partial upload after an interruption.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.getByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid } from "@vercel/sdk/funcs/vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrGetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
DELETE /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Cancel an in-flight blob upload. Aborts the underlying S3 multipart upload (if one was started) and discards the session.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.deleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid } from "@vercel/sdk/funcs/vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrDeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
PATCH /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Upload a chunk of blob data. The request body is streamed directly to S3 as a multipart upload part while hashing incrementally. The client may call this multiple times for chunked uploads.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.updateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrUpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid } from "@vercel/sdk/funcs/vcrUpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrUpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrUpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
PUT /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid?digest= Complete the blob upload. This may include a final chunk of data in the request body (monolithic upload) or just finalize a previous chunked upload.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.replaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid } from "@vercel/sdk/funcs/vcrReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
uuid: "0123456789abcdef0123456789abcdef01234567",
digest: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
POST /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/[?mount=&from=] Initiate a blob upload. Returns a UUID in the Location header that the client uses for subsequent PATCH (chunk) and PUT (complete) requests.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.createByTeamSlugByProjectSlugByRepositoryNameBlobsUploads({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrCreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploads } from "@vercel/sdk/funcs/vcrCreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploads.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrCreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploads(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrCreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploads failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
PUT /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Upload an image manifest. The digest is computed from the body and returned in the Docker-Content-Digest header.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.replaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "latest",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference } from "@vercel/sdk/funcs/vcrReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "latest",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
HEAD /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Check whether a manifest exists. Used by Docker client during push to determine if a manifest (or config blob referenced by digest) is already present.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.headByTeamSlugByProjectSlugByRepositoryNameManifestsByReference({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "latest",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrHeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReference } from "@vercel/sdk/funcs/vcrHeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReference.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrHeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReference(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "latest",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrHeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReference failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
GET /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Fetch a manifest by tag or digest.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
await vercel.vcr.getByTeamSlugByProjectSlugByRepositoryNameManifestsByReference({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "latest",
});
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetByTeamSlugByProjectSlugByRepositoryNameManifestsByReference } from "@vercel/sdk/funcs/vcrGetByTeamSlugByProjectSlugByRepositoryNameManifestsByReference.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrGetByTeamSlugByProjectSlugByRepositoryNameManifestsByReference(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "latest",
});
if (res.ok) {
const { value: result } = res;
} else {
console.log("vcrGetByTeamSlugByProjectSlugByRepositoryNameManifestsByReference failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<void>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
DELETE /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Reference must be a digest.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.deleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrDeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference } from "@vercel/sdk/funcs/vcrDeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrDeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
reference: "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrDeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |
GET /v2/:teamSlug/:projectSlug/:repositoryName/tags/list List the tags in a repository.
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel();
async function run() {
const result = await vercel.vcr.getByTeamSlugByProjectSlugByRepositoryNameTagsList({
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
});
console.log(result);
}
run();The standalone function version of this method:
import { VercelCore } from "@vercel/sdk/core.js";
import { vcrGetByTeamSlugByProjectSlugByRepositoryNameTagsList } from "@vercel/sdk/funcs/vcrGetByTeamSlugByProjectSlugByRepositoryNameTagsList.js";
// Use `VercelCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const vercel = new VercelCore();
async function run() {
const res = await vcrGetByTeamSlugByProjectSlugByRepositoryNameTagsList(vercel, {
teamSlug: "team-slug",
projectSlug: "project-slug",
repositoryName: "nginx",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("vcrGetByTeamSlugByProjectSlugByRepositoryNameTagsList failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.GetByTeamSlugByProjectSlugByRepositoryNameTagsListRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponseBody>
| Error Type | Status Code | Content Type |
|---|---|---|
| models.SDKError | 4XX, 5XX | */* |