Cloud‑based Excel File Management Solution – Interface to quickly retrieve disk usage in the cloud.
Excel API: GetDiskUsage
The Get Disk Usage operation returns real‑time storage metrics for your Aspose.Cells Cloud account. Use this endpoint to monitor consumed and total disk space.
Web API
GET https://api.aspose.cloud/v4.0/cells/storage/disk
curl -X GET "https://api.aspose.cloud/v4.0/cells/storage/disk?storageName=MyStorage" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Function Description
- Retrieves the current disk usage for the Excel API in the Aspose Cloud environment.
- Allows developers to monitor how much storage their applications have consumed.
- Enables proactive management of storage limits and cost control.
Security and Authentication
The Aspose.Cells Cloud APIs are secure and require JWT token-based authentication.
-H "Authorization: Bearer {access_token}"
Request Parameters
| Parameter Name | Type | Location | Description | Required |
|---|---|---|---|---|
| storageName | String | Query | The name of the storage for which to retrieve usage. | Optional |
Authentication: Include the Authorization: Bearer <access_token> header in the request.
Response Description
{
"Name": "DiskUsage",
"Description": ["Class for disk space information."],
"Type": "Class",
"IsAbstract": false,
"Properties": [
{
"Name": "UsedSize",
"Description": ["Amount of disk space used by the application."],
"Nullable": true,
"ReadOnly": false,
"IsInherit": false,
"DataType": {
"Identifier": "Long",
"Name": "long"
}
},
{
"Name": "TotalSize",
"Description": ["Total available disk space."],
"Nullable": true,
"ReadOnly": false,
"IsInherit": false,
"DataType": {
"Identifier": "Long",
"Name": "long"
}
}
]
}
Sample Success Response
{
"UsedSize": 12345678,
"TotalSize": 10737418240
}
Related operations: Upload File, Get Files List.
Error Codes
| HTTP Code | Description |
|---|---|
| 401 | Unauthorized – missing or invalid token. |
| 404 | Not Found – the specified storage does not exist. |
| 500 | Internal Server Error – an unexpected condition occurred. |
OpenAPI Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
Excel API SDK
Using an SDK is the best way to speed up development. An SDK handles low‑level details, allowing you to focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to make calls to Aspose.Cells web services using various SDKs:
Last Updated
2026‑07‑06
Author
Written by the Aspose Cloud Documentation Team, 2024‑2026.
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Aspose.Cells Cloud",
"applicationCategory": "DeveloperTools",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"url": "https://docs.aspose.cloud/cells/get-disk-usage/"
}