Get Log Monitoring status

Retrieves the Log Monitoring status for the specified environment.

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 Description
200

Successful operation.

404

Failed. The requested resource doesn't exist.

Response body

The LogMonitoringStatus object

Log Monitoring status

Element Type Description
enabled boolean

Specifies whether Log Monitoring is enabled

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 Log Monitoring v2 is enabled in this environment.

Curl

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

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

Response body

{
  "enabled": "true"
}

Response code

200