SSL
cPanel Account Settings

Return SSL-encrypted domain for service access

This function retrieves the most appropriate SSL-encrypted domain to use to access a service.

get/get_best_ssldomain_for_service

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

Query parameters

servicestring required
Example:whostmgr

The service's name.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "cert_match_method": "none",
    "cert_valid_not_after": 1457452989,
    "is_self_signed": 1,
    "ssldomain": "hostname.example.com"
  },
  "metadata": {
    "command": "get_best_ssldomain_for_service",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.