Skip to main content

Perform operation on Tape media

Select

Customer Managed

API to perform various media level operations on a Tape Storage

Request Body
  • mediaTypeId int32

    MediaType list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType

  • spareGroupId int32

    SpareGroup list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType

  • destSpareGroupId int32

    In case of MOVE_MEDIA, this field should be set to specify the destination spare group

  • slotList int32[]
  • operationType TapeMediaOperationType

    Possible values: [DISCOVER_MEDIA, MARK_MEDIA_GOOD, MARK_MEDIA_BAD, MARK_MEDIA_FULL, MARK_MEDIA_ERASABLE, MARK_MEDIA_APPENDABLE, MARK_MEDIA_REUSABLE, PREVENT_MEDIA_REUSE, ALLOW_MEDIA_REUSE, QUICK_ERASE_SELECTED_MEDIA, FULL_ERASE_SELECTED_MEDIA, DELETE_MEDIA, DELETE_CONTENTS, UPDATE_BARCODE, MOVE_MEDIA]

    Tape media operation type value

  • mediaList int32[]

    List of Media Ids for which operation needs to performed. NOTE : In case of QUICK_ERASE_SELECTED_MEDIA and FULL_ERASE_SELECTED_MEDIA single mediaId should be sent.

  • UpdateBarcodeOpType UpdateBarcodeOpType

    Possible values: [REPLACE_BARCODE, ADD_SUFFIX, ADD_PREFIX, REMOVE_SUFFIX, REMOVE_PREFIX]

    Type of Barcode update being performed. NOTE : If Barcode update is being performed for more than one media, REPLACE_BARCODE is not supported as it will result in duplicate barcodes.

  • barcode string

    In case of REPLACE_BARCODE, media barcode is replaced with barcode sent. In other cases of UpdateBarcodeOpType, barcode sent is added or removed according to the type specified. For instance, in case of ADD_SUFFIX, the barcode sent will be appended to the end of barcodes of all the medias sent in request.

Responses

OK


Schema
  • errorMessage string

    Tells about the error occured

  • errorCode ErrorCode

    Possible values: [NO_ERROR, INVALID_INPUT, VALUE_NOT_FOUND, UNKNOWN_EXCEPTION, CONNECTION_PROBLEM, UNKNOWN_SQL_ERROR, INVALID_USER, INVALID_OPERATION_TYPE, INTERNAL_SERVER_PROBLEM, INSUFFICIENT_USER_PERMISSION_ON_ENTITY, INVALID_ENTITY_ID]

    Error code value

Loading...