【问题标题】:Is there an API to manage (GET, POST, PUT, DELETE) Custom Reports in Apigee?Apigee 中是否有用于管理(GET、POST、PUT、DELETE)自定义报告的 API?
【发布时间】:2014-02-13 01:15:21
【问题描述】:

此 API 的主要目的是管理所有环境(DEV、QA、PROD)的更改,而无需手动迁移报告。然后,构建 shell 脚本或更高级的 CI 工具来应用持续部署。

我正在查看 Apigee Console To Go 中的可用资源,但找不到用于导出报告的资源。

http://apigee.com/docs/apigee-api-platform-console

【问题讨论】:

    标签: apigee


    【解决方案1】:

    API 在这里:

    获取报告 卷曲https://api.enterprise.apigee.com/v1/organizations/{orgName}/reports curl https://api.enterprise.apigee.com/v1/organizations/{orgName}/reports?expand=true

    删除报告 curl https://api.enterprise.apigee.com/v1/organizations/{orgName}/reports/(reportId}" -X DELETE

    reportId 来自上述 GET 中看到的 name

    POST 报告 curl https://api.enterprise.apigee.com/v1/organizations/{orgName}/reports/" -X POST -d "{reportBodyInJson}"

    【讨论】:

    • 酷。谢谢兰迪。补充你的答案。要以 JSON 格式检索报告定义,请使用 curl https://api.enterprise.apigee.com/v1/organizations/{org}/reports/{report-id} and when creating report, use include header: curl --data @report_file.json https://api.enterprise.apigee.com/v1/organizations/{org}/reports/ -X POST -H "Content-Type: application/json"
    猜你喜欢
    • 2015-01-25
    • 1970-01-01
    • 2014-11-03
    • 2017-08-20
    • 2013-09-27
    • 1970-01-01
    • 2014-12-06
    • 1970-01-01
    • 2013-12-17
    相关资源
    最近更新 更多