CatalogService.CreateArtifactStore
Create a ArtifactStore in the workspace from its complete Kubernetes spec. Select exactly one S3 or GCS storage backend. The probe checks the configured access.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/CreateArtifactStore
Request headers
| Header | Value and purpose |
|---|---|
Authorization | Use Bearer $PROKRUST_TOKEN for a Kubernetes caller authorized for this operation. Browser calls use the signed-in session. |
Content-Type | application/json selects ProtoJSON for this unary request. |
Connect-Protocol-Version | 1 selects version 1 of the Connect protocol. |
Request fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
name | string | Name to give the new Kubernetes object. Workspace setup resources use the fixed name default. |
spec | JSON object | Full CRD spec as a ProtoJSON object. Send the fields under spec in the Kubernetes manifest. Choose field names and allowed values from that kind’s CRD. Spec numbers must fit the exact integer range of a protobuf Struct (±9007199254740991). |
Example request
Set PROKRUST_URL to the installation’s HTTPS origin and PROKRUST_TOKEN to your caller token. Replace the sample values with values from your installation.
curl --fail-with-body --silent --show-error \
-H "Authorization: Bearer $PROKRUST_TOKEN" \
-H 'Content-Type: application/json' \
-H 'Connect-Protocol-Version: 1' \
"$PROKRUST_URL/prokrust.api.v1alpha1.CatalogService/CreateArtifactStore" \
--data-binary @- <<'JSON'
{
"namespace": "analytics",
"name": "default",
"spec": {
"storage": {
"backend": "S3",
"s3": {
"bucket": "analytics-artifacts",
"region": "us-east-1",
"prefix": "artifacts/",
"forcePathStyle": false,
"tls": {
"verify": true
},
"auth": {
"type": "Secret",
"secretRef": {
"name": "artifact-access",
"accessKeyIdKey": "AWS_ACCESS_KEY_ID",
"secretAccessKeyKey": "AWS_SECRET_ACCESS_KEY"
}
}
}
},
"publication": "ManifestLast",
"retentionPolicy": "Retain"
}
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
namespace | string | Kubernetes workspace namespace for the operation. Use the namespace in which the selected resource lives. |
name | string | Kubernetes metadata.name. Combine it with namespace and UID when acting on an existing object. |
uid | string | Kubernetes metadata.uid identifying this particular object. Read it from the resource before targeting an existing instance. |
resourceVersion | string | Opaque Kubernetes resource version. Copy the value from a current read. Preserve it as a string. |
generation | int64 | Kubernetes spec generation. Compare it with status.observedGeneration to check whether the controller processed this spec. |
spec | JSON object | Complete Kubernetes spec object for this resource kind. Use the corresponding CRD field reference. |
status | JSON object | Controller observations from the CRD status, when published. Compare observedGeneration with generation before interpreting conditions. |
labels | map from string to string | Kubernetes labels included in the resource projection. Use them to identify release or application ownership. |
annotations | map from string to string | Kubernetes annotation values included in the projection. Check the owning tool’s annotations before changing a managed object. |
creationTimestamp | string | Kubernetes creation time in RFC 3339 format. |
deletionTimestamp | string | Accepted deletion remains pending until the resource disappears. |
Example response
{
"namespace": "analytics",
"name": "default",
"uid": "47cc18d8-0dbf-51a3-bb16-0ca360064667",
"resourceVersion": "42",
"generation": "1",
"creationTimestamp": "2026-05-12T10:00:00Z",
"spec": {
"storage": {
"backend": "S3",
"s3": {
"bucket": "analytics-artifacts",
"region": "us-east-1",
"prefix": "artifacts/",
"forcePathStyle": false,
"tls": {
"verify": true
},
"auth": {
"type": "Secret",
"secretRef": {
"name": "artifact-access",
"accessKeyIdKey": "AWS_ACCESS_KEY_ID",
"secretAccessKeyKey": "AWS_SECRET_ACCESS_KEY"
}
}
}
},
"publication": "ManifestLast",
"retentionPolicy": "Retain"
}
}
Kubernetes reference
See the ArtifactStore reference for the resource configuration and controller observations.