Skip to main content

backupftp_accesses

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

Overview​

Namebackupftp_accesses
TypeResource
Idovh.vps.backupftp_accesses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
cifsbooleanWhether to allow the CIFS (SMB) protocol for this ACL
ftpbooleanWhether to allow the FTP protocol for this ACL
ip_blockstring (ip-block)The IP Block specific to this ACL (example: 192.0.2.0/24) (wire: ipBlock)
is_appliedbooleanWhether the rule has been applied on the Backup Ftp (wire: isApplied)
last_updatestring (date-time)Date of the last object modification (wire: lastUpdate)
nfsbooleanWhether to allow the NFS protocol for this ACL

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectip_block, service_nameReturns the FTP, CIFS and NFS access settings of an IP block in the Backup FTP ACL of the VPS.
listselectservice_namex_pagination_modeReturns the IP blocks allowed to connect to the Backup FTP of the VPS.
createinsertservice_name, cifs, ip_block, nfsAdds an IP block to the Backup FTP ACL of the VPS and returns the task that performs it.
updateupdateip_block, service_nameUpdates the FTP, CIFS and NFS access settings of an IP block in the Backup FTP ACL of the VPS.
deletedeleteip_block, service_nameRemoves an IP block from the Backup FTP ACL of the VPS and returns the task that performs it.

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"}})
ip_blockstring (ip-block)Ip block (wire: ipBlock)
service_namestringService name (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns the FTP, CIFS and NFS access settings of an IP block in the Backup FTP ACL of the VPS.

SELECT
cifs,
ftp,
ip_block,
is_applied,
last_update,
nfs
FROM ovh.vps.backupftp_accesses
WHERE ip_block = '{{ ip_block }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Adds an IP block to the Backup FTP ACL of the VPS and returns the task that performs it.

INSERT INTO ovh.vps.backupftp_accesses (
cifs,
ftp,
ip_block,
nfs,
service_name
)
SELECT
{{ cifs }} /* required */,
{{ ftp }},
'{{ ip_block }}' /* required */,
{{ nfs }} /* required */,
'{{ service_name }}'
RETURNING
planned_intervention_id,
task_id,
comment,
done_date,
function,
last_update,
need_schedule,
note,
start_date,
status,
tags,
ticket_reference
;

UPDATE examples​

Updates the FTP, CIFS and NFS access settings of an IP block in the Backup FTP ACL of the VPS.

UPDATE ovh.vps.backupftp_accesses
SET
cifs = {{ cifs }},
ftp = {{ ftp }},
nfs = {{ nfs }}
WHERE
ip_block = '{{ ip_block }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Removes an IP block from the Backup FTP ACL of the VPS and returns the task that performs it.

DELETE FROM ovh.vps.backupftp_accesses
WHERE ip_block = '{{ ip_block }}' --required
AND service_name = '{{ service_name }}' --required
;