Cloud‑based Excel File Management Solution – Interface to quickly retrieve disk usage in the cloud.

Excel API: GetDiskUsage

Web API

GET https://api.aspose.cloud/v4.0/cells/storage/disk

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.

Request Parameters

Parameter Name Type Location Description Required
storageName String Query The name of the storage for which to retrieve usage. Optional

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
}

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‑03‑30

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/"
}