def list_resources(self, resource_type=None, depth=<NUM_LIT:1>):
if resource_type is not None:<EOL><INDENT>response = self._perform_request(<EOL>'<STR_LIT>' % (resource_type, str(depth)))<EOL><DEDENT>else:<EOL><INDENT>response = self._perform_request(<EOL>'<STR_LIT>' + str(depth))<EOL><DEDENT>return response<EOL>
Retrieves a list of all resources.

:param      resource_type: The resource type: datacenter, image,
                           snapshot or ipblock. Default is None,
                           i.e., all resources are listed.
:type       resource_type: ``str``

:param      depth: The depth of the response data.
:type       depth: ``int``