liara_get_bucket
Retrieve configuration and status details for a specific object storage bucket on the Liara cloud platform.
Instructions
Get details of a specific bucket
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the bucket |
Implementation Reference
- src/services/storage.ts:28-34 (handler)The main handler function that implements the logic to retrieve details of a specific Liara object storage bucket by its name using the Liara API client. This matches the expected 'liara_get_bucket' tool functionality.export async function getBucket( client: LiaraClient, name: string ): Promise<Bucket> { validateRequired(name, 'Bucket name'); return await client.get<Bucket>(`/v1/buckets/${name}`); }
- src/api/types.ts:174-179 (schema)TypeScript interface defining the structure of a Bucket object returned by the getBucket handler.export interface Bucket { _id: string; name: string; region: string; createdAt: string; }
- src/services/storage.ts:9-9 (helper)Imports helper functions for validation and response unwrapping used in the bucket operations.import { validateRequired, unwrapApiResponse } from '../utils/errors.js';
- src/services/storage.ts:32-32 (helper)Uses validation helper to ensure bucket name is provided.validateRequired(name, 'Bucket name');