- Created by Documentation, last modified on Oct 23, 2019
disable_authentication_provider
disable_failing_authentication_providers
enable_authentication_provider
get_available_authentication_providers
get_provider_client_configurations
get_provider_configuration_fields
get_provider_display_configurations
get_users_authn_linked_accounts
set_provider_client_configurations
set_provider_display_configurations
twofactorauth_generate_tfa_config
twofactorauth_get_user_configs
cpgreylist_is_server_netblock_trusted
cpgreylist_list_entries_for_common_mail_provider
cpgreylist_load_common_mail_providers_config
cpgreylist_save_common_mail_providers_config
cpgreylist_trust_entries_for_common_mail_provider
cpgreylist_untrust_entries_for_common_mail_provider
create_cpgreylist_trusted_host
delete_cpgreylist_trusted_host
block_incoming_email_from_country
block_incoming_email_from_domain
expunge_messages_for_mailbox_guid
get_unique_recipient_count_per_sender_for_user
get_unique_sender_recipient_count_per_user
get_user_email_forward_destination
list_blocked_incoming_email_countries
list_blocked_incoming_email_domains
set_user_email_forward_destination
unblock_incoming_email_from_country
unblock_incoming_email_from_domain
Description
This function retrieves the status of any backup transport events on the account.
Examples
https://hostname.example.com:2087/cpsess##########/json-api/backup_get_transport_status?api.version=1&transport_name=transportname&status=running
whmapi1 backup_get_transport_status transport_name=transportname status=running
Notes:
- Unless otherwise noted, you must URI-encode values.
- For more information and additional output options, read our Guide to WHM API 1 documentation or run the
whmapi1 --help
command. If you run CloudLinux™, you must use the full path of the
whmapi1
command:/usr/local/cpanel/bin/whmapi1
{ "data": { 'pages' : 3 'transport_status': { 'date': 2018-08-30, 'end_timestamp': 2018-08-30 02:04:59, 'start_timestamp': 2018-08-30 02:04:58 'status': running 'transport': transportname 'user': salem } }, "metadata": { "version": 1, "reason": "OK", "result": 1, "command": "backup_get_transfer_status" } }
Parameters
Parameter | Type | Description | Possible values | Example |
---|---|---|---|---|
transport_id or transport_name | string | The transport's ID or the transport's name. If you do not specify this parameter, the function returns all transports on the account. | A valid transport ID or a valid transport name. | transportname |
state | string | That transport's current state. If you do not specify this parameter, the function returns the status of all transports on the account. |
| running |
Returns
Return | Type | Description | Possible values | Example |
---|---|---|---|---|
pages | integer | The number of pages that the backup transports contain. Note: This return's value depends on the pagination variables that you pass when you call the function. | An integer value. | 3 |
transport_status | hash | A hash of information about each transport event. | This hash contains the date, end_timestamp , start_timestamp , status , transport , and user returns. | |
| string | The backup transport event's date. The function returns this value in the | A date in
| 2018-08-30 |
| string | The transport event's end time. The function returns this value in the | A date and time in
| 2018-08-30 02:04:06 |
| string | The transport event's start time. The function returns this value in the | A date and time in
| 2018-08-30 02:04:08 |
| string | The transport event's status. The function returns this value in the |
| running |
| string | The transport event's name. Note: If multiple transports use the same name, the system returns the first instance of the transport with that name. The function returns this value in the | A valid transport name. | transportname |
| string | The user for whom the system transported the backup The function returns this value in the | A valid username on the server. | salem |
Function information
API Version:
Available in:
WHM 78+
Methods:
GET, POST
Required Parameters:
(none)
Return Formats:
JSON
About WHM API 1
WHM API 1 performs functions and accesses data in WHM.
Notes:
- Some functions and parameters may require that you authenticate as the
root
user. - You must use the appropriate WHM ports (
2086
or2087
) to call WHM API functions.
Find a function
Related functions
-
Page:WHM API 1 Functions - toggle_user_backup_state — This function enables or disables legacy backups for a user.
-
Page:WHM API 1 Functions - backup_user_list — This function lists users with a backup file on a specified date.
-
Page:WHM API 1 Functions - backup_date_list — This function lists all dates that contain backup files.
-
Page:WHM API 1 Functions - list_cparchive_files — This function lists all available
cparchive
files. -
Page:WHM API 1 Functions - backup_skip_users_all_status — This function checks each user's backup configuration status while the
backup_skip_users_all
function runs.