Get a policy. [experimental]
Get a policy. [experimental]
Retrieve policy details by id, including both the declared rules and the effective rules.
Authentication
AuthorizationBearer
Bearer authentication
Path parameters
PolicyId
The unique identifier for the policy.
Response
The requested policy.
workloadType
Specifies the Group, Version, and Kind (GVK) of the Kubernetes resource that defines the workload.
scope
Allowed values:
id
The unique identifier for the policy.
createdBy
Identifier of the user who created the policy.
createdAt
The timestamp for when the policy was created.
updatedBy
Identifier of the user who last updated the policy.
updatedAt
The timestamp for when the policy was last updated.
description
A description of the policy.
clusterId
The id of the cluster the policy applies to. Required when the scope is cluster.
departmentId
The id of the department the policy applies to. Required when the scope is department.
projectId
The id of the project the policy applies to. Required when the scope is project.
rules
The rules declared on this policy. Each rule targets a field in the workload spec and constrains its allowed values through its enforcements.
effectiveRules
The merged rule set in effect for this policy, including rules inherited from broader scopes (cluster, then department, then project). Each entry adds the sourceOfRule indicating where the rule was defined. Returned in responses only; not accepted in requests.
status
Configuration issues detected by the server for this policy. Returned in responses only; not accepted in requests.
breakdown
The detailed breakdown, keyed into per-field variations and per-spec-selector details.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
503
Service Unavailable Error