client/lxd_storage_volumes.go
func (r *ProtocolLXD) RenameStoragePoolVolume(pool string, volType string, name string, volume api.StorageVolumePost) error {
	if !r.HasExtension("storage_api_volume_rename") {
		return fmt.Errorf("The server is missing the required \"storage_api_volume_rename\" API extension")
	}
	path := fmt.Sprintf("/storage-pools/%s/volumes/%s/%s", url.QueryEscape(pool), url.QueryEscape(volType), url.QueryEscape(name))

	// Send the request
	_, _, err := r.query("POST", path, volume, "")
	if err != nil {
		return err
	}

	return nil
}
func (r *ProtocolLXD) RenameStoragePoolVolume(pool string, volType string, name string, volume api.StorageVolumePost) error {
	if !r.HasExtension("storage_api_volume_rename") {
		return fmt.Errorf("The server is missing the required \"storage_api_volume_rename\" API extension")
	}
	path := fmt.Sprintf("/storage-pools/%s/volumes/%s/%s", url.QueryEscape(pool), url.QueryEscape(volType), url.QueryEscape(name))

	// Send the request
	_, _, err := r.query("POST", path, volume, "")
	if err != nil {
		return err
	}

	return nil
}
func ( r * ProtocolLXD ) RenameStoragePoolVolume ( pool string , volType string , name string , volume api . StorageVolumePost ) error { if ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } path := fmt . Sprintf ( " " , url . QueryEscape ( pool ) , url . QueryEscape ( volType ) , url . QueryEscape ( name ) ) // Send the request _ , _ , err := r . query ( " " , path , volume , " " ) if err != nil { return err } return nil }
// RenameStoragePoolVolume renames a storage volume
RenameStoragePoolVolume renames a storage volume