Class AuthzPolicy
AuthzPolicy
is a resource that allows to forward traffic to a callout backend designed to scan the traffic for
security purposes.
Implements
Inherited Members
Namespace: Google.Apis.NetworkSecurity.v1beta1.Data
Assembly: Google.Apis.NetworkSecurity.v1beta1.dll
Syntax
public class AuthzPolicy : IDirectResponseSchema
Properties
Action
Required. Can be one of ALLOW
, DENY
, CUSTOM
. When the action is CUSTOM
, customProvider
must be
specified. When the action is ALLOW
, only requests matching the policy will be allowed. When the action is
DENY
, only requests matching the policy will be denied. When a request arrives, the policies are evaluated
in the following order: 1. If there is a CUSTOM
policy that matches the request, the CUSTOM
policy is
evaluated using the custom authorization providers and the request is denied if the provider rejects the
request. 2. If there are any DENY
policies that match the request, the request is denied. 3. If there are
no ALLOW
policies for the resource or if any of the ALLOW
policies match the request, the request is
allowed. 4. Else the request is denied by default if none of the configured AuthzPolicies with ALLOW
action match the request.
Declaration
[JsonProperty("action")]
public virtual string Action { get; set; }
Property Value
Type | Description |
---|---|
string |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The timestamp when the resource was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
CustomProvider
Optional. Required if the action is CUSTOM
. Allows delegating authorization decisions to Cloud IAP or to
Service Extensions. One of cloudIap
or authzExtension
must be specified.
Declaration
[JsonProperty("customProvider")]
public virtual AuthzPolicyCustomProvider CustomProvider { get; set; }
Property Value
Type | Description |
---|---|
AuthzPolicyCustomProvider |
Description
Optional. A human-readable description of the resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpRules
Optional. A list of authorization HTTP rules to match against the incoming request. A policy match occurs when at least one HTTP rule matches the request or when no HTTP rules are specified in the policy. At least one HTTP Rule is required for Allow or Deny Action. Limited to 5 rules.
Declaration
[JsonProperty("httpRules")]
public virtual IList<AuthzPolicyAuthzRule> HttpRules { get; set; }
Property Value
Type | Description |
---|---|
IList<AuthzPolicyAuthzRule> |
Labels
Optional. Set of labels associated with the AuthzPolicy
resource. The format must comply with the
following requirements.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Name
Required. Identifier. Name of the AuthzPolicy
resource in the following format:
projects/{project}/locations/{location}/authzPolicies/{authz_policy}
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Target
Required. Specifies the set of resources to which this policy should be applied to.
Declaration
[JsonProperty("target")]
public virtual AuthzPolicyTarget Target { get; set; }
Property Value
Type | Description |
---|---|
AuthzPolicyTarget |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. The timestamp when the resource was updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |