LicensingService.GetLicenseStatus
Read a published license report with the caller’s permission to get its fixed ConfigMap. Namespace scope reports that workspace. Installation scope requires read access in the system namespace.
LicensingService · Installed Web API. Use the HTTPS origin of your Prokrust installation and credentials authorized for this operation.
POST /prokrust.api.v1alpha1.LicensingService/GetLicenseStatus
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 |
|---|---|---|
scope | LicenseReportScope | Required; unspecified/unknown values are rejected. |
namespace | string | Required for namespace scope; must be empty for installation scope. |
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.LicensingService/GetLicenseStatus" \
--data-binary @- <<'JSON'
{
"scope": "LICENSE_REPORT_SCOPE_NAMESPACE",
"namespace": "analytics"
}
JSON
Response fields
| JSON field | Type | Meaning |
|---|---|---|
status | LicenseStatus | Public license status for the requested scope and collection frame. |
Example response
{
"status": {
"schemaVersion": 1,
"scope": "LICENSE_REPORT_SCOPE_NAMESPACE",
"namespace": "analytics",
"snapshotId": "59f75909-275c-54c4-8887-8e6bb6f0a3d9",
"generatedAtUnixSeconds": "1778580000",
"state": "LICENSE_REPORT_STATE_ACTIVE",
"collectionSuccess": true,
"admissionAllowed": true
}
}