original_docstring: RestoreDeletedVolume marks a deleted volume as active again. This action makes the volume immediately available for iSCSI connection.
docstring: RestoreDeletedVolume marks a deleted volume as active again. This action makes the volume immediately available for iSCSI connection.
docstring_tokens: RestoreDeletedVolume marks a deleted volume as active again . This action makes the volume immediately available for iSCSI connection .
code: def restoredeleted(ctx,
             # Mandatory main parameter
             volumeid):
      """RestoreDeletedVolume marks a deleted volume as active again. This action makes the volume immediately available for iSCSI connection."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
  
      
  
      ctx.logger.info(""": """"""volumeid = """ + str(volumeid)+""";"""+"")
      try:
          _RestoreDeletedVolumeResult = ctx.element.restore_deleted_volume(volume_id=volumeid)
      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(_RestoreDeletedVolumeResult), indent=4))
          return
      else:
          cli_utils.print_result(_RestoreDeletedVolumeResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def restoredeleted ( ctx , volumeid ) : cli_utils . establish_connection ( ctx ) ctx . logger . info ( """: """ """volumeid = """ + str ( volumeid ) + """;""" + "" ) try : _RestoreDeletedVolumeResult = ctx . element . restore_deleted_volume ( volume_id = volumeid ) 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 ( _RestoreDeletedVolumeResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _RestoreDeletedVolumeResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: RestoreDeletedVolume marks a deleted volume as active again.
short_docstring_tokens: RestoreDeletedVolume marks a deleted volume as active again .
comment: # Mandatory main parameter$SEP$"""RestoreDeletedVolume marks a deleted volume as active again. This action makes the volume immediately available for iSCSI connection."""