Hi,
Consider following scenario.
I have one Linux VM and having one data disk. I wanted to take application consistent snapshot of the disk. I am using disk’s createsnapshot api and passing guest-flush flag as true.
- When I deployed the custom script on the Linux VM, the create snapshot is working as expected.
But when there is an error in the custom script that are deployed on the Linux VM and calling createsnapshot api with guest-flush as true. It should return appropriate error message. But create snapshot api return 200 and when I check for the snapshot using snapshot’s get call I am getting ‘snapshot’ not found error.
Instead I want the exact error like : 'error in the custom scripts that are deployed ', from the GCP’s createsnapshot API.
I am using Nodejs for this application.
Can someone help me on How can I get the appropriate error message from GCP API.