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[]
{
"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"
}
GET /v4/library/:libraryid/media
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/V4/Library/:libraryId/Media' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/V4/Library/:libraryId/Media' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/V4/Library/:libraryId/Media' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/V4/Library/:libraryId/Media' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/V4/Library/:libraryId/Media' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/V4/Library/:libraryId/Media' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/V4/Library/:libraryId/Media' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'