GET /switches/{file_name}.csv

Use this 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 Comments
200 OK The request completed successfully.
401 Unauthorized The user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
404 Not found A specified resource cannot be found. A descriptive error message is returned in the response body.
500 Internal Server Error An internal error occurred. A descriptive error message is returned in the response body.

Response body

None