code: def attach_disk(self, uuid, media):
          
          args = {
              'uuid': uuid,
              'media': media,
          }
          self._man_disk_action_chk.check(args)
  
          self._client.sync('kvm.attach_disk', args)
docs: Attach a disk to a machine
          :param uuid: uuid of the kvm container (same as the used in create)
          :param media: the media object to attach to the machine
                        media object is a dict of {url, and type} where type can be one of 'disk', or 'cdrom', or empty (default to disk)
                        examples: {'url': 'nbd+unix:///test?socket=/tmp/ndb.socket'}, {'type': 'cdrom': '/somefile.iso'}
          :return: