API for assigning disk to a machine