# Tapes

## (By tape library) Lists all tapes.

> \*\*API Key Scope\*\*: tapes / index

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"tapes_index":{"description":"List of tapes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tape_collection"}}}}},"schemas":{"tape_collection":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"tapes":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/tape"}}}},"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}}},"parameters":{"limit":{"name":"limit","in":"query","description":"The number of items to display for pagination.","schema":{"type":"integer"}},"offset":{"name":"offset","in":"query","description":"The number of items to skip for pagination.","schema":{"type":"integer"}},"sort_by":{"name":"sort_by","in":"query","description":"Sort results by attribute.\n\nCan sort on multiple attributes, separated by `|`.\nOrder direction can be suffixing the attribute by either `:asc` (default) or `:desc`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"filter_id":{"name":"id","in":"query","description":"Filter on id","schema":{"type":"string"}},"filter_pool_id":{"name":"pool_id","in":"query","description":"Filter on a pool id","schema":{"type":"string"}},"filter_barcode":{"name":"barcode","in":"query","description":"Filter on barcode","schema":{"type":"string"}},"filter_location":{"name":"location","in":"query","description":"Filter on location","schema":{"type":"string"}},"filter_type":{"name":"type","in":"query","description":"Filter on type","schema":{"type":"string"}},"filter_locked":{"name":"locked","in":"query","description":"Filter on locked","schema":{"type":"string"}},"filter_scratch":{"name":"scratch","in":"query","description":"Filter on scratch","schema":{"type":"string"}},"filter_cleaning":{"name":"cleaning","in":"query","description":"Filter on cleaning","schema":{"type":"string"}},"filter_write_protect":{"name":"write_protect","in":"query","description":"Filter on write protect","schema":{"type":"string"}},"filter_mounted":{"name":"mounted","in":"query","description":"Filter on mounted","schema":{"type":"string"}},"filter_ejected":{"name":"ejected","in":"query","description":"Filter on ejected","schema":{"type":"string"}},"filter_known":{"name":"known","in":"query","description":"Filter on known","schema":{"type":"string"}},"filter_mount_count":{"name":"mount_count","in":"query","description":"Filter on mount count","schema":{"type":"string"}},"filter_date_in":{"name":"date_in","in":"query","description":"Filter on date in","schema":{"type":"string"}},"filter_date_move":{"name":"date_move","in":"query","description":"Filter on date move","schema":{"type":"string"}},"filter_free":{"name":"free","in":"query","description":"Filter on free","schema":{"type":"string"}},"filter_max":{"name":"max","in":"query","description":"Filter on max","schema":{"type":"string"}},"filter_last_size_update":{"name":"last_size_update","in":"query","description":"Filter on last size update","schema":{"type":"string"}},"filter_last_maintenance":{"name":"last_maintenance","in":"query","description":"Filter on last maintenance","schema":{"type":"string"}},"filter_last_repack":{"name":"last_repack","in":"query","description":"Filter on last repack","schema":{"type":"string"}},"filter_repack_status":{"name":"repack_status","in":"query","description":"Filter on repack status","schema":{"type":"string"}},"filter_force_import_type":{"name":"force_import_type","in":"query","description":"Filter on force import type","schema":{"type":"string"}},"filter_need_to_check":{"name":"need_to_check","in":"query","description":"Filter on need to check","schema":{"type":"string"}}}},"paths":{"/tape_libraries/{tape_library_id}/tapes":{"get":{"summary":"(By tape library) Lists all tapes.","operationId":"index_tapes_by_tape_library","description":"**API Key Scope**: tapes / index","tags":["tapes"],"responses":{"200":{"$ref":"#/components/responses/tapes_index"}},"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/sort_by"},{"$ref":"#/components/parameters/filter_id"},{"$ref":"#/components/parameters/filter_pool_id"},{"$ref":"#/components/parameters/filter_barcode"},{"$ref":"#/components/parameters/filter_location"},{"$ref":"#/components/parameters/filter_type"},{"$ref":"#/components/parameters/filter_locked"},{"$ref":"#/components/parameters/filter_scratch"},{"$ref":"#/components/parameters/filter_cleaning"},{"$ref":"#/components/parameters/filter_write_protect"},{"$ref":"#/components/parameters/filter_mounted"},{"$ref":"#/components/parameters/filter_ejected"},{"$ref":"#/components/parameters/filter_known"},{"$ref":"#/components/parameters/filter_mount_count"},{"$ref":"#/components/parameters/filter_date_in"},{"$ref":"#/components/parameters/filter_date_move"},{"$ref":"#/components/parameters/filter_free"},{"$ref":"#/components/parameters/filter_max"},{"$ref":"#/components/parameters/filter_last_size_update"},{"$ref":"#/components/parameters/filter_last_maintenance"},{"$ref":"#/components/parameters/filter_last_repack"},{"$ref":"#/components/parameters/filter_repack_status"},{"$ref":"#/components/parameters/filter_force_import_type"},{"$ref":"#/components/parameters/filter_need_to_check"}]}}}}
```

## (By pool) Lists all tapes.

> \*\*API Key Scope\*\*: tapes / index

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"tapes_index":{"description":"List of tapes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tape_collection"}}}}},"schemas":{"tape_collection":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"tapes":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/tape"}}}},"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}}},"parameters":{"limit":{"name":"limit","in":"query","description":"The number of items to display for pagination.","schema":{"type":"integer"}},"offset":{"name":"offset","in":"query","description":"The number of items to skip for pagination.","schema":{"type":"integer"}},"sort_by":{"name":"sort_by","in":"query","description":"Sort results by attribute.\n\nCan sort on multiple attributes, separated by `|`.\nOrder direction can be suffixing the attribute by either `:asc` (default) or `:desc`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"filter_id":{"name":"id","in":"query","description":"Filter on id","schema":{"type":"string"}},"filter_tape_library_id":{"name":"tape_library_id","in":"query","description":"Filter on tape library id","schema":{"type":"string"}},"filter_barcode":{"name":"barcode","in":"query","description":"Filter on barcode","schema":{"type":"string"}},"filter_location":{"name":"location","in":"query","description":"Filter on location","schema":{"type":"string"}},"filter_type":{"name":"type","in":"query","description":"Filter on type","schema":{"type":"string"}},"filter_locked":{"name":"locked","in":"query","description":"Filter on locked","schema":{"type":"string"}},"filter_scratch":{"name":"scratch","in":"query","description":"Filter on scratch","schema":{"type":"string"}},"filter_cleaning":{"name":"cleaning","in":"query","description":"Filter on cleaning","schema":{"type":"string"}},"filter_write_protect":{"name":"write_protect","in":"query","description":"Filter on write protect","schema":{"type":"string"}},"filter_mounted":{"name":"mounted","in":"query","description":"Filter on mounted","schema":{"type":"string"}},"filter_ejected":{"name":"ejected","in":"query","description":"Filter on ejected","schema":{"type":"string"}},"filter_known":{"name":"known","in":"query","description":"Filter on known","schema":{"type":"string"}},"filter_mount_count":{"name":"mount_count","in":"query","description":"Filter on mount count","schema":{"type":"string"}},"filter_date_in":{"name":"date_in","in":"query","description":"Filter on date in","schema":{"type":"string"}},"filter_date_move":{"name":"date_move","in":"query","description":"Filter on date move","schema":{"type":"string"}},"filter_free":{"name":"free","in":"query","description":"Filter on free","schema":{"type":"string"}},"filter_max":{"name":"max","in":"query","description":"Filter on max","schema":{"type":"string"}},"filter_last_size_update":{"name":"last_size_update","in":"query","description":"Filter on last size update","schema":{"type":"string"}},"filter_last_maintenance":{"name":"last_maintenance","in":"query","description":"Filter on last maintenance","schema":{"type":"string"}},"filter_last_repack":{"name":"last_repack","in":"query","description":"Filter on last repack","schema":{"type":"string"}},"filter_repack_status":{"name":"repack_status","in":"query","description":"Filter on repack status","schema":{"type":"string"}},"filter_force_import_type":{"name":"force_import_type","in":"query","description":"Filter on force import type","schema":{"type":"string"}},"filter_need_to_check":{"name":"need_to_check","in":"query","description":"Filter on need to check","schema":{"type":"string"}}}},"paths":{"/pools/{pool_id}/tapes":{"get":{"summary":"(By pool) Lists all tapes.","operationId":"index_tapes_by_pool","description":"**API Key Scope**: tapes / index","tags":["tapes"],"responses":{"200":{"$ref":"#/components/responses/tapes_index"}},"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/sort_by"},{"$ref":"#/components/parameters/filter_id"},{"$ref":"#/components/parameters/filter_tape_library_id"},{"$ref":"#/components/parameters/filter_barcode"},{"$ref":"#/components/parameters/filter_location"},{"$ref":"#/components/parameters/filter_type"},{"$ref":"#/components/parameters/filter_locked"},{"$ref":"#/components/parameters/filter_scratch"},{"$ref":"#/components/parameters/filter_cleaning"},{"$ref":"#/components/parameters/filter_write_protect"},{"$ref":"#/components/parameters/filter_mounted"},{"$ref":"#/components/parameters/filter_ejected"},{"$ref":"#/components/parameters/filter_known"},{"$ref":"#/components/parameters/filter_mount_count"},{"$ref":"#/components/parameters/filter_date_in"},{"$ref":"#/components/parameters/filter_date_move"},{"$ref":"#/components/parameters/filter_free"},{"$ref":"#/components/parameters/filter_max"},{"$ref":"#/components/parameters/filter_last_size_update"},{"$ref":"#/components/parameters/filter_last_maintenance"},{"$ref":"#/components/parameters/filter_last_repack"},{"$ref":"#/components/parameters/filter_repack_status"},{"$ref":"#/components/parameters/filter_force_import_type"},{"$ref":"#/components/parameters/filter_need_to_check"}]}}}}
```

## Lists all tapes.

> \*\*API Key Scope\*\*: tapes / index

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"tapes_index":{"description":"List of tapes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tape_collection"}}}}},"schemas":{"tape_collection":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"tapes":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/tape"}}}},"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}}},"parameters":{"limit":{"name":"limit","in":"query","description":"The number of items to display for pagination.","schema":{"type":"integer"}},"offset":{"name":"offset","in":"query","description":"The number of items to skip for pagination.","schema":{"type":"integer"}},"sort_by":{"name":"sort_by","in":"query","description":"Sort results by attribute.\n\nCan sort on multiple attributes, separated by `|`.\nOrder direction can be suffixing the attribute by either `:asc` (default) or `:desc`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"has_locations":{"name":"has_locations","in":"query","description":"If set, only includes tapes that have/don't have any location.","schema":{"type":"boolean"}},"filter_id":{"name":"id","in":"query","description":"Filter on id","schema":{"type":"string"}},"filter_tape_library_id":{"name":"tape_library_id","in":"query","description":"Filter on tape library id","schema":{"type":"string"}},"filter_pool_id":{"name":"pool_id","in":"query","description":"Filter on a pool id","schema":{"type":"string"}},"filter_barcode":{"name":"barcode","in":"query","description":"Filter on barcode","schema":{"type":"string"}},"filter_location":{"name":"location","in":"query","description":"Filter on location","schema":{"type":"string"}},"filter_type":{"name":"type","in":"query","description":"Filter on type","schema":{"type":"string"}},"filter_locked":{"name":"locked","in":"query","description":"Filter on locked","schema":{"type":"string"}},"filter_scratch":{"name":"scratch","in":"query","description":"Filter on scratch","schema":{"type":"string"}},"filter_cleaning":{"name":"cleaning","in":"query","description":"Filter on cleaning","schema":{"type":"string"}},"filter_write_protect":{"name":"write_protect","in":"query","description":"Filter on write protect","schema":{"type":"string"}},"filter_mounted":{"name":"mounted","in":"query","description":"Filter on mounted","schema":{"type":"string"}},"filter_ejected":{"name":"ejected","in":"query","description":"Filter on ejected","schema":{"type":"string"}},"filter_known":{"name":"known","in":"query","description":"Filter on known","schema":{"type":"string"}},"filter_mount_count":{"name":"mount_count","in":"query","description":"Filter on mount count","schema":{"type":"string"}},"filter_date_in":{"name":"date_in","in":"query","description":"Filter on date in","schema":{"type":"string"}},"filter_date_move":{"name":"date_move","in":"query","description":"Filter on date move","schema":{"type":"string"}},"filter_free":{"name":"free","in":"query","description":"Filter on free","schema":{"type":"string"}},"filter_max":{"name":"max","in":"query","description":"Filter on max","schema":{"type":"string"}},"filter_last_size_update":{"name":"last_size_update","in":"query","description":"Filter on last size update","schema":{"type":"string"}},"filter_last_maintenance":{"name":"last_maintenance","in":"query","description":"Filter on last maintenance","schema":{"type":"string"}},"filter_last_repack":{"name":"last_repack","in":"query","description":"Filter on last repack","schema":{"type":"string"}},"filter_repack_status":{"name":"repack_status","in":"query","description":"Filter on repack status","schema":{"type":"string"}},"filter_force_import_type":{"name":"force_import_type","in":"query","description":"Filter on force import type","schema":{"type":"string"}},"filter_need_to_check":{"name":"need_to_check","in":"query","description":"Filter on need to check","schema":{"type":"string"}}}},"paths":{"/tapes":{"get":{"summary":"Lists all tapes.","tags":["tapes"],"operationId":"index_tapes","description":"**API Key Scope**: tapes / index","responses":{"200":{"$ref":"#/components/responses/tapes_index"}},"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/sort_by"},{"$ref":"#/components/parameters/has_locations"},{"$ref":"#/components/parameters/filter_id"},{"$ref":"#/components/parameters/filter_tape_library_id"},{"$ref":"#/components/parameters/filter_pool_id"},{"$ref":"#/components/parameters/filter_barcode"},{"$ref":"#/components/parameters/filter_location"},{"$ref":"#/components/parameters/filter_type"},{"$ref":"#/components/parameters/filter_locked"},{"$ref":"#/components/parameters/filter_scratch"},{"$ref":"#/components/parameters/filter_cleaning"},{"$ref":"#/components/parameters/filter_write_protect"},{"$ref":"#/components/parameters/filter_mounted"},{"$ref":"#/components/parameters/filter_ejected"},{"$ref":"#/components/parameters/filter_known"},{"$ref":"#/components/parameters/filter_mount_count"},{"$ref":"#/components/parameters/filter_date_in"},{"$ref":"#/components/parameters/filter_date_move"},{"$ref":"#/components/parameters/filter_free"},{"$ref":"#/components/parameters/filter_max"},{"$ref":"#/components/parameters/filter_last_size_update"},{"$ref":"#/components/parameters/filter_last_maintenance"},{"$ref":"#/components/parameters/filter_last_repack"},{"$ref":"#/components/parameters/filter_repack_status"},{"$ref":"#/components/parameters/filter_force_import_type"},{"$ref":"#/components/parameters/filter_need_to_check"}]}}}}
```

## Displays a specific tape.

> \*\*API Key Scope\*\*: tapes / show

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"tapes_show":{"description":"A specific tape.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tape"}}}},"not_found":{"description":"The requested resource was not found. The detailed error will be of type `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}}},"paths":{"/tapes/{tape_id}":{"get":{"summary":"Displays a specific tape.","operationId":"show_tape","description":"**API Key Scope**: tapes / show","tags":["tapes"],"responses":{"200":{"$ref":"#/components/responses/tapes_show"},"404":{"$ref":"#/components/responses/not_found"}}}}}}
```

## Destroys a specific tape. Only when it's an orphan.

> \*\*API Key Scope\*\*: tapes / destroy

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/tapes/{tape_id}":{"delete":{"summary":"Destroys a specific tape. Only when it's an orphan.","operationId":"destroy_tape","description":"**API Key Scope**: tapes / destroy","tags":["tapes"],"responses":{"204":{"description":"Tape destroyed."}}}}}}
```

