> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/miria-4.6/reference-documentation/rest-api-reference/media-list.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Media List

## GET /media-list/

> \*\*Get a list of medias\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type\*\*: One value in :\
> \['Unknown', 'File', 'Tape', 'ODA']\
> \
> \*\*status\*\*: One value in :\
> \['New', 'Open', 'Closed', 'Suspended', 'Empty', 'Closed (No Reopen)']\
> \
> \*\*statusCause\*\*: One value in :\
> \['', 'Full', 'On Error', 'On Write Error', 'On Read Error', 'On Prevent Spanning', 'On Check Integrity', 'On Discover', 'On Wrong Label', 'On Write Protected', 'On Advisory Locked', 'On Advisory Permanently Locked']\
> \
> \*\*format\*\*: One value in :\
> \['PAX', 'TAR (ATN)', 'TINA (ATN)', 'CPIO (ATN)', 'SIDF (ATN)', 'LTFS', 'ODA', 'AXF (DIVA)']\
> \
> \*\*extendedInfo\*\*: One value in :\
> \['Noval', 'Ingest']\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/media-list/":{"get":{"operationId":"mediaListList","description":"**Get a list of medias**\n\n**Complementary information about output:**\n\n**type**: One value in :\n['Unknown', 'File', 'Tape', 'ODA']\n\n**status**: One value in :\n['New', 'Open', 'Closed', 'Suspended', 'Empty', 'Closed (No Reopen)']\n\n**statusCause**: One value in :\n['', 'Full', 'On Error', 'On Write Error', 'On Read Error', 'On Prevent Spanning', 'On Check Integrity', 'On Discover', 'On Wrong Label', 'On Write Protected', 'On Advisory Locked', 'On Advisory Permanently Locked']\n\n**format**: One value in :\n['PAX', 'TAR (ATN)', 'TINA (ATN)', 'CPIO (ATN)', 'SIDF (ATN)', 'LTFS', 'ODA', 'AXF (DIVA)']\n\n**extendedInfo**: One value in :\n['Noval', 'Ingest']\n        ","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"in":"query","name":"job","schema":{"type":"integer"},"description":"Filtering by nested object job/id"},{"in":"query","name":"archive","schema":{"type":"integer"},"description":"Filtering by nested object archive/id"}],"tags":["media-list"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":""}}}}}},"description":""}}}}}}
```

## GET /media-list/{id}/

> \*\*Get an existing media\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type\*\*: One value in :\
> \['Unknown', 'File', 'Tape', 'ODA']\
> \
> \*\*status\*\*: One value in :\
> \['New', 'Open', 'Closed', 'Suspended', 'Empty', 'Closed (No Reopen)']\
> \
> \*\*statusCause\*\*: One value in :\
> \['', 'Full', 'On Error', 'On Write Error', 'On Read Error', 'On Prevent Spanning', 'On Check Integrity', 'On Discover', 'On Wrong Label', 'On Write Protected', 'On Advisory Locked', 'On Advisory Permanently Locked']\
> \
> \*\*format\*\*: One value in :\
> \['PAX', 'TAR (ATN)', 'TINA (ATN)', 'CPIO (ATN)', 'SIDF (ATN)', 'LTFS', 'ODA', 'AXF (DIVA)']\
> \
> \*\*extendedInfo\*\*: One value in :\
> \['Noval', 'Ingest']\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/media-list/{id}/":{"get":{"operationId":"mediaListRetrieve","description":"**Get an existing media**\n\n**Complementary information about output:**\n\n**type**: One value in :\n['Unknown', 'File', 'Tape', 'ODA']\n\n**status**: One value in :\n['New', 'Open', 'Closed', 'Suspended', 'Empty', 'Closed (No Reopen)']\n\n**statusCause**: One value in :\n['', 'Full', 'On Error', 'On Write Error', 'On Read Error', 'On Prevent Spanning', 'On Check Integrity', 'On Discover', 'On Wrong Label', 'On Write Protected', 'On Advisory Locked', 'On Advisory Permanently Locked']\n\n**format**: One value in :\n['PAX', 'TAR (ATN)', 'TINA (ATN)', 'CPIO (ATN)', 'SIDF (ATN)', 'LTFS', 'ODA', 'AXF (DIVA)']\n\n**extendedInfo**: One value in :\n['Noval', 'Ingest']\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this media.","required":true}],"tags":["media-list"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /media-list/{id}/files/

> Get a list of files from medias

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/media-list/{id}/files/":{"get":{"operationId":"mediaListFilesRetrieve","description":"Get a list of files from medias","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this media.","required":true},{"in":"query","name":"pageSize","schema":{"type":"integer"},"description":"Number of displayed items by page. (default: 10)"}],"tags":["media-list"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /media-list/{id}/history/

> \*\*Get history from an existing media\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*status\*\*: One value in :\
> \['New', 'Open', 'Closed', 'Suspended', 'Empty', 'Closed (No Reopen)']\
> \
> \*\*statusCause\*\*: One value in :\
> \['', 'Full', 'On Error', 'On Write Error', 'On Read Error', 'On Prevent Spanning', 'On Check Integrity', 'On Discover', 'On Wrong Label', 'On Write Protected', 'On Advisory Locked', 'On Advisory Permanently Locked']\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"MediaHistory":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer"},"creationDate":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","readOnly":true},"statusCause":{"type":"string","readOnly":true}},"required":["id","status","statusCause"]}}},"paths":{"/media-list/{id}/history/":{"get":{"operationId":"mediaListHistoryRetrieve","description":"**Get history from an existing media**\n\n**Complementary information about output:**\n\n**status**: One value in :\n['New', 'Open', 'Closed', 'Suspended', 'Empty', 'Closed (No Reopen)']\n\n**statusCause**: One value in :\n['', 'Full', 'On Error', 'On Write Error', 'On Read Error', 'On Prevent Spanning', 'On Check Integrity', 'On Discover', 'On Wrong Label', 'On Write Protected', 'On Advisory Locked', 'On Advisory Permanently Locked']\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this media.","required":true}],"tags":["media-list"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaHistory"}}},"description":""}}}}}}
```

## GET /media-list/{id}/stream/

> Get media streams for a media

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PaginatedMediaStreamListList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/MediaStreamList"}}}},"MediaStreamList":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer"},"stream":{"$ref":"#/components/schemas/StreamForMDSList"},"status":{"type":"integer"},"tapefile":{"type":"integer"},"logicalPosition":{"type":"integer"}},"required":["id","logicalPosition","status","stream","tapefile"]},"StreamForMDSList":{"type":"object","properties":{"id":{"type":"integer"},"size":{"type":"integer"},"status":{"type":"integer"},"queue":{"$ref":"#/components/schemas/QueueId"},"archive":{"$ref":"#/components/schemas/ArchiveShort"}},"required":["archive","id","queue","size","status"]},"QueueId":{"type":"object","properties":{"id":{"type":"integer","readOnly":true}},"required":["id"]},"ArchiveShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","pattern":"[/\\u005c:]","maxLength":256}},"required":["id","name"]}}},"paths":{"/media-list/{id}/stream/":{"get":{"operationId":"mediaListStreamList","description":"Get media streams for a media","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this media.","required":true}],"tags":["media-list"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedMediaStreamListList"}}},"description":""}}}}}}
```

## GET /media-list/{id}/stream/{mediaStream}

> Get a media stream for a media

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"MediaStreamDetail":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer"},"stream":{"$ref":"#/components/schemas/Stream"},"creationDate":{"type":"string","format":"date-time"},"status":{"type":"integer"},"tapefile":{"type":"integer"},"logicalPosition":{"type":"integer"},"stOffset":{"type":"integer"},"hdOffset":{"type":"integer"},"hdSize":{"type":"integer"},"ftOffset":{"type":"integer"},"ftSize":{"type":"integer"},"size":{"type":"integer"},"physSize":{"type":"integer"},"partition":{"type":"integer"},"tinaCodec":{"type":"integer"}},"required":["creationDate","ftOffset","ftSize","hdOffset","hdSize","id","logicalPosition","partition","physSize","size","stOffset","status","stream","tapefile","tinaCodec"]},"Stream":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer"},"creationDate":{"type":"string","format":"date-time"},"size":{"type":"integer"},"status":{"type":"integer"},"queue":{"$ref":"#/components/schemas/QueueId"},"backupDate":{"type":"string"},"archive":{"$ref":"#/components/schemas/ArchiveShort"}},"required":["archive","backupDate","creationDate","id","queue","size","status"]},"QueueId":{"type":"object","properties":{"id":{"type":"integer","readOnly":true}},"required":["id"]},"ArchiveShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","pattern":"[/\\u005c:]","maxLength":256}},"required":["id","name"]}}},"paths":{"/media-list/{id}/stream/{mediaStream}":{"get":{"operationId":"mediaListStreamRetrieve","description":"Get a media stream for a media","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this media.","required":true},{"in":"path","name":"mediaStream","schema":{"type":"integer"},"description":"A unique integer value identifying a media stream.","required":true}],"tags":["media-list"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaStreamDetail"}}},"description":""}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/miria-4.6/reference-documentation/rest-api-reference/media-list.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
