Skip to main content

GET /switches/{uuid}/configurationData

Use this method to return information about all configuration-data files in Lenovo XClarity Administrator for a specific RackSwitch or Flex System switch.

Authentication

Authentication with username and password is required.

Request URL

GET https://{management_server_IP}/switches/{uuid}/configurationData

where {uuid} is the UUID of the managed switch to be retrieved. To obtain the switch UUID, use the GET /switches method.

Query parameters

None

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.
409ConflictThere is a conflict with the current state of the resource. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
switchesArray of objectsInformation about configuration-back files for the switches.
 configurationDataArray of objectsInformation about each configuration-data file.
  commentStringThe date when the configuration-data file was created..
  dateStringThe date when the configuration-data file was created.
  fileIdStringThe ID of the configuration-data file
  filenameStringThe name of the configuration-data file
  fwVersionStringThe version of firmware that is running on the switch
  sizeStringThe size of the configuration-data file
  switchUuidStringThe UUID of the switch
 hostnameStringThe hostname for the switch
 ipAddressStringThe IP address of the switch
 typeStringThe type of switch
 uuidStringThe UUID of the switch
The following example is returned if the request is successful.
{
"switches": [{
"configurationData": [{
"comment": "comment2",
"date": "2017-03-06T01:47:57Z",
"fileId": "hwpdo"
"filename": "config2.cfg",
"fwVersion": "10.3.1.3",
"size": "11375",
"switchUuid": "00000000000010008000A897DCF89800"
},
{
"comment": "comment1",
"date": "2017-03-06T01:45:25Z",
"fileId": "ihwdZ",
"filename": "config1.cfg",
"fwVersion": "10.3.1.3",
"size": "11375",
"switchUuid": "00000000000010008000A897DCF89800"
}],
"hostname": "G8296_CNOS",
"ipAddress": "10.240.196.152",
"type": "LENOVO G8296",
"uuid": "00000000000010008000A897DCF89800"
}]
}