WebApp
Web Apps

Return application domains

Changed on

This function reports which of the account's domains are served by a deployed web application.

Note:

This function does not require the webapp account feature. Turning the feature off does not stop or remove a running application, so an interface needs a way to tell that an application still owns a domain.

get/WebApp/get_owned_domains

Request

  • Base URL
    https://cpanel-server.tld:2083/execute
  • Auth
    HTTP basic

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_owned_domains",
  "module": "WebApp",
  "result": {
    "data": [
      {
        "domain": "example.com",
        "runtime": "nodejs"
      }
    ],
    "status": 1
  }
}

Changes