How to simply check if a content view version was already promoted to a lifecycle environment via API?
Issue
How to find out whether a particular version of a content view has been already promoted to a lifecycle environment? There is a hammer option for this:
[root@satellite65 ~]# hammer content-view version list
---|-------------------------------|---------|-----------------------
ID | NAME | VERSION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|-----------------------
49 | test 1.0 | 1.0 | Library
48 | ccv2 1.8 | 1.8 | Library
47 | cv1 1.8 | 1.8 |
46 | ccv2 1.7 | 1.7 |
45 | cv1 1.7 | 1.7 |
44 | cv2 1.9 | 1.9 | Library
or specifically with
[root@satellite65 ~]# hammer content-view version info --id 13
But how to do it via API?
Environment
Satellite 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.