cURL commands to manage Cloud Storage

Get started with Cloud storage management using cURL commands, anywhere, any platform.

Start Free Trial
cURL commands for Cloud Storage manipulation

Aspose.Storage Cloud for cURL

 

Aspose.Storage Cloud for cURL is specifically designed to perform various storage-related operations in various applications. It offers many features including support for default Aspose.Storage and integration with 3rd party storage services. The API supports HTTP requests and receives a response in the form of JSON or XML data.

Previous Next

Advanced Cloud Storage Management Features

 

 

Support for default Aspose storage

 

Support for 3rd party storage services

 

Folder related operations

 

Support for file manipulation

 

Disc usage

 

Check Storage Presence

Get started with Cloud Storage management

No software download required and nothing to install. It is quite easy to jump start using Aspose.Storage Cloud for cURL in your applications. You just need to create an account at Aspose Cloud and get your application information. Once you have the App SID & key, you are ready to give the Aspose.Storage Cloud for cURL on any platform. It also facilitates the users to speed up the development of their applications, while it takes care of a lot of low-level details of making requests and handling responses and lets the users focus on writing code specific to their particular project. 

Fully-managed, Highly Reliable Storage

With the help of Aspose.Storage Cloud for cURL, you can perform a number of file-related operations supported by the storage API. Such as follow:

The following code snippet shows how to upload a particular file to Aspose Storage using cURL commands.

Upload file to Aspose Cloud Storage - cURL


// First get Access Token
// Get App Key and App SID from https://dashboard.aspose.cloud/
curl -v "https://api.aspose.cloud/oauth2/token" \
-X POST \
-d 'grant_type=client_credentials&client_id=0B17F60A-6D69-426B-9ABD-79F35A6E9F7B&client_secret=53b8b19adffa41a3e87dbbd8858977ae' \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
 
// cURL example to upload file to Aspose Cloud Storage
curl -v "https://api.aspose.cloud/v1.1/storage/file?path=testfile.txt" \
-X PUT \
-T testfile.txt \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-H "Authorization: Bearer qyc9asneEZsTZtRro3Qd2ZH38jQdBLabtIi5nE3DPgdbGolk0K8RQwB1kC1umqfp4rAKeP8gFTIRSRhl6uShnbX70X-_ieDHPAK1cCAH1Kiq6fz8lnHZc-zXmHir_TxsXrjvsjMGDwRmhjncUDMPhEU4Ah8rq0XT-8Q_dz2lWCnJsrYMXp8S2jf0QRb3xmIT5Bw1lRxsDa9PeBQ9BxDPBNYBepAUKkjNCSywA4nnoAIBeKc6mt7cmIO3J3Kv4mYk_r2z1Mog_lgmFmzYrLLPTcKNUzFHOtSAjMlz8Tn2uyihbfXJVqu7pCDd6I1yIxvcHbNIgBd01tFTjQpHUh_Pr5sKyhXg0RYLZNOSrREuRqcR04mSfR_E9RsN5k1TReZxhfUY8oacfCeUIMysGOvGB-F9J5DR41DwkxrezAeYUPE8hGBm"

Get Disc Storage details

When using Cloud storage SDK, you may have a requirement to get information regarding the amount of disk space used. Therefore the SDK provides the capabilities to get information about the disc storage used with few lines of code.

Get Disc Usage Details - cURL


curl -v "https://api.aspose.cloud/oauth2/token" \
-X POST \
-d 'grant_type=client_credentials&client_id=0B17F60A-6D69-426B-9ABD-79F35A6E9F7B&client_secret=53b8b19adffa41a3e87dbbd8858977ae' \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
 
// cURL example to get Disk Usage
curl -v "https://api.aspose.cloud/v1.1/storage/disc" \
-X GET \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer qyc9asneEZsTZtRro3Qd2ZH38jQdBLabtIi5nE3DPgdbGolk0K8RQwB1kC1umqfp4rAKeP8gFTIRSRhl6uShnbX70X-_ieDHPAK1cCAH1Kiq6fz8lnHZc-zXmHir_TxsXrjvsjMGDwRmhjncUDMPhEU4Ah8rq0XT-8Q_dz2lWCnJsrYMXp8S2jf0QRb3xmIT5Bw1lRxsDa9PeBQ9BxDPBNYBepAUKkjNCSywA4nnoAIBeKc6mt7cmIO3J3Kv4mYk_r2z1Mog_lgmFmzYrLLPTcKNUzFHOtSAjMlz8Tn2uyihbfXJVqu7pCDd6I1yIxvcHbNIgBd01tFTjQpHUh_Pr5sKyhXg0RYLZNOSrREuRqcR04mSfR_E9RsN5k1TReZxhfUY8oacfCeUIMysGOvGB-F9J5DR41DwkxrezAeYUPE8hGBm"

Support for various Cloud Storage Platforms

Our implementation is completely independent of your operating system, database system or development language. Therefore you can use any language and platform that supports HTTP to interact with our APIs. Furthermore, Aspose.Storage Cloud for cURL is very flexible and allows its users to employ their own cloud storage or any other 3rd party storage services which they are comfortable using with.

Aspose.Storage Cloud for cURL goes beyond limitations and acts as a kind of gateway between the developers and the Cloud Storage users. This will allow you to write your Application once, and we will take care of both the file formats and also let you support many different Cloud Storage platforms through a single consistent interface. When using Cloud storage, you need to keep track of your usage statistics and server logs. You can retrieve information for current as well as previous month and the information is returned in XLSX format, so you can save the response to XLSX format..

Get Usage Statistics for Previous Month - cURL


curl -v "https://api.aspose.cloud/oauth2/token" \
-X POST \
-d 'grant_type=client_credentials&client_id=0B17F60A-6D69-426B-9ABD-79F35A6E9F7B&client_secret=53b8b19adffa41a3e87dbbd8858977ae' \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
 
// cURL example to get APIs Usage Statistics for the current Month
curl -v "https://api.aspose.cloud/v1.1/usage/previousPeriod" \
-X GET \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer qyc9asneEZsTZtRro3Qd2ZH38jQdBLabtIi5nE3DPgdbGolk0K8RQwB1kC1umqfp4rAKeP8gFTIRSRhl6uShnbX70X-_ieDHPAK1cCAH1Kiq6fz8lnHZc-zXmHir_TxsXrjvsjMGDwRmhjncUDMPhEU4Ah8rq0XT-8Q_dz2lWCnJsrYMXp8S2jf0QRb3xmIT5Bw1lRxsDa9PeBQ9BxDPBNYBepAUKkjNCSywA4nnoAIBeKc6mt7cmIO3J3Kv4mYk_r2z1Mog_lgmFmzYrLLPTcKNUzFHOtSAjMlz8Tn2uyihbfXJVqu7pCDd6I1yIxvcHbNIgBd01tFTjQpHUh_Pr5sKyhXg0RYLZNOSrREuRqcR04mSfR_E9RsN5k1TReZxhfUY8oacfCeUIMysGOvGB-F9J5DR41DwkxrezAeYUPE8hGBm" \
-o statistics.xlsx
 

Support and Learning Resources

 
  

Aspose.Storage also offers, Cloud Storage management SDKs for other popular languages, as listed below: