Skip to content

How can I get a list of all products in my registry in staged status? #347

Answered by jordanpadams
jordanpadams asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the PDS Registry client to do this query.

Retrieve metadata for all products in staged:

$ pds-registry-client '/atm-registry/_search' --data '{"query":{"match":{"ops:Tracking_Meta/ops:archive_status":"staged"}}}' --pretty

Retrieve LIDVIDs for all products in staged:

$ pds-registry-client '/atm-registry/_search' --data '{"fields":["lidvid"],"query":{"match":{"ops:Tracking_Meta/ops:archive_status":"staged"}},"_source": false}' --pretty

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jordanpadams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant