Return additional domain conversion details

This function returns the details of a conversion from an addon domain to an account. Use WHM API 1's convert_addon_domain_to_account to start a conversion.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
job_id
required
integer >= 1

The conversion's job identification number.

Example: job_id=2
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/convert_addon_fetch_conversion_details
Request samples
whmapi1 --output=jsonpretty \
  convert_addon_fetch_conversion_details \
  job_id='2'
Response samples
application/json
{
  • "data": {
    • "domain": "cptestaddon175.tld",
    • "job_end_time": 1462216653,
    • "job_id": 2,
    • "job_start_time": 1462465001,
    • "job_status": "DONE",
    • "source_acct": "cptest",
    • "steps": [
      • {
        • "end_time": 1462465001,
        • "start_time": 1462465001,
        • "status": "DONE",
        • "step_name": "Saving email forwarder data",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465001,
        • "start_time": 1462465001,
        • "status": "DONE",
        • "step_name": "Saving custom DNS records",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465001,
        • "start_time": 1462465001,
        • "status": "DONE",
        • "step_name": "Saving installed SSL Certificate",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465001,
        • "start_time": 1462465001,
        • "status": "DONE",
        • "step_name": "Saving EasyApache 4 configuration",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465009,
        • "start_time": 1462465001,
        • "status": "DONE",
        • "step_name": "Removing Addon Domain",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465014,
        • "start_time": 1462465009,
        • "status": "DONE",
        • "step_name": "Creating new cPanel account",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465015,
        • "start_time": 1462465014,
        • "status": "DONE",
        • "step_name": "Restoring custom DNS records",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465016,
        • "start_time": 1462465015,
        • "status": "DONE",
        • "step_name": "Copying Custom VirtualHost Includes",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465016,
        • "start_time": 1462465016,
        • "status": "DONE",
        • "step_name": "Copying document root content",
        • "warnings": "/usr/bin/gtar: ./shadow: Cannot open: Permission denied\\n/usr/bin/gtar: Exiting with failure status due to previous errors"
        },
      • {
        • "end_time": 1462465016,
        • "start_time": 1462465016,
        • "status": "DONE",
        • "step_name": "Setting the proper permissions on document root",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465017,
        • "start_time": 1462465016,
        • "status": "DONE",
        • "step_name": "Copying email accounts",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465017,
        • "start_time": 1462465017,
        • "status": "DONE",
        • "step_name": "Restoring email forwarders",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465017,
        • "start_time": 1462465017,
        • "status": "DONE",
        • "step_name": "Copying Autoresponders",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465017,
        • "start_time": 1462465017,
        • "status": "DONE",
        • "step_name": "Copying webmail data",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465017,
        • "start_time": 1462465017,
        • "status": "DONE",
        • "step_name": "Restoring installed SSL Certificate",
        • "warnings": ""
        },
      • {
        • "end_time": 1462465017,
        • "start_time": 1462465017,
        • "status": "DONE",
        • "step_name": "Restoring EasyApache 4 configuration",
        • "warnings": ""
        }
      ],
    • "target_acct": "user2"
    },
  • "metadata": {
    • "command": "convert_addon_fetch_conversion_details",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}