Show Table of Contents
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

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.