Reseller Central JSON API Developer Docs - Scripts & Tools

Scripts & Tools Functions

The below functions allow you to run scripts and tools on accounts in your Reseller Central.

fixPermissions

Run the fix permissions script on an account to ensure your account is compatible with the PHP setup of the server.

  • Required Parameters:
    • api_key (string) - Reseller Central generated API Key
    • Use one of the following:
      • domain_id (int) - primary domain id of the account
      • domain (string) - primary domain of the account
  • Example: https://cp.hostnine.com/api/?module=fixPermissions&api_key=mygeneratedapikey&domain=mydomainhere.com
  • Return: Show

checkFirewallBan

Remove an IP address blockage by the firewall of the server for the given account.

  • Required Parameters:
    • api_key (string) - Reseller Central generated API Key
    • ip (string) - IP Address to check in the firewall
    • Use one of the following:
      • domain_id (int) - primary domain id of the account
      • domain (string) - primary domain of the account
  • Example: https://cp.hostnine.com/api/?module=checkFirewallBan&api_key=mygeneratedapikey
         &domain=mydomainhere.com&ip=12.34.56.78
  • Return: Show

removeFirewallBan

Check if an IP address is being blocked by the firewall of the server where the given account is located.

  • Required Parameters:
    • api_key (string) - Reseller Central generated API Key
    • ip (string) - IP Address to remove from the firewall
    • Use one of the following:
      • domain_id (int) - primary domain id of the account
      • domain (string) - primary domain of the account
  • Example: https://cp.hostnine.com/api/?module=removeFirewallBan&api_key=mygeneratedapikey
         &domain=mydomainhere.com&ip=12.34.56.78
  • Return: Show