original_docstring: The ListVolumes method enables you to retrieve a list of volumes that are in a cluster. You can specify the volumes you want to
docstring: The ListVolumes method enables you to retrieve a list of volumes that are in a cluster. You can specify the volumes you want to
docstring_tokens: The ListVolumes method enables you to retrieve a list of volumes that are in a cluster . You can specify the volumes you want to
code: def list(ctx,
             # Optional main parameter
             startvolumeid = None,
             # Optional main parameter
             limit = None,
             # Optional main parameter
             volumestatus = None,
             # Optional main parameter
             accounts = None,
             # Optional main parameter
             ispaired = None,
             # Optional main parameter
             volumeids = None,
             # Optional main parameter
             volumename = None,
             # Optional main parameter
             includevirtualvolumes = None,
             # Optional main parameter
             protectionschemes = None):
      """The ListVolumes method enables you to retrieve a list of volumes that are in a cluster. You can specify the volumes you want to"""
      """return in the list by using the available parameters."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
      
      
  
      accounts = parser.parse_array(accounts)
      
      
  
      volumeids = parser.parse_array(volumeids)
      
      
      
  
      protectionschemes = parser.parse_array(protectionschemes)
      
  
      
  
      ctx.logger.info(""": """"""startvolumeid = """+str(startvolumeid)+";" + """limit = """+str(limit)+";" + """volumestatus = """+str(volumestatus)+";" + """accounts = """+str(accounts)+";" + """ispaired = """+str(ispaired)+";" + """volumeids = """+str(volumeids)+";" + """volumename = """+str(volumename)+";" + """includevirtualvolumes = """+str(includevirtualvolumes)+";" + """protectionschemes = """+str(protectionschemes)+""";"""+"")
      try:
          _ListVolumesResult = ctx.element.list_volumes(start_volume_id=startvolumeid, limit=limit, volume_status=volumestatus, accounts=accounts, is_paired=ispaired, volume_ids=volumeids, volume_name=volumename, include_virtual_volumes=includevirtualvolumes, protection_schemes=protectionschemes)
      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(_ListVolumesResult), indent=4))
          return
      else:
          cli_utils.print_result(_ListVolumesResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def list ( ctx , startvolumeid = None , limit = None , volumestatus = None , accounts = None , ispaired = None , volumeids = None , volumename = None , includevirtualvolumes = None , protectionschemes = None ) : """return in the list by using the available parameters.""" cli_utils . establish_connection ( ctx ) accounts = parser . parse_array ( accounts ) volumeids = parser . parse_array ( volumeids ) protectionschemes = parser . parse_array ( protectionschemes ) ctx . logger . info ( """: """ """startvolumeid = """ + str ( startvolumeid ) + ";" + """limit = """ + str ( limit ) + ";" + """volumestatus = """ + str ( volumestatus ) + ";" + """accounts = """ + str ( accounts ) + ";" + """ispaired = """ + str ( ispaired ) + ";" + """volumeids = """ + str ( volumeids ) + ";" + """volumename = """ + str ( volumename ) + ";" + """includevirtualvolumes = """ + str ( includevirtualvolumes ) + ";" + """protectionschemes = """ + str ( protectionschemes ) + """;""" + "" ) try : _ListVolumesResult = ctx . element . list_volumes ( start_volume_id = startvolumeid , limit = limit , volume_status = volumestatus , accounts = accounts , is_paired = ispaired , volume_ids = volumeids , volume_name = volumename , include_virtual_volumes = includevirtualvolumes , protection_schemes = protectionschemes ) 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 ( _ListVolumesResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _ListVolumesResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: The ListVolumes method enables you to retrieve a list of volumes that are in a cluster.
short_docstring_tokens: The ListVolumes method enables you to retrieve a list of volumes that are in a cluster .
comment: # Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$# Optional main parameter$SEP$"""The ListVolumes method enables you to retrieve a list of volumes that are in a cluster. You can specify the volumes you want to"""$SEP$"""return in the list by using the available parameters."""