## Get mount status of Tape.

> \*\*API Key Scope\*\*: tapes / mount\_status

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"mount_status":{"description":"Mount status of storage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/mount_status"}}}},"not_found":{"description":"The requested resource was not found. The detailed error will be of type `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"mount_status":{"type":"object","properties":{"mounted":{"type":"boolean","readOnly":true},"message":{"type":"string","readOnly":true},"status":{"$ref":"#/components/schemas/mount_info"}}},"mount_info":{"type":"object","properties":{"id":{"type":"integer"},"major_minor":{"type":"string"},"target":{"type":"string"},"source":{"type":"string"},"options":{"type":"string"},"type":{"type":"string","enum":["cifs","nfs","nfs4","fuse.s3fs","fuse.rclone","fuse.core_fuse","fuse"]},"pool_id":{"type":"integer"},"pool_name":{"type":"string"},"nas_id":{"type":"integer"},"nas_name":{"type":"string"},"nas_share_id":{"type":"integer"},"nas_share_name":{"type":"string"},"cloud_connector_id":{"type":"integer"},"cloud_connector_name":{"type":"string"},"cloud_bucket_id":{"type":"integer"},"cloud_bucket_name":{"type":"string"},"tape_id":{"type":"integer"},"tape_barcode":{"type":"string"},"tape_library_id":{"type":"integer"},"tape_library_name":{"type":"string"},"tape_library_serial":{"type":"string"}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}}},"paths":{"/tapes/{tape_id}/mount":{"get":{"summary":"Get mount status of Tape.","operationId":"mount_status_tape","description":"**API Key Scope**: tapes / mount_status","tags":["tapes"],"responses":{"200":{"$ref":"#/components/responses/mount_status"},"404":{"$ref":"#/components/responses/not_found"}}}}}}
```

## Display statistic for a specific tape.

> \*\*API Key Scope\*\*: tape\_stats / show

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"tape_stat_show":{"description":"A specific tape statistic.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tape_stat"}}}},"not_found":{"description":"The requested resource was not found. The detailed error will be of type `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"tape_stat":{"type":"object","properties":{"log_time":{"type":"string","readOnly":true},"barcode":{"type":"string","readOnly":true},"mounts":{"type":"integer","readOnly":true},"datasets_written":{"type":"integer","readOnly":true},"datasets_read":{"type":"integer","readOnly":true},"recovered_write_data_errors":{"type":"integer","readOnly":true},"unrecovered_write_data_errors":{"type":"integer","readOnly":true},"write_servo_errors":{"type":"integer","readOnly":true},"unrecovered_write_servo_errors":{"type":"integer","readOnly":true},"recovered_read_errors":{"type":"integer","readOnly":true},"unrecovered_read_errors":{"type":"integer","readOnly":true},"last_mount_unrecovered_write_errors":{"type":"integer","readOnly":true},"last_mount_unrecovered_read_errors":{"type":"integer","readOnly":true},"last_mount_mbytes_written":{"type":"integer","readOnly":true},"last_mount_mbytes_read":{"type":"integer","readOnly":true},"lifetime_mbytes_written":{"type":"integer","readOnly":true},"lifetime_mbytes_read":{"type":"integer","readOnly":true},"last_load_write_compression_ratio":{"type":"integer","readOnly":true},"last_load_read_compression_ratio":{"type":"integer","readOnly":true},"medium_mount_time":{"type":"integer","readOnly":true},"medium_ready_time":{"type":"integer","readOnly":true},"total_native_capacity":{"type":"integer","readOnly":true},"total_used_native_capacity":{"type":"integer","readOnly":true},"write_protect":{"type":"integer","readOnly":true},"worm":{"type":"integer","readOnly":true},"beginning_of_medium_passes":{"type":"integer","readOnly":true},"middle_of_tape_passes":{"type":"integer","readOnly":true},"read_compression_ratio":{"type":"integer","readOnly":true},"write_compression_ratio":{"type":"integer","readOnly":true},"mbytes_transferred_to_app_client":{"type":"integer","readOnly":true},"bytes_transferred_to_app_client":{"type":"integer","readOnly":true},"mbytes_read_from_medium":{"type":"integer","readOnly":true},"bytes_read_from_medium":{"type":"integer","readOnly":true},"mbytes_transferred_from_app_client":{"type":"integer","readOnly":true},"bytes_transferred_from_app_client":{"type":"integer","readOnly":true},"mbytes_written_to_medium":{"type":"integer","readOnly":true},"bytes_written_to_medium":{"type":"integer","readOnly":true},"data_compression_enabled":{"type":"integer","readOnly":true},"partition_0_remaining_capacity":{"type":"integer","readOnly":true},"partition_1_remaining_capacity":{"type":"integer","readOnly":true},"partition_0_maximum_capacity":{"type":"integer","readOnly":true},"partition_1_maximum_capacity":{"type":"integer","readOnly":true}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}}},"paths":{"/tapes/{tape_id}/tape_stat":{"get":{"summary":"Display statistic for a specific tape.","operationId":"show_tape_stat","description":"**API Key Scope**: tape_stats / show","tags":["tapes"],"responses":{"200":{"$ref":"#/components/responses/tape_stat_show"},"404":{"$ref":"#/components/responses/not_found"}}}}}}
```

## List all tape statistics.

> \*\*API Key Scope\*\*: tape\_stats / index

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"tape_stats_index":{"description":"List of tape statistics.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tape_stat_collection"}}}},"not_found":{"description":"The requested resource was not found. The detailed error will be of type `not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"tape_stat_collection":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"tape_stats":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/tape_stat"}}}},"tape_stat":{"type":"object","properties":{"log_time":{"type":"string","readOnly":true},"barcode":{"type":"string","readOnly":true},"mounts":{"type":"integer","readOnly":true},"datasets_written":{"type":"integer","readOnly":true},"datasets_read":{"type":"integer","readOnly":true},"recovered_write_data_errors":{"type":"integer","readOnly":true},"unrecovered_write_data_errors":{"type":"integer","readOnly":true},"write_servo_errors":{"type":"integer","readOnly":true},"unrecovered_write_servo_errors":{"type":"integer","readOnly":true},"recovered_read_errors":{"type":"integer","readOnly":true},"unrecovered_read_errors":{"type":"integer","readOnly":true},"last_mount_unrecovered_write_errors":{"type":"integer","readOnly":true},"last_mount_unrecovered_read_errors":{"type":"integer","readOnly":true},"last_mount_mbytes_written":{"type":"integer","readOnly":true},"last_mount_mbytes_read":{"type":"integer","readOnly":true},"lifetime_mbytes_written":{"type":"integer","readOnly":true},"lifetime_mbytes_read":{"type":"integer","readOnly":true},"last_load_write_compression_ratio":{"type":"integer","readOnly":true},"last_load_read_compression_ratio":{"type":"integer","readOnly":true},"medium_mount_time":{"type":"integer","readOnly":true},"medium_ready_time":{"type":"integer","readOnly":true},"total_native_capacity":{"type":"integer","readOnly":true},"total_used_native_capacity":{"type":"integer","readOnly":true},"write_protect":{"type":"integer","readOnly":true},"worm":{"type":"integer","readOnly":true},"beginning_of_medium_passes":{"type":"integer","readOnly":true},"middle_of_tape_passes":{"type":"integer","readOnly":true},"read_compression_ratio":{"type":"integer","readOnly":true},"write_compression_ratio":{"type":"integer","readOnly":true},"mbytes_transferred_to_app_client":{"type":"integer","readOnly":true},"bytes_transferred_to_app_client":{"type":"integer","readOnly":true},"mbytes_read_from_medium":{"type":"integer","readOnly":true},"bytes_read_from_medium":{"type":"integer","readOnly":true},"mbytes_transferred_from_app_client":{"type":"integer","readOnly":true},"bytes_transferred_from_app_client":{"type":"integer","readOnly":true},"mbytes_written_to_medium":{"type":"integer","readOnly":true},"bytes_written_to_medium":{"type":"integer","readOnly":true},"data_compression_enabled":{"type":"integer","readOnly":true},"partition_0_remaining_capacity":{"type":"integer","readOnly":true},"partition_1_remaining_capacity":{"type":"integer","readOnly":true},"partition_0_maximum_capacity":{"type":"integer","readOnly":true},"partition_1_maximum_capacity":{"type":"integer","readOnly":true}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}},"parameters":{"limit":{"name":"limit","in":"query","description":"The number of items to display for pagination.","schema":{"type":"integer"}},"offset":{"name":"offset","in":"query","description":"The number of items to skip for pagination.","schema":{"type":"integer"}}}},"paths":{"/tape_stats":{"get":{"summary":"List all tape statistics.","operationId":"index_tape_stats","description":"**API Key Scope**: tape_stats / index","tags":["tapes"],"responses":{"200":{"$ref":"#/components/responses/tape_stats_index"},"404":{"$ref":"#/components/responses/not_found"}},"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"}]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nodeum.io/data-archiving/api-developers/api-reference-nodeum-data-archiving/tapes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
