I’ve managed to get my hosts to self register using the PowerShell framework and self service API. However when they are created the Display Name is always the FQDN and the Host Name is always the FQDN minus the Domain.
Is there anyway to change this or set the Display Name via the self service API / framework scripts?
For us the hostname is correctly set to FQDN (as set in the host template “Self Service API - Global Settings”).
Unfortunately the field display_name is not set at all which should be the local part of the hostname (i.e. without the domain part).
As long as we’ve used the old “PowerShell Module” (deprecated) the display_name variable was automatically set to the shortname.
We’re currently using the following parameters with PowerShell Framework: