Get Log Monitoring status
This page will soon be available only on the dedicated Dynatrace Managed Documentation site. Update your bookmarks.
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
Parameter | Type | Description | In | Required |
---|---|---|---|---|
environmentId | string | The ID of the environment. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | LogMonitoringStatus | Successful operation. |
404 | - | Failed. The requested resource doesn't exist. |
Response body objects
The LogMonitoringStatus
object
Log Monitoring status
Element | Type | Description |
---|---|---|
enabled | boolean | Specifies whether Log Monitoring is enabled |
Response body JSON model
1{2 "enabled": "true"3}
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
1curl -X GET "https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/status"2 -H "accept: application/json; charset=utf-8"
Request URL
1https://myManaged.cluster.com/api/cluster/v2/logMonitoring/19a963a7-b19f-4382-964a-4df674c8eb8e/status
Response body
1{2 "enabled": "true"3}
Response code
200