Get the effective policy by type and scope. The effective policy is a combination of the policy provided for the given scope (if exist) and the effective policies of its parent scopes.
Authentication
AuthorizationBearer
Bearer authentication
Request
This endpoint expects an object.
workloadType
Specifies the Group, Version, and Kind (GVK) of the Kubernetes resource that defines the workload.
scope
Allowed values:
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.
Response
Policy found.
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.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
503
Service Unavailable Error