Get Media List for a Library
Select
Get the list of media for given library.
Path Parameters
- libraryId int32 required
Id of Library
Query Parameters
- filterMediaType required
Possible values: [
ALL
,SPARE
,CLEANING
,RETIRED
,OVERWRITE_PROTECT
,AGED
,FOREIGN
,CATALOG
,ASSIGNED
,ERASABLE
]Filter media list to given FilterMediaType
- isExported boolean required
List "Media In Library" only if isExported is set to false otherwise list "Exported Media"
- 200
- 400
- 403
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
mediaDetailsList object[]
mediaId int32Id of Media
isExported booleanIndicates whether media is exported or in library
libraryId int32Id of Library
libraryName stringName of Library
status stringStatus of media
barcode stringBarcode label on media
storagePolicy object
id int32name stringstoragePolicyCopy object
id int32name stringslot object
id int32name stringcontainer object
id int32name stringstoredDataBytes int64The amount of stored data in media
lastWriteTime int64The date and time when the last write occurred on media
retainDataUntil int64The date and time until the data should be retained
spareGroup object
id int32name stringspareGroupTypePossible values: [
REGULAR_SPARE_GROUP
,DEFAULT_SPARE_GROUP
,UNIDENTIFIED_GROUP
,DEPRECATED_GROUP
,FOREIGN_GROUP
,CLEANING_GROUP
,OVERWRITE_PROTECT_GROUP
,CATALOG_GROUP
,REGULAR_AND_DEFAULT_SPARE_GROUP
]Spare group type of a group from which media belongs
mediaType object
id int32name stringdrive object
id int32name stringisInMediaGroup booleanIndicates whether media is assigned or not.
guiMediaAttribute int64Attributes of Media
{
"mediaDetailsList": [
{
"mediaId": 0,
"isExported": true,
"libraryId": 0,
"libraryName": "string",
"status": "string",
"barcode": "string",
"storagePolicy": {
"id": 0,
"name": "string"
},
"storagePolicyCopy": {
"id": 0,
"name": "string"
},
"slot": {
"id": 0,
"name": "string"
},
"container": {
"id": 0,
"name": "string"
},
"storedDataBytes": 0,
"lastWriteTime": 0,
"retainDataUntil": 0,
"spareGroup": {
"id": 0,
"name": "string"
},
"mediaType": {
"id": 0,
"name": "string"
},
"drive": {
"id": 0,
"name": "string"
},
"isInMediaGroup": true,
"guiMediaAttribute": 0
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
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
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}
Forbidden
- application/json
- Schema
- Example (from schema)
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
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
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
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}