VMware Cloud Director 10.6
The recommended method to restore the Primary Cloud Director Appliance from backup is to follow the documentation, Restore Your Primary VMware Cloud Director Appliance.
It is also possible to perform the restore via the Appliance API as outlined in the Appliance API documentation, Cloud Director Appliance API - /api/1.0.0/backups/{backup-name}/restore.
Example steps using curl would be as follows:
backups directory in which the backup file is located.backups directory must have 750 permission and vcloud.vcloud ownership. curl -kv -H 'Accept:application/json' -H 'Content-Type:application/json' -u 'root' -X PUT 'https://localhost:5480/api/1.0.0/mount' --data-raw '{"nfs":"nfs.example.com:/mnt/nfs-share"}'curl -kv -H 'Accept:application/json' -H 'Content-Type:application/json' -u 'root' -X GET 'https://localhost:5480/api/1.0.0/backups'curl -kv -H 'Accept:application/json' -H 'Content-Type:application/json' -u 'root' -X POST 'https://localhost:5480/api/1.0.0/backups/backup-2024-09-24T123456+0000.zip/restore' --data-raw '{"nfs":"nfs.example.com:/mnt/nfs-share","httpCert":false,"consoleproxyCert":false,"pgmanagementCert":false}'202 Accepted" response and provide a location response header containing a Task ID.curl -kv -H 'Accept:application/json' -H 'Content-Type:application/json' -u 'root' -X GET 'https://localhost:5480/api/1.0.0/tasks/########-####-####-####-############'stopped and a message of the form, "Backup file '<backup-file-name>' has been restored successfully".