Get Reports
Returns the location Reports.Location information for downloading the report for the specified file name. Retrieving a report involves two steps:
- Step 1: Invoke the Reports.get operation to provision a token and a URI.
- Step 2: Make an HTTP GET request by using the URI and the token returned in step 1 to retrieve the report.
The HTTP GET request will:
- Return 401 (Not Authorized) if the download URI is recognized, but the token is invalid, 404 if the URL is not recognized otherwise return 200 (OK)
- Provide the CSV contents as the output of the request. The API accepts the file name as input, reads the contents of that CSV file, and returns this text as the result of the API.
Request
URLURL
Path Parameters
Path Parameters
The parameter must be an identifier for the resource type: com.vmware.vcenter.lcm.report.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
{
"download_file_token": {
"expiry": "string",
"token": "string"
},
"uri": "string"
}
Information about the token required in the HTTP GET request to retrieve the report
Report Download URI.
Errors
com.vmware.vapi.std.errors.not_found : If there is no file associated with report in the system.
com.vmware.vapi.std.errors.error : If there is some unknown internal error. The accompanying error message will give more details about the failure.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: get