Skip to main content

GET /managementServer/data/repository

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

Authentication

Authentication with username and password is required.

Request URL

GET https://{management_server_IP}/managementServer/data/repository

Query parameters

ParametersRequired / OptionalDescription
packageSize={size}OptionalSize, 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

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
spaceUsedStringAmount of disk space that is being used by the backup repository
totalSpaceStringAmount of total disk space that is allocated for the backup repository
resultStringResult 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.

messageObjectInformation about the error message
 explanationStringAdditional information to clarify the reason for the message
 idStringMessage identifier of a returned message
 recoveryArray of objectsRecovery information
  textStringUser actions that can be taken to recover from the event
  URLStringLink to the help system for more information, if available
 textStringMessage text associated with the message identifier
The following example is returned if the request is successful.
{
"spaceUsed": "5.1 GB",
"totalSpace": "50 GB",
"result": "success",
"message": []
}