View the Project on GitHub elements-storage/elements-sdk-dotnet
All URIs are relative to https://elements.local
Method | HTTP request | Description |
---|---|---|
ApplyWorkspaceAffinity | POST /api/2/workspaces/{id}/apply-affinity | |
BookmarkWorkspace | POST /api/2/workspaces/{id}/bookmark | |
CalculateDirectorySize | POST /api/2/filesystem/calculate-directory-size | |
CheckInIntoWorkspace | POST /api/2/workspaces/{id}/check-in | |
CheckOutOfWorkspace | POST /api/2/workspaces/{id}/check-out | |
CopyFiles | POST /api/2/filesystem/copy | |
CreateFile | POST /api/2/files | |
CreatePathQuota | POST /api/2/volumes/{id}/quotas/path/{relative_path} | |
CreateProduction | POST /api/2/productions | |
CreateShare | POST /api/2/shares | |
CreateSnapshot | POST /api/2/snapshots | |
CreateTemplateFolder | POST /api/2/private/create-template-folder | |
CreateWorkspace | POST /api/2/workspaces | |
CreateWorkspacePermission | POST /api/2/workspace-permissions | |
DeleteFile | DELETE /api/2/files/{path} | |
DeleteFiles | POST /api/2/filesystem/delete | |
DeletePathQuota | DELETE /api/2/volumes/{id}/quotas/path/{relative_path} | |
DeleteProduction | DELETE /api/2/productions/{id} | |
DeleteShare | DELETE /api/2/shares/{id} | |
DeleteSnapshot | DELETE /api/2/snapshots/{id} | |
DeleteWorkspace | DELETE /api/2/workspaces/{id} | |
DeleteWorkspacePermission | DELETE /api/2/workspace-permissions/{id} | |
GetAllDeletedWorkspaces | GET /api/2/workspaces/deleted | |
GetAllProductions | GET /api/2/productions | |
GetAllShares | GET /api/2/shares | |
GetAllSnapshots | GET /api/2/snapshots | |
GetAllVolumes | GET /api/2/volumes | |
GetAllWorkspacePermissions | GET /api/2/workspace-permissions | |
GetAllWorkspaces | GET /api/2/workspaces | |
GetFile | GET /api/2/files/{path} | |
GetGroupQuota | GET /api/2/volumes/{id}/quotas/group/{group_id} | |
GetMyWorkspaces | GET /api/2/workspaces/mine | |
GetPathQuota | GET /api/2/volumes/{id}/quotas/path/{relative_path} | |
GetProduction | GET /api/2/productions/{id} | |
GetRootDirectory | GET /api/2/files | |
GetSambaDfreeString | POST /api/2/private/dfree | |
GetShare | GET /api/2/shares/{id} | |
GetSnapshot | GET /api/2/snapshots/{id} | |
GetUserQuota | GET /api/2/volumes/{id}/quotas/user/{user_id} | |
GetVolume | GET /api/2/volumes/{id} | |
GetVolumeActiveConnections | GET /api/2/volumes/{id}/connections | |
GetVolumeFileSizeDistribution | GET /api/2/volumes/{id}/file-size-distribution | |
GetVolumeStats | GET /api/2/volumes/{id}/stats | |
GetWorkspace | GET /api/2/workspaces/{id} | |
GetWorkspacePermission | GET /api/2/workspace-permissions/{id} | |
MoveFiles | POST /api/2/filesystem/move | |
MoveWorkspace | POST /api/2/workspaces/{id}/move | |
MoveWorkspaceToProduction | POST /api/2/workspaces/{id}/move-to | |
PatchFile | PATCH /api/2/files/{path} | |
PatchProduction | PATCH /api/2/productions/{id} | |
PatchShare | PATCH /api/2/shares/{id} | |
PatchSnapshot | PATCH /api/2/snapshots/{id} | |
PatchVolume | PATCH /api/2/volumes/{id} | |
PatchWorkspace | PATCH /api/2/workspaces/{id} | |
PatchWorkspacePermission | PATCH /api/2/workspace-permissions/{id} | |
RecordStorageTrace | POST /api/2/filesystem/trace | |
RepairWorkspacePermissions | POST /api/2/workspaces/{id}/repair-permissions | |
ShareToHomeWorkspace | POST /api/2/share-to-home-workspace | |
UnbookmarkWorkspace | DELETE /api/2/workspaces/{id}/bookmark | |
UnzipFile | POST /api/2/filesystem/unzip | |
UpdateGroupQuota | PUT /api/2/volumes/{id}/quotas/group/{group_id} | |
UpdatePathQuota | PUT /api/2/volumes/{id}/quotas/path/{relative_path} | |
UpdateProduction | PUT /api/2/productions/{id} | |
UpdateShare | PUT /api/2/shares/{id} | |
UpdateSnapshot | PUT /api/2/snapshots/{id} | |
UpdateUserQuota | PUT /api/2/volumes/{id}/quotas/user/{user_id} | |
UpdateVolume | PUT /api/2/volumes/{id} | |
UpdateWorkspace | PUT /api/2/workspaces/{id} | |
UpdateWorkspacePermission | PUT /api/2/workspace-permissions/{id} | |
ZipFiles | POST /api/2/filesystem/zip |
void ApplyWorkspaceAffinity (int id)
projects:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class ApplyWorkspaceAffinityExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
try
{
apiInstance.ApplyWorkspaceAffinity(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.ApplyWorkspaceAffinity: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void BookmarkWorkspace (int id)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class BookmarkWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
try
{
apiInstance.BookmarkWorkspace(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.BookmarkWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FileSizeEndpointResponse CalculateDirectorySize (PathInput pathInput)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CalculateDirectorySizeExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var pathInput = new PathInput(); // PathInput |
try
{
FileSizeEndpointResponse result = apiInstance.CalculateDirectorySize(pathInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CalculateDirectorySize: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pathInput | PathInput |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void CheckInIntoWorkspace (int id, WorkspaceCheckIn workspaceCheckIn)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CheckInIntoWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
var workspaceCheckIn = new WorkspaceCheckIn(); // WorkspaceCheckIn |
try
{
apiInstance.CheckInIntoWorkspace(id, workspaceCheckIn);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CheckInIntoWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. | |
workspaceCheckIn | WorkspaceCheckIn |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void CheckOutOfWorkspace (int id)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CheckOutOfWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
try
{
apiInstance.CheckOutOfWorkspace(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CheckOutOfWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInfo CopyFiles (FileCopyEndpointRequest fileCopyEndpointRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CopyFilesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var fileCopyEndpointRequest = new FileCopyEndpointRequest(); // FileCopyEndpointRequest |
try
{
TaskInfo result = apiInstance.CopyFiles(fileCopyEndpointRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CopyFiles: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
fileCopyEndpointRequest | FileCopyEndpointRequest |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FilesystemFile CreateFile (FilesystemFile filesystemFile)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateFileExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var filesystemFile = new FilesystemFile(); // FilesystemFile |
try
{
FilesystemFile result = apiInstance.CreateFile(filesystemFile);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreateFile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filesystemFile | FilesystemFile |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void CreatePathQuota (int id, string relativePath, CreatePathQuotaRequest createPathQuotaRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreatePathQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var relativePath = relativePath_example; // string |
var createPathQuotaRequest = new CreatePathQuotaRequest(); // CreatePathQuotaRequest |
try
{
apiInstance.CreatePathQuota(id, relativePath, createPathQuotaRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreatePathQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
relativePath | string | ||
createPathQuotaRequest | CreatePathQuotaRequest |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Production CreateProduction (Production production)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateProductionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var production = new Production(); // Production |
try
{
Production result = apiInstance.CreateProduction(production);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreateProduction: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
production | Production |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Share CreateShare (Share share)
shares:view
(read) / shares:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateShareExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var share = new Share(); // Share |
try
{
Share result = apiInstance.CreateShare(share);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreateShare: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
share | Share |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Snapshot CreateSnapshot (Snapshot snapshot)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateSnapshotExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var snapshot = new Snapshot(); // Snapshot |
try
{
Snapshot result = apiInstance.CreateSnapshot(snapshot);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreateSnapshot: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
snapshot | Snapshot |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void CreateTemplateFolder (CreateTemplateFolderEndpointRequest createTemplateFolderEndpointRequest)
folder_templates:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateTemplateFolderExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var createTemplateFolderEndpointRequest = new CreateTemplateFolderEndpointRequest(); // CreateTemplateFolderEndpointRequest |
try
{
apiInstance.CreateTemplateFolder(createTemplateFolderEndpointRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreateTemplateFolder: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
createTemplateFolderEndpointRequest | CreateTemplateFolderEndpointRequest |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceDetail CreateWorkspace (WorkspaceDetail workspaceDetail)
None
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var workspaceDetail = new WorkspaceDetail(); // WorkspaceDetail |
try
{
WorkspaceDetail result = apiInstance.CreateWorkspace(workspaceDetail);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreateWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
workspaceDetail | WorkspaceDetail |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspacePermission CreateWorkspacePermission (WorkspacePermission workspacePermission)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateWorkspacePermissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var workspacePermission = new WorkspacePermission(); // WorkspacePermission |
try
{
WorkspacePermission result = apiInstance.CreateWorkspacePermission(workspacePermission);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.CreateWorkspacePermission: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
workspacePermission | WorkspacePermission |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteFile (string path)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteFileExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var path = path_example; // string |
try
{
apiInstance.DeleteFile(path);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeleteFile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
path | string |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInfo DeleteFiles (FileDeleteEndpointRequest fileDeleteEndpointRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteFilesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var fileDeleteEndpointRequest = new FileDeleteEndpointRequest(); // FileDeleteEndpointRequest |
try
{
TaskInfo result = apiInstance.DeleteFiles(fileDeleteEndpointRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeleteFiles: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
fileDeleteEndpointRequest | FileDeleteEndpointRequest |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeletePathQuota (int id, string relativePath)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeletePathQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var relativePath = relativePath_example; // string |
try
{
apiInstance.DeletePathQuota(id, relativePath);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeletePathQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
relativePath | string |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteProduction (int id)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteProductionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this production.
try
{
apiInstance.DeleteProduction(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeleteProduction: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this production. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteShare (int id)
shares:view
(read) / shares:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteShareExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this share.
try
{
apiInstance.DeleteShare(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeleteShare: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this share. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteSnapshot (int id)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteSnapshotExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this snapshot.
try
{
apiInstance.DeleteSnapshot(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeleteSnapshot: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this snapshot. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteWorkspace (int id)
None
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
try
{
apiInstance.DeleteWorkspace(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeleteWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteWorkspacePermission (int id)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteWorkspacePermissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace permission.
try
{
apiInstance.DeleteWorkspacePermission(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.DeleteWorkspacePermission: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace permission. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<DeletedWorkspace> GetAllDeletedWorkspaces (string isTemplate = null, string production = null, string volume = null, string homeFor = null, string volumeType = null, string productionName = null, string productionActive = null, string name = null, string isExternal = null, string active = null, string ordering = null, int? limit = null, int? offset = null)
projects:view
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllDeletedWorkspacesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var isTemplate = isTemplate_example; // string | Filter the returned list by `is_template`. (optional)
var production = production_example; // string | Filter the returned list by `production`. (optional)
var volume = volume_example; // string | Filter the returned list by `volume`. (optional)
var homeFor = homeFor_example; // string | Filter the returned list by `home_for`. (optional)
var volumeType = volumeType_example; // string | Filter the returned list by `volume__type`. (optional)
var productionName = productionName_example; // string | Filter the returned list by `production__name`. (optional)
var productionActive = productionActive_example; // string | Filter the returned list by `production__active`. (optional)
var name = name_example; // string | Filter the returned list by `name`. (optional)
var isExternal = isExternal_example; // string | Filter the returned list by `is_external`. (optional)
var active = active_example; // string | Filter the returned list by `active`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
try
{
List<DeletedWorkspace> result = apiInstance.GetAllDeletedWorkspaces(isTemplate, production, volume, homeFor, volumeType, productionName, productionActive, name, isExternal, active, ordering, limit, offset);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetAllDeletedWorkspaces: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
isTemplate | string | Filter the returned list by `is_template`. | [optional] |
production | string | Filter the returned list by `production`. | [optional] |
volume | string | Filter the returned list by `volume`. | [optional] |
homeFor | string | Filter the returned list by `home_for`. | [optional] |
volumeType | string | Filter the returned list by `volume__type`. | [optional] |
productionName | string | Filter the returned list by `production__name`. | [optional] |
productionActive | string | Filter the returned list by `production__active`. | [optional] |
name | string | Filter the returned list by `name`. | [optional] |
isExternal | string | Filter the returned list by `is_external`. | [optional] |
active | string | Filter the returned list by `active`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Production> GetAllProductions (string active = null, string name = null, string ordering = null, int? limit = null, int? offset = null, bool? copyTemplateContent = null, bool? includeTotalSize = null)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllProductionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var active = active_example; // string | Filter the returned list by `active`. (optional)
var name = name_example; // string | Filter the returned list by `name`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
var copyTemplateContent = true; // bool? | (optional)
var includeTotalSize = true; // bool? | (optional)
try
{
List<Production> result = apiInstance.GetAllProductions(active, name, ordering, limit, offset, copyTemplateContent, includeTotalSize);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetAllProductions: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
active | string | Filter the returned list by `active`. | [optional] |
name | string | Filter the returned list by `name`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
copyTemplateContent | bool? | [optional] | |
includeTotalSize | bool? | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Share> GetAllShares (string ordering = null, int? limit = null, int? offset = null)
shares:view
(read) / shares:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllSharesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
try
{
List<Share> result = apiInstance.GetAllShares(ordering, limit, offset);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetAllShares: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Snapshot> GetAllSnapshots (string workspace = null, string ordering = null, int? limit = null, int? offset = null)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllSnapshotsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var workspace = workspace_example; // string | Filter the returned list by `workspace`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
try
{
List<Snapshot> result = apiInstance.GetAllSnapshots(workspace, ordering, limit, offset);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetAllSnapshots: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
workspace | string | Filter the returned list by `workspace`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Volume> GetAllVolumes (string isDefault = null, string type = null, string useForHomes = null, string useForWorkspaces = null, string name = null, string displayName = null, string visualTag = null, string ordering = null, int? limit = null, int? offset = null, bool? includeStatus = null)
None
(read) / system:admin-access
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllVolumesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var isDefault = isDefault_example; // string | Filter the returned list by `is_default`. (optional)
var type = type_example; // string | Filter the returned list by `type`. (optional)
var useForHomes = useForHomes_example; // string | Filter the returned list by `use_for_homes`. (optional)
var useForWorkspaces = useForWorkspaces_example; // string | Filter the returned list by `use_for_workspaces`. (optional)
var name = name_example; // string | Filter the returned list by `name`. (optional)
var displayName = displayName_example; // string | Filter the returned list by `display_name`. (optional)
var visualTag = visualTag_example; // string | Filter the returned list by `visual_tag`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
var includeStatus = true; // bool? | (optional)
try
{
List<Volume> result = apiInstance.GetAllVolumes(isDefault, type, useForHomes, useForWorkspaces, name, displayName, visualTag, ordering, limit, offset, includeStatus);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetAllVolumes: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
isDefault | string | Filter the returned list by `is_default`. | [optional] |
type | string | Filter the returned list by `type`. | [optional] |
useForHomes | string | Filter the returned list by `use_for_homes`. | [optional] |
useForWorkspaces | string | Filter the returned list by `use_for_workspaces`. | [optional] |
name | string | Filter the returned list by `name`. | [optional] |
displayName | string | Filter the returned list by `display_name`. | [optional] |
visualTag | string | Filter the returned list by `visual_tag`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
includeStatus | bool? | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<WorkspacePermission> GetAllWorkspacePermissions (string workspace = null, string user = null, string group = null, string ordering = null, int? limit = null, int? offset = null)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllWorkspacePermissionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var workspace = workspace_example; // string | Filter the returned list by `workspace`. (optional)
var user = user_example; // string | Filter the returned list by `user`. (optional)
var group = group_example; // string | Filter the returned list by `group`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
try
{
List<WorkspacePermission> result = apiInstance.GetAllWorkspacePermissions(workspace, user, group, ordering, limit, offset);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetAllWorkspacePermissions: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
workspace | string | Filter the returned list by `workspace`. | [optional] |
user | string | Filter the returned list by `user`. | [optional] |
group | string | Filter the returned list by `group`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Workspace> GetAllWorkspaces (string isTemplate = null, string production = null, string volume = null, string homeFor = null, string volumeType = null, string productionName = null, string productionActive = null, string name = null, string isExternal = null, string active = null, string ordering = null, int? limit = null, int? offset = null, int? resolveAccessFor = null, bool? includeEndpoints = null, bool? includeQuotas = null)
None
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllWorkspacesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var isTemplate = isTemplate_example; // string | Filter the returned list by `is_template`. (optional)
var production = production_example; // string | Filter the returned list by `production`. (optional)
var volume = volume_example; // string | Filter the returned list by `volume`. (optional)
var homeFor = homeFor_example; // string | Filter the returned list by `home_for`. (optional)
var volumeType = volumeType_example; // string | Filter the returned list by `volume__type`. (optional)
var productionName = productionName_example; // string | Filter the returned list by `production__name`. (optional)
var productionActive = productionActive_example; // string | Filter the returned list by `production__active`. (optional)
var name = name_example; // string | Filter the returned list by `name`. (optional)
var isExternal = isExternal_example; // string | Filter the returned list by `is_external`. (optional)
var active = active_example; // string | Filter the returned list by `active`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
var resolveAccessFor = 56; // int? | (optional)
var includeEndpoints = true; // bool? | (optional)
var includeQuotas = true; // bool? | (optional)
try
{
List<Workspace> result = apiInstance.GetAllWorkspaces(isTemplate, production, volume, homeFor, volumeType, productionName, productionActive, name, isExternal, active, ordering, limit, offset, resolveAccessFor, includeEndpoints, includeQuotas);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetAllWorkspaces: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
isTemplate | string | Filter the returned list by `is_template`. | [optional] |
production | string | Filter the returned list by `production`. | [optional] |
volume | string | Filter the returned list by `volume`. | [optional] |
homeFor | string | Filter the returned list by `home_for`. | [optional] |
volumeType | string | Filter the returned list by `volume__type`. | [optional] |
productionName | string | Filter the returned list by `production__name`. | [optional] |
productionActive | string | Filter the returned list by `production__active`. | [optional] |
name | string | Filter the returned list by `name`. | [optional] |
isExternal | string | Filter the returned list by `is_external`. | [optional] |
active | string | Filter the returned list by `active`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
resolveAccessFor | int? | [optional] | |
includeEndpoints | bool? | [optional] | |
includeQuotas | bool? | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FilesystemFile GetFile (string path, int? maxDepth = null, bool? bundle = null)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetFileExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var path = path_example; // string |
var maxDepth = 56; // int? | (optional)
var bundle = true; // bool? | (optional)
try
{
FilesystemFile result = apiInstance.GetFile(path, maxDepth, bundle);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetFile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
path | string | ||
maxDepth | int? | [optional] | |
bundle | bool? | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Quota GetGroupQuota (string groupId, int id)
users:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetGroupQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var groupId = groupId_example; // string |
var id = 56; // int | A unique integer value identifying this volume.
try
{
Quota result = apiInstance.GetGroupQuota(groupId, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetGroupQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | ||
id | int | A unique integer value identifying this volume. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Workspace> GetMyWorkspaces (string isTemplate = null, string production = null, string volume = null, string homeFor = null, string volumeType = null, string productionName = null, string productionActive = null, string name = null, string isExternal = null, string active = null, string ordering = null, int? limit = null, int? offset = null)
None
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetMyWorkspacesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var isTemplate = isTemplate_example; // string | Filter the returned list by `is_template`. (optional)
var production = production_example; // string | Filter the returned list by `production`. (optional)
var volume = volume_example; // string | Filter the returned list by `volume`. (optional)
var homeFor = homeFor_example; // string | Filter the returned list by `home_for`. (optional)
var volumeType = volumeType_example; // string | Filter the returned list by `volume__type`. (optional)
var productionName = productionName_example; // string | Filter the returned list by `production__name`. (optional)
var productionActive = productionActive_example; // string | Filter the returned list by `production__active`. (optional)
var name = name_example; // string | Filter the returned list by `name`. (optional)
var isExternal = isExternal_example; // string | Filter the returned list by `is_external`. (optional)
var active = active_example; // string | Filter the returned list by `active`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
try
{
List<Workspace> result = apiInstance.GetMyWorkspaces(isTemplate, production, volume, homeFor, volumeType, productionName, productionActive, name, isExternal, active, ordering, limit, offset);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetMyWorkspaces: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
isTemplate | string | Filter the returned list by `is_template`. | [optional] |
production | string | Filter the returned list by `production`. | [optional] |
volume | string | Filter the returned list by `volume`. | [optional] |
homeFor | string | Filter the returned list by `home_for`. | [optional] |
volumeType | string | Filter the returned list by `volume__type`. | [optional] |
productionName | string | Filter the returned list by `production__name`. | [optional] |
productionActive | string | Filter the returned list by `production__active`. | [optional] |
name | string | Filter the returned list by `name`. | [optional] |
isExternal | string | Filter the returned list by `is_external`. | [optional] |
active | string | Filter the returned list by `active`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Quota GetPathQuota (int id, string relativePath)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetPathQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var relativePath = relativePath_example; // string |
try
{
Quota result = apiInstance.GetPathQuota(id, relativePath);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetPathQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
relativePath | string |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Production GetProduction (int id, bool? copyTemplateContent = null, bool? includeTotalSize = null)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetProductionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this production.
var copyTemplateContent = true; // bool? | (optional)
var includeTotalSize = true; // bool? | (optional)
try
{
Production result = apiInstance.GetProduction(id, copyTemplateContent, includeTotalSize);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetProduction: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this production. | |
copyTemplateContent | bool? | [optional] | |
includeTotalSize | bool? | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void GetRootDirectory (string ordering = null, int? limit = null, int? offset = null)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetRootDirectoryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
try
{
apiInstance.GetRootDirectory(ordering, limit, offset);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetRootDirectory: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 301 | Redirects to root file | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void GetSambaDfreeString ()
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetSambaDfreeStringExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
try
{
apiInstance.GetSambaDfreeString();
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetSambaDfreeString: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This endpoint does not need any parameter.
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Share GetShare (int id)
shares:view
(read) / shares:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetShareExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this share.
try
{
Share result = apiInstance.GetShare(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetShare: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this share. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Snapshot GetSnapshot (int id)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetSnapshotExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this snapshot.
try
{
Snapshot result = apiInstance.GetSnapshot(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetSnapshot: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this snapshot. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Quota GetUserQuota (int id, string userId)
users:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetUserQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var userId = userId_example; // string |
try
{
Quota result = apiInstance.GetUserQuota(id, userId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetUserQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
userId | string |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Volume GetVolume (int id, bool? includeStatus = null)
None
(read) / system:admin-access
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetVolumeExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var includeStatus = true; // bool? | (optional)
try
{
Volume result = apiInstance.GetVolume(id, includeStatus);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetVolume: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
includeStatus | bool? | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StorNextConnections GetVolumeActiveConnections (int id)
system:status:view
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetVolumeActiveConnectionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
try
{
StorNextConnections result = apiInstance.GetVolumeActiveConnections(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetVolumeActiveConnections: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FileSizeDistribution GetVolumeFileSizeDistribution (int id)
system:status:view
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetVolumeFileSizeDistributionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
try
{
FileSizeDistribution result = apiInstance.GetVolumeFileSizeDistribution(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetVolumeFileSizeDistribution: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VolumeStats GetVolumeStats (int id)
system:status:view
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetVolumeStatsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
try
{
VolumeStats result = apiInstance.GetVolumeStats(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetVolumeStats: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceDetail GetWorkspace (int id)
None
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
try
{
WorkspaceDetail result = apiInstance.GetWorkspace(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspacePermission GetWorkspacePermission (int id)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetWorkspacePermissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace permission.
try
{
WorkspacePermission result = apiInstance.GetWorkspacePermission(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.GetWorkspacePermission: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace permission. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInfo MoveFiles (FileMoveEndpointRequest fileMoveEndpointRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class MoveFilesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var fileMoveEndpointRequest = new FileMoveEndpointRequest(); // FileMoveEndpointRequest |
try
{
TaskInfo result = apiInstance.MoveFiles(fileMoveEndpointRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.MoveFiles: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
fileMoveEndpointRequest | FileMoveEndpointRequest |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInfo MoveWorkspace (int id, MoveWorkspaceRequest moveWorkspaceRequest)
projects:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class MoveWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
var moveWorkspaceRequest = new MoveWorkspaceRequest(); // MoveWorkspaceRequest |
try
{
TaskInfo result = apiInstance.MoveWorkspace(id, moveWorkspaceRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.MoveWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. | |
moveWorkspaceRequest | MoveWorkspaceRequest |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void MoveWorkspaceToProduction (int id, WorkspaceMoveToRequest workspaceMoveToRequest)
projects:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class MoveWorkspaceToProductionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
var workspaceMoveToRequest = new WorkspaceMoveToRequest(); // WorkspaceMoveToRequest |
try
{
apiInstance.MoveWorkspaceToProduction(id, workspaceMoveToRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.MoveWorkspaceToProduction: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. | |
workspaceMoveToRequest | WorkspaceMoveToRequest |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FilesystemFile PatchFile (string path, FilePartialUpdate filePartialUpdate, int? maxDepth = null, bool? bundle = null)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchFileExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var path = path_example; // string |
var filePartialUpdate = new FilePartialUpdate(); // FilePartialUpdate |
var maxDepth = 56; // int? | (optional)
var bundle = true; // bool? | (optional)
try
{
FilesystemFile result = apiInstance.PatchFile(path, filePartialUpdate, maxDepth, bundle);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.PatchFile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
path | string | ||
filePartialUpdate | FilePartialUpdate | ||
maxDepth | int? | [optional] | |
bundle | bool? | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Production PatchProduction (int id, ProductionPartialUpdate productionPartialUpdate)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchProductionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this production.
var productionPartialUpdate = new ProductionPartialUpdate(); // ProductionPartialUpdate |
try
{
Production result = apiInstance.PatchProduction(id, productionPartialUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.PatchProduction: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this production. | |
productionPartialUpdate | ProductionPartialUpdate |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Share PatchShare (int id, SharePartialUpdate sharePartialUpdate)
shares:view
(read) / shares:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchShareExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this share.
var sharePartialUpdate = new SharePartialUpdate(); // SharePartialUpdate |
try
{
Share result = apiInstance.PatchShare(id, sharePartialUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.PatchShare: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this share. | |
sharePartialUpdate | SharePartialUpdate |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Snapshot PatchSnapshot (int id, SnapshotPartialUpdate snapshotPartialUpdate)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchSnapshotExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this snapshot.
var snapshotPartialUpdate = new SnapshotPartialUpdate(); // SnapshotPartialUpdate |
try
{
Snapshot result = apiInstance.PatchSnapshot(id, snapshotPartialUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.PatchSnapshot: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this snapshot. | |
snapshotPartialUpdate | SnapshotPartialUpdate |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Volume PatchVolume (int id, VolumePartialUpdate volumePartialUpdate)
None
(read) / system:admin-access
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchVolumeExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var volumePartialUpdate = new VolumePartialUpdate(); // VolumePartialUpdate |
try
{
Volume result = apiInstance.PatchVolume(id, volumePartialUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.PatchVolume: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
volumePartialUpdate | VolumePartialUpdate |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceDetail PatchWorkspace (int id, WorkspaceDetailPartialUpdate workspaceDetailPartialUpdate)
None
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
var workspaceDetailPartialUpdate = new WorkspaceDetailPartialUpdate(); // WorkspaceDetailPartialUpdate |
try
{
WorkspaceDetail result = apiInstance.PatchWorkspace(id, workspaceDetailPartialUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.PatchWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. | |
workspaceDetailPartialUpdate | WorkspaceDetailPartialUpdate |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspacePermission PatchWorkspacePermission (int id, WorkspacePermissionPartialUpdate workspacePermissionPartialUpdate)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchWorkspacePermissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace permission.
var workspacePermissionPartialUpdate = new WorkspacePermissionPartialUpdate(); // WorkspacePermissionPartialUpdate |
try
{
WorkspacePermission result = apiInstance.PatchWorkspacePermission(id, workspacePermissionPartialUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.PatchWorkspacePermission: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace permission. | |
workspacePermissionPartialUpdate | WorkspacePermissionPartialUpdate |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FilesystemTraceEndpointResponse RecordStorageTrace (FilesystemTraceEndpointRequest filesystemTraceEndpointRequest)
system:admin-access
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class RecordStorageTraceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var filesystemTraceEndpointRequest = new FilesystemTraceEndpointRequest(); // FilesystemTraceEndpointRequest |
try
{
FilesystemTraceEndpointResponse result = apiInstance.RecordStorageTrace(filesystemTraceEndpointRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.RecordStorageTrace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filesystemTraceEndpointRequest | FilesystemTraceEndpointRequest |
FilesystemTraceEndpointResponse
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInfo RepairWorkspacePermissions (int id)
projects:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class RepairWorkspacePermissionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
try
{
TaskInfo result = apiInstance.RepairWorkspacePermissions(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.RepairWorkspacePermissions: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ShareToHomeWorkspace (ShareToHomeWorkspaceEndpointRequest shareToHomeWorkspaceEndpointRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class ShareToHomeWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var shareToHomeWorkspaceEndpointRequest = new ShareToHomeWorkspaceEndpointRequest(); // ShareToHomeWorkspaceEndpointRequest |
try
{
apiInstance.ShareToHomeWorkspace(shareToHomeWorkspaceEndpointRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.ShareToHomeWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
shareToHomeWorkspaceEndpointRequest | ShareToHomeWorkspaceEndpointRequest |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UnbookmarkWorkspace (int id)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UnbookmarkWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
try
{
apiInstance.UnbookmarkWorkspace(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UnbookmarkWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInfo UnzipFile (FileUnzipEndpointRequest fileUnzipEndpointRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UnzipFileExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var fileUnzipEndpointRequest = new FileUnzipEndpointRequest(); // FileUnzipEndpointRequest |
try
{
TaskInfo result = apiInstance.UnzipFile(fileUnzipEndpointRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UnzipFile: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
fileUnzipEndpointRequest | FileUnzipEndpointRequest |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdateGroupQuota (string groupId, int id, UpdateQuotaRequest updateQuotaRequest)
users:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateGroupQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var groupId = groupId_example; // string |
var id = 56; // int | A unique integer value identifying this volume.
var updateQuotaRequest = new UpdateQuotaRequest(); // UpdateQuotaRequest |
try
{
apiInstance.UpdateGroupQuota(groupId, id, updateQuotaRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateGroupQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
groupId | string | ||
id | int | A unique integer value identifying this volume. | |
updateQuotaRequest | UpdateQuotaRequest |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdatePathQuota (int id, string relativePath, UpdateQuotaRequest updateQuotaRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdatePathQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var relativePath = relativePath_example; // string |
var updateQuotaRequest = new UpdateQuotaRequest(); // UpdateQuotaRequest |
try
{
apiInstance.UpdatePathQuota(id, relativePath, updateQuotaRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdatePathQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
relativePath | string | ||
updateQuotaRequest | UpdateQuotaRequest |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Production UpdateProduction (int id, Production production)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateProductionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this production.
var production = new Production(); // Production |
try
{
Production result = apiInstance.UpdateProduction(id, production);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateProduction: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this production. | |
production | Production |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Share UpdateShare (int id, Share share)
shares:view
(read) / shares:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateShareExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this share.
var share = new Share(); // Share |
try
{
Share result = apiInstance.UpdateShare(id, share);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateShare: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this share. | |
share | Share |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Snapshot UpdateSnapshot (int id, Snapshot snapshot)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateSnapshotExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this snapshot.
var snapshot = new Snapshot(); // Snapshot |
try
{
Snapshot result = apiInstance.UpdateSnapshot(id, snapshot);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateSnapshot: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this snapshot. | |
snapshot | Snapshot |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void UpdateUserQuota (int id, string userId, UpdateQuotaRequest updateQuotaRequest)
users:manage
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateUserQuotaExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var userId = userId_example; // string |
var updateQuotaRequest = new UpdateQuotaRequest(); // UpdateQuotaRequest |
try
{
apiInstance.UpdateUserQuota(id, userId, updateQuotaRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateUserQuota: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
userId | string | ||
updateQuotaRequest | UpdateQuotaRequest |
void (empty response body)
| Status code | Description | Response headers | |————-|————-|——————| | 200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Volume UpdateVolume (int id, Volume volume)
None
(read) / system:admin-access
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateVolumeExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this volume.
var volume = new Volume(); // Volume |
try
{
Volume result = apiInstance.UpdateVolume(id, volume);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateVolume: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this volume. | |
volume | Volume |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceDetail UpdateWorkspace (int id, WorkspaceDetail workspaceDetail)
None
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateWorkspaceExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace.
var workspaceDetail = new WorkspaceDetail(); // WorkspaceDetail |
try
{
WorkspaceDetail result = apiInstance.UpdateWorkspace(id, workspaceDetail);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateWorkspace: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace. | |
workspaceDetail | WorkspaceDetail |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspacePermission UpdateWorkspacePermission (int id, WorkspacePermission workspacePermission)
projects:view
(read) / projects:manage
(write)using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateWorkspacePermissionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var id = 56; // int | A unique integer value identifying this workspace permission.
var workspacePermission = new WorkspacePermission(); // WorkspacePermission |
try
{
WorkspacePermission result = apiInstance.UpdateWorkspacePermission(id, workspacePermission);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.UpdateWorkspacePermission: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this workspace permission. | |
workspacePermission | WorkspacePermission |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInfo ZipFiles (FileZipEndpointRequest fileZipEndpointRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class ZipFilesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new StorageApi(config);
var fileZipEndpointRequest = new FileZipEndpointRequest(); // FileZipEndpointRequest |
try
{
TaskInfo result = apiInstance.ZipFiles(fileZipEndpointRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling StorageApi.ZipFiles: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
fileZipEndpointRequest | FileZipEndpointRequest |
| Status code | Description | Response headers | |————-|————-|——————| | 200 | | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]