Working with Storages

Introduction

With Aspose.Slides Cloud API, you can use the following methods to check if a storage exists, check if a folder or file exists, get disk usage information, and get file versions.

StorageExists

API Information

API Type Description Resource
/slides/storage/{storageName}/exist GET Checks if a storage exists. StorageExists

Request Parameters

Name Type Location Required Description
storageName string path true The name of a storage.

Example

Check if the MyStorage storage exists.

cURL Solution

SDK Solutions

ObjectExists

API Information

API Type Description Resource
/slides/storage/exist/{path} GET Checks if a file or folder exists. ObjectExists

Request Parameters

Name Type Location Required Description
path string path true The path to a file or folder.
storageName string query false The name of a storage.
versionId string query false The version ID of the file.

Example

In the storage MyStorage, check if the file MyFolder/MyPresentation.pptx exists.

cURL Solution

SDK Solutions

GetDiscUsage

API Information

API Type Description Resource
/slides/storage/disc GET Retrieves information about disk usage in a storage. GetDiscUsage

Request Parameters

Name Type Location Required Description
storageName string query false The name of a storage.

Example

Get disk usage information from MyStorage storage.

cURL Solution

SDK Solutions

GetFileVersions

API Information

API Type Description Resource
/slides/storage/version/{path} GET Retrieves information about versions of a file. GetFileVersions

Request Parameters

Name Type Location Required Description
path string path true The path to a file.
storageName string query false The name of a storage.

Example

Get information about versions of the MyFolder/MyPresentation.pptx file located in MyStorage storage.

cURL Solution

SDK Solutions

SDKs

Check Available SDKs to learn how to add an SDK to your project.