Viewing Information of a Site

This method displays the details of a site on the Parallels Pro Control Panel server.

Method

public SiteInformation GetSiteInfo (string siteshortname, string username, string password)

Parameters

  • siteshortname, which is the short name of the site
  • username, which is the username of the service provider/Reseller
  • password, which is the password of the service provider/Reseller

Return Value

Object of SiteInformation containing details of the specified site.

Example code:

SiteInformation siteInfo;

siteInfo = w.GetSiteInfo("mysite.com", "admin", "ensim123");

Console.WriteLine("Site Display Name: " + siteInfo.DisplayName);

Console.WriteLine("Domain Name: " + siteInfo.DomainName);

Console.WriteLine("Short Name: " + siteInfo.ShortName);

Console.WriteLine("Admin User Name: " + siteInfo.AdminUserName);

Console.WriteLine("Contact Email: " + siteInfo.ContactEmail);

Console.WriteLine("Contact Name: " + siteInfo.ContactName);

Console.WriteLine("Contact Phone: " + siteInfo.ContactPhone);