def list_instances(<EOL>deployment_name='<STR_LIT>',<EOL>cloud_name='<STR_LIT>',<EOL>view='<STR_LIT>',<EOL>):
api = get_api()<EOL>cloud = find_by_name(api.clouds, cloud_name)<EOL>filters = ['<STR_LIT>']<EOL>if deployment_name:<EOL><INDENT>deploy = find_by_name(api.deployments, deployment_name)<EOL>filters.append('<STR_LIT>' + deploy.href)<EOL><DEDENT>params = {'<STR_LIT>': filters, '<STR_LIT>': view}<EOL>return cloud.instances.index(params=params)<EOL>
Returns a list of instances from your account.

:param str deployment_name: If provided, only lists servers in the
    specified deployment.

:param str cloud_name: The friendly name for a RightScale-supported cloud.
    E.g. ``EC2 us-east-1``, ``us-west-2``, etc...

:param str view: The level of detail to request of RightScale.  Valid
    values are ``default``, ``extended``, ``full``, ``full_inputs_2_0``,
    ``tiny``.  Defaults to ``tiny``.