liara_create_ftp_access
Create FTP access for a disk to enable file transfer between your application and storage on the Liara cloud platform.
Instructions
Create 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 |
Implementation Reference
- src/services/disks.ts:89-100 (handler)The main handler function that implements the logic for creating FTP access to a disk by calling the Liara API endpoint. This is the core implementation of the 'liara_create_ftp_access' tool.export async function createFtpAccess( client: LiaraClient, appName: string, diskName: string ): Promise<FtpAccess> { validateAppName(appName); validateRequired(diskName, 'Disk name'); return await client.post<FtpAccess>( `/v1/projects/${appName}/disks/${diskName}/ftp` ); }
- src/api/types.ts:257-263 (schema)Type definition for the FTP access object, used as the return type for the createFtpAccess function.export interface FtpAccess { _id?: string; hostname: string; port: number; username: string; password: string; }