(artifacts)
REST APIs for working with Registry artifacts
Configure a new remote source
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Shared\RemoteSource(
inputs: [
new Shared\RemoteDocument(
registryUrl: 'https://productive-swine.net',
),
],
output: new Shared\RemoteDocument(
registryUrl: 'https://spiteful-apricot.info',
),
);
$response = $sdk->artifacts->createRemoteSource(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
Parameter |
Type |
Required |
Description |
$request |
Shared\RemoteSource |
✔️ |
The request object to use for the request. |
?Operations\CreateRemoteSourceResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
Get blob for a particular digest
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Operations\GetBlobRequest(
digest: '<value>',
namespaceName: '<value>',
organizationSlug: '<value>',
workspaceSlug: '<value>',
);
$response = $sdk->artifacts->getBlob(
request: $request
);
if ($response->blob !== null) {
// handle response
}
?Operations\GetBlobResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
Get manifest for a particular reference
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Operations\GetManifestRequest(
namespaceName: '<value>',
organizationSlug: '<value>',
revisionReference: '<value>',
workspaceSlug: '<value>',
);
$response = $sdk->artifacts->getManifest(
request: $request
);
if ($response->manifest !== null) {
// handle response
}
?Operations\GetManifestResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
Each namespace contains many revisions.
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$response = $sdk->artifacts->getNamespaces(
);
if ($response->getNamespacesResponse !== null) {
// handle response
}
?Operations\GetNamespacesResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Operations\GetRevisionsRequest(
namespaceName: '<value>',
);
$response = $sdk->artifacts->getRevisions(
request: $request
);
if ($response->getRevisionsResponse !== null) {
// handle response
}
?Operations\GetRevisionsResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Operations\GetTagsRequest(
namespaceName: '<value>',
);
$response = $sdk->artifacts->getTags(
request: $request
);
if ($response->getTagsResponse !== null) {
// handle response
}
?Operations\GetTagsResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
Get remote sources attached to a particular namespace
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Operations\ListRemoteSourcesRequest(
namespaceName: '<value>',
);
$response = $sdk->artifacts->listRemoteSources(
request: $request
);
if ($response->remoteSource !== null) {
// handle response
}
?Operations\ListRemoteSourcesResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
Add tags to an existing revision
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Operations\PostTagsRequest(
namespaceName: '<value>',
);
$response = $sdk->artifacts->postTags(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\PostTagsResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
Get access token for communicating with OCI distribution endpoints
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Shared\PreflightRequest(
namespaceName: '<value>',
);
$response = $sdk->artifacts->preflight(
request: $request
);
if ($response->preflightToken !== null) {
// handle response
}
?Operations\PreflightResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |
Set visibility of a namespace with an existing metadata entry
declare(strict_types=1);
require 'vendor/autoload.php';
use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
$sdk = SpeakeasyClientSDK\SDK::builder()
->setSecurity(
new Shared\Security(
apiKey: '<YOUR_API_KEY_HERE>',
)
)
->build();
$request = new Operations\SetVisibilityRequest(
namespaceName: '<value>',
);
$response = $sdk->artifacts->setVisibility(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
?Operations\SetVisibilityResponse
Error Type |
Status Code |
Content Type |
Errorors\Error |
4XX |
application/json |
Errorors\SDKException |
5XX |
*/* |