Skip to Content
Xeonr Developer Docs
API SpecificationNamespaces

List Managed Product Grants

POST
/containers.api.v1.NamespaceService/ListManagedProductGrants

Lists the managed-product grants on namespace: those its owner team made with GrantManagedProduct (source STORED) and those a platform operator configured (source CONFIGURED, which only configuration can change). lapsed is set on a grant whose pinned owner team no longer owns the namespace; it grants nothing. A managed product's own service account may leave namespace empty to list every grant made to it.

Access: any role in the namespace, or a platform admin; a managed product sees only its own grants. Other callers get NotFound.

Authorization

BearerAuth
AuthorizationBearer <token>

A namespace-scoped API key (cpk_…) for machines, or a Xeonr Auth OIDC token for humans. The key's namespace and role are pinned server-side.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

namespace?string

Empty only for a managed product listing its own grants.

Lengthlength <= 64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://containers.xeonr.io/containers.api.v1.NamespaceService/ListManagedProductGrants" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "grants": [
    {
      "namespace": "string",
      "product": "string",
      "role": "ROLE_UNSPECIFIED",
      "ownerTeam": "string",
      "lapsed": true,
      "source": "SOURCE_UNSPECIFIED",
      "grantedBy": "string",
      "grantedAtUnix": "string",
      "updatedAtUnix": "string"
    }
  ]
}