fao89 / pulp_ansible

A Pulp plugin that manages Ansible content, i.e. roles, collections
https://pulp-ansible.readthedocs.io/en/latest/
GNU General Public License v2.0
0 stars 0 forks source link

As a user I can copy collections by name from one repo to another #31

Open fao89 opened 2 years ago

fao89 commented 2 years ago

Author: @bmbouter (bmbouter)

Redmine Issue: 6197, https://pulp.plan.io/issues/6197


The endpoint would use the copy action endpoint: /pulp/api/v3/repositories/ansible/ansible/copy/.

It would take a criteria object (see below) and also a source_repository and destination_repository. A new repository version will be created in the destination repository.

{"TYPE": [{[fields]}]} so like {"collection_version": [{"namespace": "whatever", "name": "ok"}, {"namespace": "another}]} 

It would copy all versions that match in all cases.