original_docstring: DeleteVolume marks an active volume for deletion. When marked, the volume is purged (permanently deleted) after the cleanup
docstring: DeleteVolume marks an active volume for deletion. When marked, the volume is purged (permanently deleted) after the cleanup
docstring_tokens: DeleteVolume marks an active volume for deletion . When marked the volume is purged ( permanently deleted ) after the cleanup
code: def delete(ctx,
             # Mandatory main parameter
             volumeid):
      """DeleteVolume marks an active volume for deletion. When marked, the volume is purged (permanently deleted) after the cleanup"""
      """interval elapses. After making a request to delete a volume, any active iSCSI connections to the volume are immediately terminated"""
      """and no further connections are allowed while the volume is in this state. A marked volume is not returned in target discovery"""
      """requests."""
      """Any snapshots of a volume that has been marked for deletion are not affected. Snapshots are kept until the volume is purged from"""
      """the system."""
      """If a volume is marked for deletion and has a bulk volume read or bulk volume write operation in progress, the bulk volume read or"""
      """write operation is stopped."""
      """If the volume you delete is paired with a volume, replication between the paired volumes is suspended and no data is transferred"""
      """to it or from it while in a deleted state. The remote volume that the deleted volume was paired with enters into a PausedMisconfigured state and data is no longer sent to it or from the deleted volume. Until the deleted volume is purged, it can be restored and data transfers resume. If the deleted volume gets purged from the system, the volume it was paired with enters into a StoppedMisconfigured state and the volume pairing status is removed. The purged volume becomes permanently unavailable."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
  
      
  
      ctx.logger.info(""": """"""volumeid = """ + str(volumeid)+""";"""+"")
      try:
          _DeleteVolumeResult = ctx.element.delete_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(_DeleteVolumeResult), indent=4))
          return
      else:
          cli_utils.print_result(_DeleteVolumeResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def delete ( ctx , volumeid ) : """interval elapses. After making a request to delete a volume, any active iSCSI connections to the volume are immediately terminated""" """and no further connections are allowed while the volume is in this state. A marked volume is not returned in target discovery""" """requests.""" """Any snapshots of a volume that has been marked for deletion are not affected. Snapshots are kept until the volume is purged from""" """the system.""" """If a volume is marked for deletion and has a bulk volume read or bulk volume write operation in progress, the bulk volume read or""" """write operation is stopped.""" """If the volume you delete is paired with a volume, replication between the paired volumes is suspended and no data is transferred""" """to it or from it while in a deleted state. The remote volume that the deleted volume was paired with enters into a PausedMisconfigured state and data is no longer sent to it or from the deleted volume. Until the deleted volume is purged, it can be restored and data transfers resume. If the deleted volume gets purged from the system, the volume it was paired with enters into a StoppedMisconfigured state and the volume pairing status is removed. The purged volume becomes permanently unavailable.""" cli_utils . establish_connection ( ctx ) ctx . logger . info ( """: """ """volumeid = """ + str ( volumeid ) + """;""" + "" ) try : _DeleteVolumeResult = ctx . element . delete_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 ( _DeleteVolumeResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _DeleteVolumeResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: DeleteVolume marks an active volume for deletion.
short_docstring_tokens: DeleteVolume marks an active volume for deletion .
comment: # Mandatory main parameter$SEP$"""DeleteVolume marks an active volume for deletion. When marked, the volume is purged (permanently deleted) after the cleanup"""$SEP$"""interval elapses. After making a request to delete a volume, any active iSCSI connections to the volume are immediately terminated"""$SEP$"""and no further connections are allowed while the volume is in this state. A marked volume is not returned in target discovery"""$SEP$"""requests."""$SEP$"""Any snapshots of a volume that has been marked for deletion are not affected. Snapshots are kept until the volume is purged from"""$SEP$"""the system."""$SEP$"""If a volume is marked for deletion and has a bulk volume read or bulk volume write operation in progress, the bulk volume read or"""$SEP$"""write operation is stopped."""$SEP$"""If the volume you delete is paired with a volume, replication between the paired volumes is suspended and no data is transferred"""$SEP$"""to it or from it while in a deleted state. The remote volume that the deleted volume was paired with enters into a PausedMisconfigured state and data is no longer sent to it or from the deleted volume. Until the deleted volume is purged, it can be restored and data transfers resume. If the deleted volume gets purged from the system, the volume it was paired with enters into a StoppedMisconfigured state and the volume pairing status is removed. The purged volume becomes permanently unavailable."""