Skip to main content

features_backup_ftps

Creates, updates, deletes, gets or lists a features_backup_ftps resource.

Overview​

Namefeatures_backup_ftps
TypeResource
Idovh.dedicated_server.features_backup_ftps

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
ftp_backup_namestringThe backup FTP server name (wire: ftpBackupName)
quotaobjectThe disk space available in gigabytes
read_only_datestring (date-time)If not-null, gives the date since when your account was set in read-only mode because the quota was exceeded (wire: readOnlyDate)
typestringThe backup FTP type (included, storage)
usageobjectThe disk space currently used on your backup FTP in percent

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet the backup FTP space. Returns the backup FTP space: its server name, type, available disk space and usage. readOnlyDate is set when the account was switched to read-only because the quota was exceeded.
createinsertservice_nameCreate the backup FTP space. Creates the backup FTP space and returns a task. The IP blocks allowed to reach it, and their protocols, are managed with the access routes.
deletedeleteservice_nameDelete the backup FTP space. Terminates the backup FTP space and returns a task. All data stored on it is permanently deleted.
passwordexecserviceNameReset the backup FTP password. Resets the backup FTP password and returns a task. The response does not contain the new password.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
serviceNamestringThe internal name of your dedicated server
service_namestringThe internal name of your dedicated server (wire: serviceName)

SELECT examples​

Get the backup FTP space. Returns the backup FTP space: its server name, type, available disk space and usage. readOnlyDate is set when the account was switched to read-only because the quota was exceeded.

SELECT
ftp_backup_name,
quota,
read_only_date,
type,
usage
FROM ovh.dedicated_server.features_backup_ftps
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create the backup FTP space. Creates the backup FTP space and returns a task. The IP blocks allowed to reach it, and their protocols, are managed with the access routes.

INSERT INTO ovh.dedicated_server.features_backup_ftps (
service_name
)
SELECT
'{{ service_name }}'
RETURNING
planned_intervention_id,
task_id,
change_uuid,
comment,
done_date,
function,
last_update,
need_schedule,
note,
start_date,
status,
tags,
ticket_reference
;

DELETE examples​

Delete the backup FTP space. Terminates the backup FTP space and returns a task. All data stored on it is permanently deleted.

DELETE FROM ovh.dedicated_server.features_backup_ftps
WHERE service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Reset the backup FTP password. Resets the backup FTP password and returns a task. The response does not contain the new password.

EXEC ovh.dedicated_server.features_backup_ftps.password
@serviceName='{{ serviceName }}' --required
;