def node_get(self, arch=None, ver=None, flavor=None, count=<NUM_LIT:1>,<EOL>retry_count=<NUM_LIT:1>, retry_interval=<NUM_LIT:10>):
if self.api_key is None:<EOL><INDENT>raise exceptions.ApiKeyRequired<EOL><DEDENT>args = "<STR_LIT>" % self.api_key<EOL>if arch is not None:<EOL><INDENT>args += "<STR_LIT>" % arch<EOL><DEDENT>if ver is not None:<EOL><INDENT>args += "<STR_LIT>" % ver<EOL><DEDENT>if flavor is not None:<EOL><INDENT>args += "<STR_LIT>" % flavor<EOL><DEDENT>args += "<STR_LIT>" % count<EOL>resp, body = self.get('<STR_LIT>' % args)<EOL>if not body:<EOL><INDENT>for _ in range(retry_count):<EOL><INDENT>time.sleep(retry_interval)<EOL>resp, body = self.get('<STR_LIT>' % args)<EOL>if body:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>if not body:<EOL><INDENT>raise exceptions.NoInventory<EOL><DEDENT>requested_hosts = dict()<EOL>for host in self.full_inventory:<EOL><INDENT>for full_host in body['<STR_LIT>']:<EOL><INDENT>if host in full_host:<EOL><INDENT>requested_hosts[host] = self.full_inventory[host]<EOL><DEDENT><DEDENT><DEDENT>return requested_hosts, body['<STR_LIT>']<EOL>
Requests specified number of nodes with the provided parameters.

:param arch: Server architecture (ex: x86_64)
:param ver: CentOS version (ex: 7)
:param count: Number of servers (ex: 2)
:parma flavor: The flavor of machine to use (multi-arch only)
:param retry_count: Number of times to retry in case of failure (ex: 5)
:param retry_interval: Wait in seconds between each retry (ex: 30)
:return: [ [ requested_hosts ], ssid ]