CatalogService.GetNamespaceSetup
Check the caller’s permissions on workspace setup resources and discover the installed policy defaults when available. The example shows the access-review fields.
CatalogService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.CatalogService/GetNamespaceSetup
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. |
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/GetNamespaceSetup" \
--data-binary @- <<'JSON'
{
"namespace": "analytics"
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
artifactStore | SetupResourceCapabilities | Caller capabilities on the workspace ArtifactStore named default. |
prokrustPolicy | SetupResourceCapabilities | Caller capabilities on the workspace ProkrustPolicy named default. |
installedPolicyDefaults | JSON object | Caller-readable existing policy or installer-owned immutable public template. |
defaultPolicyAvailable | bool | True when installedPolicyDefaults contains a policy spec the caller can inspect. |
guidance | string | Next setup action based on resources, permissions, and the availability of defaults. |
policyDefaultsForbidden | bool | True when Kubernetes denied the read needed to discover policy defaults. |
ballistaCluster | SetupResourceCapabilities | Caller capabilities on the workspace BallistaCluster named default. |
Example response
{
"artifactStore": {
"known": true,
"get": true
},
"prokrustPolicy": {
"known": true,
"get": true
},
"ballistaCluster": {
"known": true,
"get": true
}
}