A.6. Clone

To create a new repository by cloning an existing one:
  • method: POST
  • path: /repositories/<id>/clone/
  • permission: EXECUTE
  • success response: 200 OK
  • failure response:
    • 404 Not Found if the id does not match a repository
    • 409 Conflict if the parameters match an existing repository
    • 409 Conflict if the parent repository is currently syncing
  • return: a Task object
  • parameters:
    • clone_id <str> the id of the clone repository
    • clone_name <str> the namd of clone repository
    • feed <str> parent/origin/none
    • relative_path (optional) <str> clone repository on disk path
    • groupid (optional)<str> repository groups that clone belongs to
    • filters (optional) <list of objects> synchronization filters to apply to the clone
    • publish (optional) <bool> sets the publish state on a repository; if not specified uses 'default_to_published' value from pulp.conf