import 'package:openapi/api.dart';All URIs are relative to https://cloud.lambda.ai
| Method | HTTP request | Description |
|---|---|---|
| createFilesystem | POST /api/v1/filesystems | Create filesystem |
| filesystemDelete | DELETE /api/v1/filesystems/{id} | Delete filesystem |
| listFilesystems | GET /api/v1/file-systems | List filesystems |
CreateFilesystem200Response createFilesystem(filesystemCreateRequest)
Create filesystem
Creates a new filesystem.
import 'package:openapi/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
// TODO Configure HTTP Bearer authorization: bearerAuth
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken(yourTokenGeneratorFunction);
final api_instance = FilesystemsApi();
final filesystemCreateRequest = FilesystemCreateRequest(); // FilesystemCreateRequest |
try {
final result = api_instance.createFilesystem(filesystemCreateRequest);
print(result);
} catch (e) {
print('Exception when calling FilesystemsApi->createFilesystem: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| filesystemCreateRequest | FilesystemCreateRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FilesystemDelete200Response filesystemDelete(id)
Delete filesystem
Deletes the filesystem with the specified ID. The filesystem must not be mounted to any running instances at the time of deletion.
import 'package:openapi/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
// TODO Configure HTTP Bearer authorization: bearerAuth
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken(yourTokenGeneratorFunction);
final api_instance = FilesystemsApi();
final id = 398578a2336b49079e74043f0bd2cfe8; // String | The unique identifier (ID) of the filesystem to delete
try {
final result = api_instance.filesystemDelete(id);
print(result);
} catch (e) {
print('Exception when calling FilesystemsApi->filesystemDelete: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The unique identifier (ID) of the filesystem to delete |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListFilesystems200Response listFilesystems()
List filesystems
Retrieves a list of your filesystems.
import 'package:openapi/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
// TODO Configure HTTP Bearer authorization: bearerAuth
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken(yourTokenGeneratorFunction);
final api_instance = FilesystemsApi();
try {
final result = api_instance.listFilesystems();
print(result);
} catch (e) {
print('Exception when calling FilesystemsApi->listFilesystems: $e\n');
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]