Skip to content
Docs Try Aspire

PolicyRuleV1 Properties

Class Properties 5 members
Represents a Kubernetes PolicyRule resource in API version v1.
ApiGroups Section titled ApiGroups List<string>
Gets the list of API groups that the policy rule applies to. Each entry in the list specifies the name of an API group to which the rule grants access. An empty list or null indicates that the rule applies to all API groups within the scope of the rule.
public List<string> ApiGroups { get; }
NonResourceUrLs Section titled NonResourceUrLs List<string>
Gets the list of URLs that do not correspond to standard Kubernetes resources. These URLs are typically used to define permissions or access control for specific non-resource requests within the cluster, such as custom API paths or administrative endpoints.
public List<string> NonResourceUrLs { get; }
ResourceNames Section titled ResourceNames List<string>
Gets the list of resource names that the policy rule applies to. Resource names are specific objects within a resource type, such as a specific ConfigMap or Pod. This property allows for fine-grained control of access to named resources.
public List<string> ResourceNames { get; }
Resources Section titled Resources List<string>
Gets the list of resource names that the policy applies to in a Kubernetes cluster. These resources generally refer to resource types such as pods, services, deployments, etc., and must align with the resource types defined in the Kubernetes API.
public List<string> Resources { get; }
Verbs Section titled Verbs List<string>
Gets the list of actions or operations that are allowed or applicable for this policy rule. This property defines the specific set of verbs such as "get", "list", "watch", "create", "delete", etc., that the policy rule applies to within the specified resources or URLs.
public List<string> Verbs { get; }