I wanted to get all diagnostic settings from azure under my subscription. I want all either enable or disable. I am using the below API but it doesn't help as it required workflow and I don't have workflows.
https://docs.microsoft.com/en-us/rest/api/monitor/diagnosticsettings/list
I modified it and used the below it returns nothing. as on azure I have a total of 8 settings and 1 is enabled and others are disabled.
https://management.azure.com/subscriptions/{subscriptionId}/providers/microsoft.insights/diagnosticSettings?api-version=2017-05-01-preview