Skip to navigation

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.

View as Markdown

Authentication

AuthorizationBearer
Bearer authentication

Request

This endpoint expects an object.
workloadTypeobjectRequired

Specifies the Group, Version, and Kind (GVK) of the Kubernetes resource that defines the workload.

scopeenumRequired
Allowed values:
clusterIdstring or nullOptionalformat: "uuid"
The id of the cluster the policy applies to. Required when the scope is cluster.
departmentIdstring or nullOptionalformat: ".*">=1 character
The id of the department the policy applies to. Required when the scope is department.
projectIdstring or nullOptionalformat: ".*"
The id of the project the policy applies to. Required when the scope is project.

Response

Policy found.
effectiveRuleslist of objectsOptional

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