<https://puppet.com/docs/pe/2021.7/import_hierarch...
# puppet-enterprise
d
https://puppet.com/docs/pe/2021.7/import_hierarchy_endpoint.html is the endpoint to restore. The PEADM module has a task using the apis https://github.com/puppetlabs/puppetlabs-peadm/blob/main/tasks/backup_classification.rb https://github.com/puppetlabs/puppetlabs-peadm/blob/main/tasks/restore_classification.rb It also has a transform to only restore application groups and not infrastructure groups if you are wanting to take your application groups to new infrastructure. https://github.com/puppetlabs/puppetlabs-peadm/blob/main/tasks/transform_classification_groups.py