Hi Dhayaanandh,
It could be the vCenter URL or the URL of the service endpoint which could be the same but generally there is no particular format expected.
ServerInfo.name property is just a display value so it can vary, you shouldn't base any logic on it but for showing it somewhere (e.g. vCenter selector). Normally, you need the ServerInfo.serviceUrl property.
Cheers,
Vladi