This API call retrieves the Log Monitoring status for the specified environment.
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.
/api/cluster/v2/logMonitoring/{environmentId}/status
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| environmentId | string | The ID of the environment. | path | required |
| Code | Type | Description |
|---|---|---|
| 200 | Log | Successful operation. |
| 404 | - | Failed. The requested resource doesn't exist. |
LogMonitoringStatus objectLog Monitoring status
| Element | Type | Description |
|---|---|---|
| enabled | boolean | Specifies whether Log Monitoring is enabled |
{"enabled": "true"}
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 -X GET "https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/status"-H "accept: application/json; charset=utf-8"
https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/status
{"enabled": "true"}
200