def cli_get_account_listing(context):
limit = context.query.get('<STR_LIT>')<EOL>delimiter = context.query.get('<STR_LIT>')<EOL>prefix = context.query.get('<STR_LIT>')<EOL>marker = context.query.get('<STR_LIT>')<EOL>end_marker = context.query.get('<STR_LIT>')<EOL>if context.raw:<EOL><INDENT>with context.client_manager.with_client() as client:<EOL><INDENT>status, reason, headers, contents = client.get_account(<EOL>decode_json=False, headers=context.headers, limit=limit,<EOL>marker=marker, end_marker=end_marker, query=context.query,<EOL>cdn=context.cdn)<EOL>if hasattr(contents, '<STR_LIT>'):<EOL><INDENT>contents = contents.read()<EOL><DEDENT><DEDENT>if status // <NUM_LIT:100> != <NUM_LIT:2>:<EOL><INDENT>if status == <NUM_LIT> and context.ignore_404:<EOL><INDENT>return<EOL><DEDENT>raise ReturnCode('<STR_LIT>' % (status, reason))<EOL><DEDENT>with context.io_manager.with_stdout() as fp:<EOL><INDENT>if context.output_headers:<EOL><INDENT>context.write_headers(<EOL>fp, headers, context.muted_account_headers)<EOL><DEDENT>fp.write(contents)<EOL>fp.flush()<EOL><DEDENT>return<EOL><DEDENT>with context.client_manager.with_client() as client:<EOL><INDENT>status, reason, headers, contents = client.get_account(<EOL>headers=context.headers, limit=limit, marker=marker,<EOL>end_marker=end_marker, query=context.query, cdn=context.cdn)<EOL>if status // <NUM_LIT:100> != <NUM_LIT:2>:<EOL><INDENT>if status == <NUM_LIT> and context.ignore_404:<EOL><INDENT>return<EOL><DEDENT>if hasattr(contents, '<STR_LIT>'):<EOL><INDENT>contents.read()<EOL><DEDENT>raise ReturnCode('<STR_LIT>' % (status, reason))<EOL><DEDENT><DEDENT>if context.output_headers and not context.all_objects:<EOL><INDENT>with context.io_manager.with_stdout() as fp:<EOL><INDENT>context.write_headers(<EOL>fp, headers, context.muted_account_headers)<EOL><DEDENT><DEDENT>while contents:<EOL><INDENT>if context.all_objects:<EOL><INDENT>new_context = context.copy()<EOL>new_context.query = dict(new_context.query)<EOL>for remove in (<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>if remove in new_context.query:<EOL><INDENT>del new_context.query[remove]<EOL><DEDENT><DEDENT>for item in contents:<EOL><INDENT>if '<STR_LIT:name>' in item:<EOL><INDENT>new_path = item['<STR_LIT:name>'].encode('<STR_LIT:utf8>')<EOL>cli_get_container_listing(new_context, new_path)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>with context.io_manager.with_stdout() as fp:<EOL><INDENT>for item in contents:<EOL><INDENT>if context.full:<EOL><INDENT>fp.write('<STR_LIT>' % (<EOL>item.get('<STR_LIT>', '<STR_LIT:->'),<EOL>item.get('<STR_LIT:count>', '<STR_LIT:->')))<EOL><DEDENT>fp.write(item.get(<EOL>'<STR_LIT:name>', item.get('<STR_LIT>')))<EOL>fp.write('<STR_LIT:\n>')<EOL><DEDENT>fp.flush()<EOL><DEDENT><DEDENT>if limit:<EOL><INDENT>break<EOL><DEDENT>marker = contents[-<NUM_LIT:1>].get('<STR_LIT:name>', contents[-<NUM_LIT:1>].get('<STR_LIT>', '<STR_LIT>'))<EOL>with context.client_manager.with_client() as client:<EOL><INDENT>status, reason, headers, contents = client.get_account(<EOL>headers=context.headers, limit=limit, delimiter=delimiter,<EOL>prefix=prefix, end_marker=end_marker, marker=marker,<EOL>query=context.query, cdn=context.cdn)<EOL>if status // <NUM_LIT:100> != <NUM_LIT:2>:<EOL><INDENT>if status == <NUM_LIT> and context.ignore_404:<EOL><INDENT>return<EOL><DEDENT>if hasattr(contents, '<STR_LIT>'):<EOL><INDENT>contents.read()<EOL><DEDENT>raise ReturnCode('<STR_LIT>' % (status, reason))<EOL><DEDENT><DEDENT><DEDENT>
Performs a GET on the account as a listing request.

See :py:mod:`swiftly.cli.get` for context usage information.

See :py:class:`CLIGet` for more information.