Package lib :: Package cuckoo :: Package core :: Module database :: Class Machine
[hide private]
[frames] | no frames]

Class Machine

source code

declarative_base() --+
                     |
                    Machine

Configured virtual machines to be used as guests.

Instance Methods [hide private]
 
__repr__(self) source code
 
to_dict(self)
Converts object to dict.
source code
 
to_json(self)
Converts object to JSON.
source code
 
is_analysis(self)
Is this an analysis machine? Generally speaking all machines are analysis machines, however, this is not the case for service VMs.
source code
 
__init__(self, name, label, ip, platform, options, interface, snapshot, resultserver_ip, resultserver_port) source code
Class Variables [hide private]
  __tablename__ = "machines"
  id = Column(Integer(), primary_key= True)
  name = Column(String(255), nullable= False)
  label = Column(String(255), nullable= False)
  ip = Column(String(255), nullable= False)
  platform = Column(String(255), nullable= False)
  tags = relationship("Tag", secondary= machines_tags, single_pa...
  options = Column(String(255), nullable= True)
  interface = Column(String(255), nullable= True)
  snapshot = Column(String(255), nullable= True)
  locked = Column(Boolean(), nullable= False, default= False)
  locked_changed_on = Column(DateTime(timezone= False), nullable...
  status = Column(String(255), nullable= True)
  status_changed_on = Column(DateTime(timezone= False), nullable...
  resultserver_ip = Column(String(255), nullable= False)
  resultserver_port = Column(String(255), nullable= False)
Method Details [hide private]

to_dict(self)

source code 

Converts object to dict.

Returns:
dict

to_json(self)

source code 

Converts object to JSON.

Returns:
JSON data

is_analysis(self)

source code 

Is this an analysis machine? Generally speaking all machines are analysis machines, however, this is not the case for service VMs. Please refer to the services auxiliary module.


Class Variable Details [hide private]

tags

Value:
relationship("Tag", secondary= machines_tags, single_parent= True, bac\
kref= "machine")

locked_changed_on

Value:
Column(DateTime(timezone= False), nullable= True)

status_changed_on

Value:
Column(DateTime(timezone= False), nullable= True)