GET /managementServer/data/repository

Use this GET method to determine the amount of disk space that is used for backups in the Lenovo XClarity Administrator local repository.

Note: This API requires Lenovo XClarity Administrator v2.2.0 or later.

Authentication

Authentication with user name and password is required.

Request URL

GET https://<management_server_IP>/managementServer/data/repository

Query parameters

Parameters Required / Optional Description
packageSize=<size> Optional Size, in bytes, of the XClarity Administrator backup that you want to import
The following example verifies whether the management server has enough disk space to import the backup.
GET https://192.0.2.0 /managementServer/data/repository?packageSize=18270472
The following example retrieves disk space status.
GET https://192.0.2.0 /managementServer/data/repository

Request body

None

Response codes

Code Description
200 OK
400 Bad request
403 Forbidden
500 Internal server error

Response body

Attributes Type Description
spaceUsed String Amount of disk space that is being used by the backup repository
totalSpace String Amount of total disk space that is allocated for the backup repository
result String Result of the request. This can be one of the following values.
  • success. The request completed successfully.

    If the packageSize query parameter was specified, this result means that the management server has enough disk space available to import the backup.

  • failed. The request failed. A descriptive error message is returned.

    If the packageSize query parameter was specified, this result means that the management server does not have enough disk space available to import the backup.

message Object Information about the error message
  explanation String Additional information to clarify the reason for the message
  id String Message identifier of a returned message
  recovery Array of objects Recovery information
    text String User actions that can be taken to recover from the event
    URL String Link to the help system for more information, if available
  text String Message text associated with the message identifier

Response example

{
   "spaceUsed": "5.1 GB",
   "totalSpace": "50 GB",
   "result": "success",
   "message": []
}