- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Full name: projects.locations.instances.logTypes.create
Create LogType.
HTTP request
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent resource where this log type will be created. Format: projects/{project}/locations/{region}/instances/{instance} | 
Query parameters
| Parameters | |
|---|---|
| logTypeId | 
 Required. The ID to use for the log type, which will become the final component of the log type's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. Once set, the ID cannot be changed. | 
Request body
The request body contains an instance of LogType.
Response body
If successful, the response body contains a newly created instance of LogType.
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
- chronicle.logTypes.create
For more information, see the IAM documentation.