Method: logTypes.create

Full name: projects.locations.instances.logTypes.create

Create LogType.

HTTP request

POST https://chronicle.googleapis.com/v1alpha/{parent}/logTypes

Path parameters

Parameters
parent

string

Required. The parent resource where this log type will be created. Format: projects/{project}/locations/{region}/instances/{instance}

Query parameters

Parameters
logTypeId

string

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.