(Artifacts)
REST APIs for working with Registry artifacts
Get blob for a particular digest
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetBlobRequest req = new GetBlobRequest() {
Digest = "<value>",
NamespaceName = "<value>",
OrganizationSlug = "<value>",
WorkspaceSlug = "<value>",
};
var res = await sdk.Artifacts.GetBlobAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
GetBlobRequest |
✔️ |
The request object to use for the request. |
GetBlobResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |
Get manifest for a particular reference
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetManifestRequest req = new GetManifestRequest() {
NamespaceName = "<value>",
OrganizationSlug = "<value>",
RevisionReference = "<value>",
WorkspaceSlug = "<value>",
};
var res = await sdk.Artifacts.GetManifestAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
GetManifestRequest |
✔️ |
The request object to use for the request. |
GetManifestResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |
Each namespace contains many revisions.
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.Artifacts.GetNamespacesAsync();
// handle response
Models.Operations.GetNamespacesResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetOASSummaryRequest req = new GetOASSummaryRequest() {
NamespaceName = "<value>",
RevisionReference = "<value>",
};
var res = await sdk.Artifacts.GetOASSummaryAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
GetOASSummaryRequest |
✔️ |
The request object to use for the request. |
GetOASSummaryResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetRevisionsRequest req = new GetRevisionsRequest() {
NamespaceName = "<value>",
};
var res = await sdk.Artifacts.GetRevisionsAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
GetRevisionsRequest |
✔️ |
The request object to use for the request. |
Models.Operations.GetRevisionsResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetTagsRequest req = new GetTagsRequest() {
NamespaceName = "<value>",
};
var res = await sdk.Artifacts.GetTagsAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
GetTagsRequest |
✔️ |
The request object to use for the request. |
Models.Operations.GetTagsResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |
Add tags to an existing revision
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
PostTagsRequest req = new PostTagsRequest() {
NamespaceName = "<value>",
};
var res = await sdk.Artifacts.PostTagsAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
PostTagsRequest |
✔️ |
The request object to use for the request. |
PostTagsResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |
Get access token for communicating with OCI distribution endpoints
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
PreflightRequest req = new PreflightRequest() {
NamespaceName = "<value>",
};
var res = await sdk.Artifacts.PreflightAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
PreflightRequest |
✔️ |
The request object to use for the request. |
PreflightResponse
Error Object |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.SDKException |
4xx-5xx |
/ |