1

Anyone can help me how to enable monitoring in google cloud through restapi.? just like in gcloud sdk

gcloud services enable monitoring

while creating a dashboard, able to see some metrics through rest api but not enable monitoring

1 Answers1

0

Certain Google APIs are not publically accessible. As per the docs, Enabling the Monitoring API can be done only via Cloud Console or Cloud SDK. Only after enabling it, you can interact with it either directly or using client libraries. But it's not possible to enable this API via direct call to Google API.

mario
  • 525
  • 3
  • 8
  • Hello @sumitmadan and welcome to ServerFault! Please remember to [react to answers for your questions](https://stackoverflow.com/help/someone-answers). That way we know if the answers were helpful and other community members could also benefit from them. Try to [accept answer](https://stackoverflow.com/help/accepted-answer) that is the final solution for your issue, upvote answers that are helpful and comment on those which could be improved or require additional attention. Enjoy your stay! – Wytrzymały Wiktor Jul 07 '21 at 12:04