original_docstring: ListVolumesForAccount returns the list of active and (pending) deleted volumes for an account.
docstring: ListVolumesForAccount returns the list of active and (pending) deleted volumes for an account.
docstring_tokens: ListVolumesForAccount returns the list of active and ( pending ) deleted volumes for an account .
code: def listforaccount(ctx,
             # Mandatory main parameter
             accountid,
             # Optional main parameter
             startvolumeid = None,
             # Optional main parameter
             limit = None,
             # Optional main parameter
             includevirtualvolumes = None):
      """ListVolumesForAccount returns the list of active and (pending) deleted volumes for an account."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
      
      
      
  
      
  
      ctx.logger.info(""": """"""accountid = """ + str(accountid)+";" + """startvolumeid = """+str(startvolumeid)+";" + """limit = """+str(limit)+";" + """includevirtualvolumes = """+str(includevirtualvolumes)+""";"""+"")
      try:
          _ListVolumesForAccountResult = ctx.element.list_volumes_for_account(account_id=accountid, start_volume_id=startvolumeid, limit=limit, include_virtual_volumes=includevirtualvolumes)
      except common.ApiServerError as e:
          ctx.logger.error(e.message)
          exit()
      except BaseException as e:
          ctx.logger.error(e.__str__())
          exit()
      if ctx.json:
          print(simplejson.dumps(simplejson.loads(_ListVolumesForAccountResult), indent=4))
          return
      else:
          cli_utils.print_result(_ListVolumesForAccountResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def listforaccount ( ctx , accountid , startvolumeid = None , limit = None , includevirtualvolumes = None ) : cli_utils . establish_connection ( ctx ) ctx . logger . info ( """: """ """accountid = """ + str ( accountid ) + ";" + """startvolumeid = """ + str ( startvolumeid ) + ";" + """limit = """ + str ( limit ) + ";" + """includevirtualvolumes = """ + str ( includevirtualvolumes ) + """;""" + "" ) try : _ListVolumesForAccountResult = ctx . element . list_volumes_for_account ( account_id = accountid , start_volume_id = startvolumeid , limit = limit , include_virtual_volumes = includevirtualvolumes ) except common . ApiServerError as e : ctx . logger . error ( e . message ) exit ( ) except BaseException as e : ctx . logger . error ( e . __str__ ( ) ) exit ( ) if ctx . json : print ( simplejson . dumps ( simplejson . loads ( _ListVolumesForAccountResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _ListVolumesForAccountResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: ListVolumesForAccount returns the list of active and (pending) deleted volumes for an account.
short_docstring_tokens: ListVolumesForAccount returns the list of active and ( pending ) deleted volumes for an account .
comment: # Mandatory main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$"""ListVolumesForAccount returns the list of active and (pending) deleted volumes for an account."""