Being new to Golang (in fact started learning it just a couple of days back) I have a very basic question on creating a client code for consuming the SL APIs.
So my requirement is to call a createsnapshot SL API using Golang which will take snapshot of my endurance volume, provided that volume id is a input parameter to it. Can you please help me with a sample code for writing this client ?
I know how to do it in python, here is how I did it python, but now I want it in golang (change in req. you know ;) )
python code snippet:
client = SoftLayer.create_client_from_env("softlayer username", "softlayer apikey")
result = client['SoftLayer_Network_Storage'].createSnapshot("snapshot_name", "volume id")
thank you !