GET /switches/<file_name>.csv

Use this GET method to download inventory for a large number of specific Flex and RackSwitch switches in CSV format to the local system.

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>/switches/<file_name>.csv

where <file_name>.csv is the file name of the CSV file that contains inventory data. Use the POST /switches method to with the formatType=csv request parameter to create the CSV file. The POST /switches method returns the file name in the request header.

Query parameters

None

Request body

None

Response codes

Code Description
200 OK
401 Unauthorized
404 Not found
500 Internal server error

Response body

None