volume.go
func (c *Client) CreateSnapshot(dcid string, volid string, name string, description string) (*Snapshot, error) {
	path := volumePath(dcid, volid) + "/create-snapshot"
	data := url.Values{}
	data.Set("name", name)
	data.Add("description", description)

	ret := &Snapshot{}
	err := c.client.Post(path, data, ret, http.StatusAccepted)
	return ret, err
}
func (c *Client) CreateSnapshot(dcid string, volid string, name string, description string) (*Snapshot, error) {
	path := volumePath(dcid, volid) + "/create-snapshot"
	data := url.Values{}
	data.Set("name", name)
	data.Add("description", description)

	ret := &Snapshot{}
	err := c.client.Post(path, data, ret, http.StatusAccepted)
	return ret, err
}
//CreateSnapshot creates a volume snapshot