GDPR Cookie Consent by Free Privacy Policy Generator
post thumb
Asset Control
by Matthias Hanitzsch-Moonlight/ on 26 Mar 2019

Retrieving ADO list contents with listado

To retrieve the contents of an ADO list from the command line or from within a shell script, you can use listado.

For normal (i.e. non-derived) lists, you would just supply the list ID:

acdba@acbox:~$ listado TFN_ADOS
C0.ISS.1
C0.ISS.2
C0.ISS.3
C0.ISS.4
acdba@acbox:~$ 

For derived lists, you might want to add the flag -e to force evaluation of the formula behind the list to ensure you get the latest results:

acdba@acbox:~$ listado -e TFN_ADOS_DERIVED
N0.BB.00-2143
N0.BB.00-2145
N0.BB.00-2147
N0.BB.00-2149
N0.BB.00-2151
N0.BB.00-2153
acdba@acbox:~$ 

You may also find it useful to know that listado works just as well for other types of lists, e.g. templates (which are really just lists of (lists of) attributes):

acdba@acbox:~$ listado C0_LSA
C0_AC007
C0_AC008
C0_AC028
C0_AC031
C0_A0177
C0_A0193
C0_A0236
C0_A0237
C0_A0239
C0_A0241
..
acdba@acbox:~$ 
comments powered by Disqus