liara_delete_ftp_access
Revoke FTP access permissions for a specific disk in your Liara cloud application to remove file transfer capabilities.
Instructions
Delete/revoke FTP access for a disk
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appName | Yes | The name of the app | |
| diskName | Yes | The name of the disk | |
| ftpId | Yes | The FTP access ID to delete |
Implementation Reference
- src/services/disks.ts:124-135 (handler)The core handler function that executes the logic to delete/revoke FTP access for a specific disk in a Liara project by making a DELETE request to the Liara API.export async function deleteFtpAccess( client: LiaraClient, appName: string, diskName: string, ftpId: string ): Promise<void> { validateAppName(appName); validateRequired(diskName, 'Disk name'); validateRequired(ftpId, 'FTP access ID'); await client.delete(`/v1/projects/${appName}/disks/${diskName}/ftp/${ftpId}`); }
- src/api/types.ts:257-263 (schema)Type definition for FTP access credentials, used in create/list operations related to the delete tool.export interface FtpAccess { _id?: string; hostname: string; port: number; username: string; password: string; }