- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
Creates an access policy, and returns a long running operation.
HTTP request
POST https://iam.googleapis.com/v3beta/{parent=organizations/*/locations/*}/accessPolicies
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource where this access policy will be created. Format: |
Query parameters
| Parameters | |
|---|---|
accessPolicyId |
Required. The ID to use for the access policy, which will become the final component of the access policy's resource name. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-.]{2,62}/. This value must be unique among all access policies with the same parent. |
validateOnly |
Optional. If set, validate the request and preview the creation, but do not actually post it. |
Request body
The request body contains an instance of AccessPolicy.
Response body
If successful, the response body contains a newly created instance of Operation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.