WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
This function pauses an active transfer session.
Note:
For more information about how this function works with other functions in the transfer and restore process, read our Guide to Transfer and Restore API Functions documentation.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/pause_transfer_session
- A server running WHM.
https://whm-server.tld:2087/json-api/pause_transfer_session
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/pause_transfer_session?transfer_session_id=exampleservercopya20140206192428NtyW'{ "metadata": { "command": "pause_transfer_session", "reason": "OK.", "result": 1, "version": 1 } }
Request
This function starts or restarts a transfer session.
Note:
For more information about how this function works with other functions in the transfer and restore process, read our Guide to Transfer and Restore API Functions documentation.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/start_transfer_session
- A server running WHM.
https://whm-server.tld:2087/json-api/start_transfer_session
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/start_transfer_session?transfer_session_id=exampleservercopya20140206192428NtyW'{ "data": { "pid": 90210 }, "metadata": { "command": "start_transfer_session", "reason": "OK", "result": 1, "version": 1 } }