v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1363121226.6 KB
projects

Creates a new AuthorizationPolicy in a given project and location.

post/v1/{+parent}/authorizationPolicies

Path parameters

parentstring required

Required. The parent resource of the AuthorizationPolicy. Must be in the format projects/{project}/locations/{location}.

Query parameters

authorizationPolicyIdstring

Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".

Request body

labelsobject

Optional. Set of label tags associated with the AuthorizationPolicy resource.

createTimestring google-datetime

Output only. The timestamp when the resource was created.

descriptionstring

Optional. Free-text description of the resource.

namestring

Required. Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/.

action'ACTION_UNSPECIFIED' | 'ALLOW' | 'DENY'

Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".

updateTimestring google-datetime

Output only. The timestamp when the resource was updated.

Response

Successful response