For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reports [Beta]

Download Report

get

Download the generated Excel report. The report must be in COMPLETED status. Returns the Excel file as a binary download.

Path parameters
reportIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Report file download (Excel/XLSX)

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Responsestring · binary
get/release/report/{reportId}/download
GET /api/release/report/{reportId}/download HTTP/1.1
Harness-Account: text
Accept: */*
binary

Get Report Status

get

Get the status of a report generation job. Returns the current status, timestamps, and error information if the job failed.

Path parameters
reportIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Report status information

application/json
completedAtinteger · int64 · nullableOptional
createdAtinteger · int64Optional
errorMessagestring · nullableOptional
reportIdstringRequired
statusstring · enumRequiredPossible values:
totalReleasesinteger · nullableOptional
get/release/report/{reportId}/status
GET /api/release/report/{reportId}/status HTTP/1.1
Harness-Account: text
Accept: */*
{
  "completedAt": 1,
  "createdAt": 1,
  "errorMessage": "text",
  "reportId": "text",
  "status": "PENDING",
  "totalReleases": 1
}

Generate Report for Release

post

Generate an Excel report for a specific release within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.

Path parameters
releaseIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
endTsinteger · int64Required

End timestamp in milliseconds (Unix epoch)

startTsinteger · int64Required

Start timestamp in milliseconds (Unix epoch)

Responses
200

Report generation job created successfully

application/json
reportIdstringRequired
statusstring · enumRequiredPossible values:
post/release/{releaseId}/report/generate
POST /api/release/{releaseId}/report/generate HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "endTs": 1,
  "startTs": 1
}
{
  "reportId": "text",
  "status": "PENDING"
}

Generate Report for Release Group

post

Generate an Excel report for all releases in a release group within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.

Path parameters
releaseGroupIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
endTsinteger · int64Required

End timestamp in milliseconds (Unix epoch)

startTsinteger · int64Required

Start timestamp in milliseconds (Unix epoch)

Responses
200

Report generation job created successfully

application/json
reportIdstringRequired
statusstring · enumRequiredPossible values:
post/releaseGroup/{releaseGroupId}/report/generate
POST /api/releaseGroup/{releaseGroupId}/report/generate HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "endTs": 1,
  "startTs": 1
}
{
  "reportId": "text",
  "status": "PENDING"
}

Last updated

Was this helpful?