* @param volumeId
* the ID of the volume.
* @return the storage pool for the volume.
*/
public StoragePoolRestRep getByVolume(URI volumeId) {
RelatedStoragePool response = client.get(RelatedStoragePool.class, PathConstants.BLOCK_VOLUMES_URL
+ "/{volumeId}/storage-pool", volumeId);
if (response.getStoragePool() != null) {
return get(response.getStoragePool());
}
else {
return null;
}
}