/move/profile
0.2.0Unchanged since publicationPreview importing the source server's profile
usersreadallTests the connection to the configured UrbeStack source, fetches its profile, and returns the proposed changes in preview without applying them. The operation has a timeout of 290 seconds.
settings.changed lists settings whose values differ and gives both values. settings.added lists settings present only on the source. In both lists, names_old_server is true when the source value refers to its hostname, one of its IP addresses, or a nameserver. The web interface leaves those settings unselected by default. settings.same counts settings with matching values. The preview reports panel_port separately if applying it would change the destination's web interface port.
packages.new lists packages to add, packages.changed shows changes to individual package values, and packages.same reports matching packages. packages.waiting_for_owner lists reseller packages whose owners are absent from the destination. mail_lists and firewall_rules give the counts of mail lists and firewall rules in the profile.
files.sections reports which sections the profile contains, using the values hooks, overrides, custom, and files. files.names lists the files, files.fetch gives the rsync command to fetch them into /root/urbestack-review, and files.command gives the shell command to import them after review. The web interface leaves files that root would run or render for root to review and import. Use POST /move/copy with profile to apply the profile through the API.
Returns 400 if no source is configured or the source uses a third-party control panel, 409 if the source runs an incompatible UrbeStack version, and 502 if the source fails to respond.
Requires a token with the users scope. Returns 403 if the caller lacks administrator privileges.
As a command
Run as root on the serverExample
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/move/profile" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"preview": {}
}Errors
2 errors, each a status and a sentence401Authentication required403Insufficient privilegesurbestack.com/docs/api/get-move-profile/