Using Google Cloud Sql API, I want to restart my instance programmatically using google apps script. I have enabled the API in console. Through the GUI in the API DOC, I am able to restart it successfully nd I get a response, bt I dnt know how to programmatically restart as there is no sample request body or REQUEST body provided in the API REF Doc.
How to write the code in GAS to restart it programmatically? AM I missing any procedures here?
https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/instances/restart
Request body
Do not supply a request body with this method.
{
"kind": "sql#instancesRestart",
"operation": string
}
Plz help.
Thnks fr ur generous help in advance.