Hello all,
I need to be able to read and set values in the common instance metadata that is shared by all instances using the java API. I can already easily set this in a browser, but I need to be able to do it via API.
Would I need to download another API library for this, or can this be done with the API above?
Also, I've tried java code below, but it seems to clear all metadata entries and doesn't replace them with new ones. Also, there doesn't seem to be a way to read the metadata values from API.
Metadata m = new Metadata();
m.put("test", "1");
computeClient.projects().setCommonInstanceMetadata(projectID, m).buildHttpRequest();
Any help you can offer would be appreciated.