Hi, I have problems getting the HREF of a rpm publication to create the distribution.
in https://pulp-rpm.readthedocs.io/en/latest/workflows/create_sync_publish.html#create-a-publication the command $ http POST :24817/pulp/api/v3/publications/rpm/rpm/ repository=$REPO_HREF Do not return the _href as in the example. It only gives the task, so I can not get the HREF at this moment. The next command |$ export PUBLICATION_HREF=$(http :24817/pulp/api/v3/publications/rpm/rpm/ | jq -r '.results[] | ._href')| only works when there is only one publication. When there is more than one it gives [vagrant@dev-pulp-server ~]$ http $PORT/pulp/api/v3/publications/rpm/rpm/ | jq -r '.results[] | ._href' /pulp/api/v3/publications/rpm/rpm/2e145f16-95a8-4a35-b1e4-ecdb5c4c08d9/ /pulp/api/v3/publications/rpm/rpm/fa835dfb-4c33-4d7c-a74b-b0065b43ca97/ /pulp/api/v3/publications/rpm/rpm/d4cd0d2a-9979-43af-8bcb-e4d24f8f6ebd/ /pulp/api/v3/publications/rpm/rpm/c81bf7e3-8ba4-4642-a64f-fae6a73bc9ed/ In previous release the selection was done with the publisher href |$ export PUBLICATION_HREF=$(http :24817/pulp/api/v3/publications/rpm/rpm/ | jq -r '.results[] | ._href')| It will be interesting to have a query parameter that allow to select a publication based, for example, on the repository. https://pulp-rpm.readthedocs.io/en/latest/restapi.html#operation/publications_rpm_rpm_list Also, to get the href at the creation of the publication will help and reduce the number of task. Is there any solution I did not see? Juan -- Juan CABRERA Correspondant informatique Département de Mathématiques T. 081724919 [email protected] <mailto:[email protected]> http://staff.unamur.be/jbcabrer Université de Namur ASBL Rue de Bruxelles 61 - 5000 Namur Belgique Let’s respect the environment together. Only print this message if necessary!
_______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
