Skip to content
DocsTry Aspire
DocsTry

PolicyRuleV1 Properties

ClassProperties5 members
Represents a Kubernetes PolicyRule resource in API version v1.
ApiGroupsSection titled ApiGroupsList<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; }
NonResourceUrLsSection titled NonResourceUrLsList<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; }
ResourceNamesSection titled ResourceNamesList<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; }
ResourcesSection titled ResourcesList<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; }
VerbsSection titled VerbsList<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; }