- HTTP request
 - Path parameters
 - Query parameters
 - Request body
 - Response body
 - Authorization scopes
 - Examples
 - Try it!
 
Creates a rule.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent | 
                
                   
 Required. The name of the parent resource where the rule will be created. Authorization requires the following IAM permission on the specified resource  
  | 
              
Query parameters
| Parameters | |
|---|---|
ruleId | 
                
                   
 The rule id to use for this repository.  | 
              
Request body
The request body contains an instance of Rule.
Response body
If successful, the response body contains a newly created instance of Rule.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.