Method: connectorInstances.setLogsCollection

Full name: projects.locations.instances.integrations.connectors.connectorInstances.setLogsCollection

Enables or disables debug log collection for a connector instance. When enabled field is set to true, existing logs are cleared and a new collection period is started.

HTTP request


POST https://chronicle.africa-south1.rep.googleapis.com/v1beta/{name}:setLogsCollection

Path parameters

Parameters
name

string

Required. The connector instance identifier (from route)

Request body

The request body contains data with the following structure:

JSON representation
{
  "enabled": boolean
}
Fields
enabled

boolean

Required. Whether logs collection is enabled for the connector instance.

Response body

Response for connectorInstances.setLogsCollection.

If successful, the response body contains data with the following structure:

JSON representation
{
  "logEnableExpirationTime": string
}
Fields
logEnableExpirationTime

string (int64 format)

Output only. The connector instance logging enabled time until unix ms

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/chronicle
  • https://www.googleapis.com/auth/chronicle.readonly

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • chronicle.connectorInstances.get

For more information, see the IAM documentation.