original_docstring: ListActiveVolumes enables you to return the list of active volumes currently in the system. The list of volumes is returned sorted in
docstring: ListActiveVolumes enables you to return the list of active volumes currently in the system. The list of volumes is returned sorted in
docstring_tokens: ListActiveVolumes enables you to return the list of active volumes currently in the system . The list of volumes is returned sorted in
code: def listactive(ctx,
             # Optional main parameter
             startvolumeid = None,
             # Optional main parameter
             limit = None,
             # Optional main parameter
             includevirtualvolumes = None):
      """ListActiveVolumes enables you to return the list of active volumes currently in the system. The list of volumes is returned sorted in"""
      """VolumeID order and can be returned in multiple parts (pages)."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
      
      
  
      
  
      ctx.logger.info(""": """"""startvolumeid = """+str(startvolumeid)+";" + """limit = """+str(limit)+";" + """includevirtualvolumes = """+str(includevirtualvolumes)+""";"""+"")
      try:
          _ListActiveVolumesResult = ctx.element.list_active_volumes(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(_ListActiveVolumesResult), indent=4))
          return
      else:
          cli_utils.print_result(_ListActiveVolumesResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def listactive ( ctx , startvolumeid = None , limit = None , includevirtualvolumes = None ) : """VolumeID order and can be returned in multiple parts (pages).""" cli_utils . establish_connection ( ctx ) ctx . logger . info ( """: """ """startvolumeid = """ + str ( startvolumeid ) + ";" + """limit = """ + str ( limit ) + ";" + """includevirtualvolumes = """ + str ( includevirtualvolumes ) + """;""" + "" ) try : _ListActiveVolumesResult = ctx . element . list_active_volumes ( 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 ( _ListActiveVolumesResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _ListActiveVolumesResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: ListActiveVolumes enables you to return the list of active volumes currently in the system.
short_docstring_tokens: ListActiveVolumes enables you to return the list of active volumes currently in the system .
comment: # Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$"""ListActiveVolumes enables you to return the list of active volumes currently in the system. The list of volumes is returned sorted in"""$SEP$"""VolumeID order and can be returned in multiple parts (pages)."""