Creates an access policy. This method fails if the organization already has an access policy. The long-running operation has a successful status after the access policy propagates to long-lasting storage. Syntactic and basic semantic errors are returned in metadata as a BadRequest proto.
HTTP request
POST https://accesscontextmanager.googleapis.com/v1/accessPolicies
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{ "name": string, "parent": string, "title": string, "scopes": [ string ], "etag": string }  | 
                
| Fields | |
|---|---|
name | 
                  
                     
 Output only. Identifier. Resource name of the   | 
                
parent | 
                  
                     
 Required. The parent of this   | 
                
title | 
                  
                     
 Required. Human readable title. Does not affect behavior.  | 
                
scopes[] | 
                  
                     
 The scopes of the  
 If no scopes are provided, then any resource within the organization can be restricted. Scopes cannot be modified after a policy is created. Policies can only have a single scope. Format: list of   | 
                
etag | 
                  
                     
 Output only. An opaque identifier for the current version of the   | 
                
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.