AuthorizationPolicy is a resource that specifies how a server
should authorize incoming connections. This resource in itself
does not change the configuration unless it's attached to a
target https proxy or endpoint config selector resource.
Attributes
Name
Description
name
str
Required. Name of the AuthorizationPolicy resource. It
matches pattern
projects/{project}/locations/{location}/authorizationPolicies/.
description
str
Optional. Free-text description of the
resource.
create_time
google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the resource
was created.
update_time
google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the resource
was updated.
labels
MutableMapping[str, str]
Optional. Set of label tags associated with
the AuthorizationPolicy resource.
MutableSequence[google.cloud.network_security_v1beta1.types.AuthorizationPolicy.Rule]
Optional. List of rules to match. Note that at least one of
the rules must match in order for the action specified in
the 'action' field to be taken. A rule is a match if there
is a matching source and destination. If left blank, the
action specified in the action field will be applied on
every request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Class AuthorizationPolicy (0.9.18)\n\nVersion latestkeyboard_arrow_down\n\n- [0.9.18 (latest)](/python/docs/reference/networksecurity/latest/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.9.16](/python/docs/reference/networksecurity/0.9.16/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.8.0](/python/docs/reference/networksecurity/0.8.0/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.7.2](/python/docs/reference/networksecurity/0.7.2/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.6.1](/python/docs/reference/networksecurity/0.6.1/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.5.0](/python/docs/reference/networksecurity/0.5.0/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.4.2](/python/docs/reference/networksecurity/0.4.2/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.3.2](/python/docs/reference/networksecurity/0.3.2/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.2.0](/python/docs/reference/networksecurity/0.2.0/google.cloud.network_security_v1beta1.types.AuthorizationPolicy)\n- [0.1.5](/python/docs/reference/networksecurity/0.1.5/google.cloud.network_security_v1beta1.types.AuthorizationPolicy) \n\n AuthorizationPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nAuthorizationPolicy is a resource that specifies how a server\nshould authorize incoming connections. This resource in itself\ndoes not change the configuration unless it's attached to a\ntarget https proxy or endpoint config selector resource.\n\nClasses\n-------\n\n### Action\n\n Action(value)\n\nPossible values that define what action to take.\n\n### LabelsEntry\n\n LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message.\n\n### Rule\n\n Rule(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nSpecification of rules."]]