public void attachDiskAsync(final String vmId,VmDiskOperation vmDiskOperation,final FutureCallback<Task> responseCallback) throws IOException {
  String path=String.format("%s/%s/attach_disk",getBasePath(),vmId);
  createObjectAsync(path,serializeObjectAsJson(vmDiskOperation),responseCallback);
}

public void attachDiskAsync ( final String vmId , VmDiskOperation vmDiskOperation , final FutureCallback < Task > responseCallback ) throws IOException { String path = String . format ( "%s/%s/attach_disk" , getBasePath ( ) , vmId ) ; createObjectAsync ( path , serializeObjectAsJson ( vmDiskOperation ) , responseCallback ) ; }
attaches a persistent disk to specified vm .
