(Artifacts)
REST APIs for working with Registry artifacts
Configure a new remote source
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
RemoteSource req = new RemoteSource() {
Inputs = new List<RemoteDocument>() {
new RemoteDocument() {
RegistryUrl = "https://productive-swine.net",
},
},
Output = new RemoteDocument() {
RegistryUrl = "https://spiteful-apricot.info",
},
};
var res = await sdk.Artifacts.CreateRemoteSourceAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
RemoteSource |
✔️ |
The request object to use for the request. |
CreateRemoteSourceResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
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 Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
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 Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
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 Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
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 Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
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 Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Get remote sources attached to a particular namespace
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
ListRemoteSourcesRequest req = new ListRemoteSourcesRequest() {
NamespaceName = "<value>",
};
var res = await sdk.Artifacts.ListRemoteSourcesAsync(req);
// handle response
ListRemoteSourcesResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Add tags to an existing revision
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
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 Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
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 Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Set visibility of a namespace with an existing metadata entry
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
SetVisibilityRequest req = new SetVisibilityRequest() {
NamespaceName = "<value>",
};
var res = await sdk.Artifacts.SetVisibilityAsync(req);
// handle response
Parameter |
Type |
Required |
Description |
request |
SetVisibilityRequest |
✔️ |
The request object to use for the request. |
SetVisibilityResponse
Error Type |
Status Code |
Content Type |
SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |