All URIs are relative to https://cpanel-server.tld:2083/execute
Method | HTTP request | Description |
---|---|---|
any_running | GET /WordPressBackup/any_running | Return all WordPress sites' backup status |
cancel | GET /WordPressBackup/cancel | Stop WordPress site backup |
cleanup | GET /WordPressBackup/cleanup | Delete WordPress backup temporary files |
get_available_backups | GET /WordPressBackup/get_available_backups | Return WordPress site backups |
is_running | GET /WordPressBackup/is_running | Return WordPress site backup status |
start | GET /WordPressBackup/start | Backup WordPress site |
InlineResponse200556 any_running()
Return all WordPress sites' backup status
This function checks for any active WordPress® site backups on the cPanel account.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Basic Authentication (BasicAuth):
import clientapi_cpanel
from clientapi_cpanel.models.inline_response200556 import InlineResponse200556
from clientapi_cpanel.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cpanel-server.tld:2083/execute
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_cpanel.Configuration(
host = "https://cpanel-server.tld:2083/execute"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: BasicAuth
configuration = clientapi_cpanel.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with clientapi_cpanel.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_cpanel.WordPressBackupApi(api_client)
try:
# Return all WordPress sites' backup status
api_response = api_instance.any_running()
print("The response of WordPressBackupApi->any_running:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WordPressBackupApi->any_running: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | HTTP Request was successful. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200557 cancel(site)
Stop WordPress site backup
This function cancels a WordPress® site backup.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Basic Authentication (BasicAuth):
import clientapi_cpanel
from clientapi_cpanel.models.inline_response200557 import InlineResponse200557
from clientapi_cpanel.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cpanel-server.tld:2083/execute
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_cpanel.Configuration(
host = "https://cpanel-server.tld:2083/execute"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: BasicAuth
configuration = clientapi_cpanel.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with clientapi_cpanel.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_cpanel.WordPressBackupApi(api_client)
site = clientapi_cpanel.Site() # Site | The WordPress site's URL without the protocol prefix.
try:
# Stop WordPress site backup
api_response = api_instance.cancel(site)
print("The response of WordPressBackupApi->cancel:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WordPressBackupApi->cancel: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
site | Site | The WordPress site's URL without the protocol prefix. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | HTTP Request was successful. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200558 cleanup(site)
Delete WordPress backup temporary files
This function releases any system resources from a previous WordPress® site backup.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Basic Authentication (BasicAuth):
import clientapi_cpanel
from clientapi_cpanel.models.inline_response200558 import InlineResponse200558
from clientapi_cpanel.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cpanel-server.tld:2083/execute
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_cpanel.Configuration(
host = "https://cpanel-server.tld:2083/execute"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: BasicAuth
configuration = clientapi_cpanel.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with clientapi_cpanel.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_cpanel.WordPressBackupApi(api_client)
site = 'example.com/wordpress' # str | The WordPress site's URL **without** the protocol prefix.
try:
# Delete WordPress backup temporary files
api_response = api_instance.cleanup(site)
print("The response of WordPressBackupApi->cleanup:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WordPressBackupApi->cleanup: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
site | str | The WordPress site's URL without the protocol prefix. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | HTTP Request was successful. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200559 get_available_backups(site)
Return WordPress site backups
This function retrieves a list of available WordPress® site backups of a single site.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Basic Authentication (BasicAuth):
import clientapi_cpanel
from clientapi_cpanel.models.inline_response200559 import InlineResponse200559
from clientapi_cpanel.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cpanel-server.tld:2083/execute
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_cpanel.Configuration(
host = "https://cpanel-server.tld:2083/execute"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: BasicAuth
configuration = clientapi_cpanel.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with clientapi_cpanel.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_cpanel.WordPressBackupApi(api_client)
site = 'example.com/wordpress' # str | The WordPress site's URL **without** the protocol prefix.
try:
# Return WordPress site backups
api_response = api_instance.get_available_backups(site)
print("The response of WordPressBackupApi->get_available_backups:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WordPressBackupApi->get_available_backups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
site | str | The WordPress site's URL without the protocol prefix. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | HTTP Request was successful. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200560 is_running(site)
Return WordPress site backup status
This function checks for an active WordPress® site backup.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Basic Authentication (BasicAuth):
import clientapi_cpanel
from clientapi_cpanel.models.inline_response200560 import InlineResponse200560
from clientapi_cpanel.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cpanel-server.tld:2083/execute
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_cpanel.Configuration(
host = "https://cpanel-server.tld:2083/execute"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: BasicAuth
configuration = clientapi_cpanel.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with clientapi_cpanel.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_cpanel.WordPressBackupApi(api_client)
site = 'example.com example.com/wordpress' # str | The WordPress site's URL **without** `http://`.
try:
# Return WordPress site backup status
api_response = api_instance.is_running(site)
print("The response of WordPressBackupApi->is_running:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WordPressBackupApi->is_running: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
site | str | The WordPress site's URL without `http://`. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | HTTP Request was successful. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200561 start(site)
Backup WordPress site
This function starts a single WordPress® site backup.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Basic Authentication (BasicAuth):
import clientapi_cpanel
from clientapi_cpanel.models.inline_response200561 import InlineResponse200561
from clientapi_cpanel.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://cpanel-server.tld:2083/execute
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_cpanel.Configuration(
host = "https://cpanel-server.tld:2083/execute"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: BasicAuth
configuration = clientapi_cpanel.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with clientapi_cpanel.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_cpanel.WordPressBackupApi(api_client)
site = clientapi_cpanel.Site1() # Site1 | The WordPress site's URL without the protocol prefix.
try:
# Backup WordPress site
api_response = api_instance.start(site)
print("The response of WordPressBackupApi->start:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WordPressBackupApi->start: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
site | Site1 | The WordPress site's URL without the protocol prefix. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | HTTP Request was successful. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]