FR - API for fetching 'referenced by' info on harness CD objects
long-term
V
Vocal Squirrel
My team is trying to learn about adoption/consumption rates of certain account-level templates we create. Our goal is to be able to measure whether our global pipeline templates are being used by other teams within our organization to guide our roadmap.
Can the 'referenced by' information be made available in an api? A specific use case is below.
Steps:
- An account-level template is created by my team.
- As many different harness organizations and teams exist in our instance, we would like to get regular information related to how used our various templates are as we do not have direct insight into the various organizations and teams within our account.
Feature request:
An API is created or modified to allow us to fetch the references associated with the template much like what is available in the UI in the 'Reference By' tab.
Ideally, this information is added to an existing API like https://apidocs.harness.io/tag/Account-Template#operation/get-template-acc so that an additional json payload is available like:
```
"referenced_by": [
{"entity": {"name": "my entity", "type": "pipeline"}, "scope": {"name": "alpha", "type": "project"}}
]
```
(above sample just to illustrate example). as long as the api is ultimately filterable by template name, this would be immediately helpful to our monitoring goals.
Thanks!
Log In
V
Vocal Squirrel
That sounds great. Thanks for the response.
Rohan Gupta
long-term
We will expand the aPI to handle this scenario.