Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to export the custom report design

akoo
New Member

As a developer leveraging reproducibility, I am interested in exporting a custom report design I have created in a non-prod org. I want to take that custom report design and import it into the prod org to have the same exact report. As a benefit, I would be able to save the export of the design in my SCM.

Looking through the documentation here, I don't see such a capability.

Any suggestions?

Solved Solved
1 14 2,024
1 ACCEPTED SOLUTION

@Alex Koo ,

Guess what, I found a hack using APIs,

GET Custom Report , In JSON Format,

https://api.enterprise.apigee.com/v1/organizations/{YOURORGNAME}/reports/{REPORTID}

Create a new report using POST

https://api.enterprise.apigee.com/v1/organizations/{YOURORGNAME}/reports

POST Body, From Above GET, Change ORG NAME, Email Address of Org ADMIN & Make post call

{
  "chartType": "column",
  "comments": [],
  "createdAt": 1455087324749,
  "createdBy": "XXXX@apigee.com",
  "dimensions": [
    "apiproxy",
    "developer_app"
  ],
  "displayName": "Traffic for Proxies and Apps - Duplicate",
  "environment": "test",
  "lastModifiedAt": 1455087324749,
  "lastModifiedBy": "XXXXX@apigee.com",
  "lastViewedAt": 1463762541649,
  "metrics": [
    {
      "function": "sum",
      "name": "message_count"
    }
  ],
  "organization": "YOURORGNAME",
  "properties": [
    {
      "property": "__ui__",
      "value": [
        {
          "name": "description",
          "value": "Custom report to see trafic for proxies and apps"
        },
        {
          "name": "accuracy"
        }
      ]
    }
  ],
  "sortbyCols": [],
  "tags": [],
  "timeUnit": "hour"
}

It worked for me, Thanks to API First Approach of Apigee 🙂

2732-screen-shot-2016-05-20-at-101828-pm.png

View solution in original post

14 REPLIES 14
Top Solution Authors