• Home
  • Dynatrace Managed
  • Cluster API
  • Cluster API v2
  • Log monitoring
  • Get Log Monitoring status

Get Log Monitoring status

This API call retrieves the Log Monitoring status for the specified environment.

Authentication

To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.

Endpoint

/api/cluster/v2/logMonitoring/{environmentId}/status

Parameters

ParameterTypeDescriptionInRequired
environmentIdstring

The ID of the environment.

pathrequired

Response

Response codes

CodeTypeDescription
200LogMonitoringStatus

Successful operation.

404

Failed. The requested resource doesn't exist.

Response body objects

The LogMonitoringStatus object

Log Monitoring status

ElementTypeDescription
enabledboolean

Specifies whether Log Monitoring is enabled

Response body JSON model

json
{ "enabled": "true" }

Example

In this example, you retrieve Log Monitoring configuration status for the environment: 19a963a7-b19f-4382-964a-4df674c8eb8e. In return, you receive a JSON response that indicating that the latest version of Dynatrace Log Monitoring is enabled in this environment.

Curl

bash
curl -X GET "https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/status" -H "accept: application/json; charset=utf-8"

Request URL

plaintext
https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/status

Response body

json
{ "enabled": "true" }

Response code

200