(artifacts)
Get blob for a particular digest
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.artifacts.getBlob({
digest: "<value>",
namespaceName: "<value>",
organizationSlug: "<value>",
workspaceSlug: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.GetBlobResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Get manifest for a particular reference
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.artifacts.getManifest({
namespaceName: "<value>",
organizationSlug: "<value>",
revisionReference: "<value>",
workspaceSlug: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.GetManifestResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Each namespace contains many revisions.
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.artifacts.getNamespaces();
if (res.statusCode == 200) {
// handle response
}
}
run();
Parameter |
Type |
Required |
Description |
config |
AxiosRequestConfig |
➖ |
Available config options for making requests. |
Promise<operations.GetNamespacesResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.artifacts.getRevisions({
namespaceName: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.GetRevisionsResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.artifacts.getTags({
namespaceName: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.GetTagsResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Add tags to an existing revision
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.artifacts.postTags({
addTags: {
revisionDigest: "<value>",
tags: [
"<value>",
],
},
namespaceName: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.PostTagsResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |
Get access token for communicating with OCI distribution endpoints
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
async function run() {
const sdk = new Speakeasy({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const res = await sdk.artifacts.preflight({
namespaceName: "<value>",
});
if (res.statusCode == 200) {
// handle response
}
}
run();
Promise<operations.PreflightResponse>
Error Object |
Status Code |
Content Type |
errors.SDKError |
4xx-5xx |
/ |