如何使用 UrbanCode Deploy REST API 在一个时间范围内获取所有部署过程请求?

How to get all deployment process request within a Timeframe using UrabanCode Deploy REST API?

我正在寻找 UrabanCode Deploy 中的 REST API 选项,以便在特定时间范围内获取所有部署过程。比方说

- All deployment process request id submitted within 24 hours. 
- All Deploy process request submitted in Last 7 Days etc. 

我已经按照 this question 中的建议检查了 applicationProcessRequest Rest API 中使用 filterValue 选项的可能性,但没有成功。它显示所有进程请求。

http://localhost:8443/rest/deploy/applicationProcessRequest/table?filterValue_submittedTime=1473282726868 

我正在寻找过滤器选项以根据日期字段限制结果。
有谁知道 UrbanCode REST API return 所有 applicationProcessRequest id 在一个时间范围内?

非常感谢您的帮助。谢谢。

我们可以从 /rest/report/adhoc 端点获取部署过程请求 ID 的列表。
参数是:

  • 日期范围:自定义、当前周、当前月
  • date_low:以毫秒为单位的 UnixTimestamp(如果 dateRange 是必需的 自定义)
  • date_hi:以毫秒为单位的 Unix 时间戳(如果 日期范围是自定义的)
  • orderField: 订单字段
  • sortType: 排序类型asc/desc
  • type: 报告类型 com.urbancode.ds.subsys.report.domain.deployment_report.DeploymentReport

语法:

http://localhost:8443/rest/report/adHoc?dateRange=custom&date_low=<START_DATE>&date_hi=<END_DATE>&orderField=application&sortType=asc&type=com.urbancode.ds.subsys.report.domain.deployment_report.DeploymentReport

例如

http://localhost:8443/rest/report/adHoc?dateRange=custom&date_low=1472702400000&date_hi=1474430400000&orderField=application&sortType=asc&type=com.urbancode.ds.subsys.report.domain.deployment_report.DeploymentReport