Description

This function lists the tasks that the restoration queue has not yet processed.


Examples




https://hostname.example.com:2087/cpsess##########/json-api/restore_queue_list_pending?api.version=1




https://hostname.example.com:2087/cpsess##########/xml-api/restore_queue_list_pending?api.version=1




whmapi1 restore_queue_list_pending



{ 
   "data":{  
      "restore_job":[  
         {  
            "options":{  
               "give_ip":1,
               "mysql":1,
               "subdomains":1,
               "mail_config":1,
			   "destid": "local"
            },
            "restore_point":"2015-10-21",
            "user":"user"
         }
      ]
   },
   "metadata":{  
      "version":1,
      "reason":"OK",
      "result":"1",
      "command":"restore_queue_list_pending"
   }
}




<result>   
    <data>
      <restore_job>
         <options>
            <give_ip>1</give_ip>
            <mysql>1</mysql>
            <subdomains>1</subdomains>
            <mail_config>1</mail_config>
			<destid>local</destid>
         </options>
         <restore_point>2015-10-21</restore_point>
         <user>example</user>
      </restore_job>
   </data>
   <metadata>
      <version>1</version>
      <reason>OK</reason>
      <result>1</result>
      <command>restore_queue_list_pending</command>
   </metadata>
</result>




Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
restore_jobarray of hashesAn array of hashes that contain information about a pending task in the restoration queue.This hash includes the options hash and the user and restore_point returns. 

options

hash

A hash of information about the options for a pending task in the restoration queue.

The function returns this value in the restore_job hash.

This hash includes the give_ip, mysql, subdomains, mail_config, and destid returns.

 

give_ip

Boolean

Whether the task will assign the account a dedicated IP address.

The function returns this value in the options hash.

  • 1 — Assign.
  • 0 — Will not assign.
1

mysql

Boolean

Whether the task will restore the account's MySQL® databases.

The function returns this value in the options hash.

  • 1 — Restore.
  • 0 — Will not restore.
1

subdomains

Boolean

Whether the function will restore the account's subdomains.

The function returns this value in the options hash.

  • 1 — Restore.
  • 0 — Will not restore.
1

mail_config

Boolean

Whether the function will restore the account's email configuration.

The function returns this value in the options hash.

  • 1 — Restore.
  • 0 — Will not restore.
1

destid

string

The destination's identification string.

We added this return in cPanel & WHM version 80.

The function returns this value in the options hash.

  • local — The local directory.
  • The destination ID string's value.
LmTZCUpqqLSPH8AO7pVtIeNK

user

string

The cPanel account's username.

The function returns this value in the restore_job hash.

A valid cPanel username.example

restore_point

string

The date of the backup that the task will use.

The function returns this value in the restore_job hash.

A backup creation date, where:

  • YYYY represents the year.
  • MM represents the month.
  • DD represents the date.
2015-10-21