Grant Managed Product
Grants product (a product ListManagedProducts returns) role in namespace: ROLE_OPERATOR (UNSPECIFIED means OPERATOR) or ROLE_VIEWER; ROLE_ADMIN is refused. The grant is pinned to the namespace's current owner team and lapses if ownership changes. Granting a product that already holds a grant replaces its role and re-pins it. A namespace with a managed policy (one a product created for itself) cannot be granted (FailedPrecondition), nor can an unowned one. Unknown products are InvalidArgument.
Access: admin role in the namespace (the owning team's admins, or an ADMIN-role namespace API key), or a platform admin. Other callers get NotFound.
Authorization
BearerAuth 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
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
1 <= length <= 641 <= length <= 64ROLE_OPERATOR or ROLE_VIEWER; UNSPECIFIED means OPERATOR. enum.defined_only = true
"ROLE_UNSPECIFIED" | "ROLE_VIEWER" | "ROLE_OPERATOR" | "ROLE_ADMIN"Response Body
application/json
application/json
curl -X POST "https://containers.xeonr.io/containers.api.v1.NamespaceService/GrantManagedProduct" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"grant": {
"namespace": "string",
"product": "string",
"role": "ROLE_UNSPECIFIED",
"ownerTeam": "string",
"lapsed": true,
"source": "SOURCE_UNSPECIFIED",
"grantedBy": "string",
"grantedAtUnix": "string",
"updatedAtUnix": "string"
}
}Get Namespace POST
Returns a namespace record. A namespace the caller cannot see is reported as NotFound. **Access:** any role in the namespace, or a platform admin.
Issue API Key POST
Issues a machine API key owned by this namespace with `role` (UNSPECIFIED means OPERATOR): a Xeonr Auth API key bound to the namespace, and with `workspace_ids` set, confined to those workspaces as well. `expires_at_unix` sets when it stops working (0: never). The plaintext (`xk_…`) is returned once and never again. A key issued before keys moved to Xeonr Auth (`cpk_…`) keeps working unchanged. Keys never carry platform-admin rights. **Access:** admin role in the namespace (the owning team's admins, or an ADMIN-role namespace API key), or a platform admin. Other callers get NotFound.