All Products
Search
Document Center

MaxCompute:ListStorageProjectsInfo

Last Updated:Oct 11, 2025

Retrieves the storage details of projects.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

odps:ListStorageProjectsInfo

list

*All Resource

*

None

None

Request syntax

GET /api/v1/observations/analysis/storage/projectsInfo HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

tenantId

string

No

The tenant ID. You can log on to the MaxCompute console and choose Tenant Property in the navigation pane on the left to view the tenant ID.

28074710977****

region

string

No

The region ID.

cn-chengdu

projectPrefix

string

No

The prefix of the MaxCompute project name.

odps_project

date

string

Yes

The statistics collection date. The date is accurate to the day. The date must be in the YYYYMMdd format.

20241205

recentDays

integer

No

The number of days for year-over-year comparison.

1

orderColumn

string

No

The column to sort by. Valid values:

  • totalStorage

  • longTermStorage

  • lowFreqStorage

  • standardStorage

  • recycleBinStorage

totalStorage

ascOrder

boolean

No

Specifies whether to sort the results in ascending order.

false

pageSize

integer

No

The number of entries to return on each page.

10

pageNumber

integer

No

The page number.

1

Response elements

Element

Type

Description

Example

object

PopResult

requestId

string

The request ID.

0bc3b4b016674434996033675e71ee

httpCode

integer

The HTTP status code.

  • 1xx: an informational response. The request has been received and is being processed.

  • 2xx: a success response. The request has been successfully received, understood, and accepted by the server.

  • 3xx: a redirection response. The request is redirected. You must take further action to complete the request.

  • 4xx: a client error. The request contains invalid request parameters or syntax, or cannot be fulfilled.

  • 5xx: a server error. The server fails to fulfill the request for other reasons.

200

errorCode

string

The error code.

OBJECT_NOT_EXIST

errorMsg

string

The error message.

this quota is not exist.

data

object

The data.

storageProjectInfoList

array<object>

The list of project-level storage information.

object

The project-level storage information.

date

string

The statistics collection date. The date is accurate to the day. The date must be in the YYYYMMdd format.

20250528

projectName

string

The name of the MaxCompute project.

max_testproject

totalStorage

number

The total storage usage.

1

totalStorageUnit

string

The unit of the total storage usage.

TB

standardStorage

number

The Standard storage usage.

500

standardStorageUnit

string

The unit of the Standard storage usage.

GB

longTermStorage

number

The Long Term storage usage.

300

longTermStorageUnit

string

The unit of the Long Term storage usage.

GB

lowFreqStorage

number

The IA storage class usage.

200

lowFreqStorageUnit

string

The unit of the IA storage class usage.

GB

recycleBinStorage

number

The recycle bin storage usage.

0

recycleBinStorageUnit

string

The unit of the recycle bin storage usage.

B

rate

number

The year-over-year change rate of the total storage usage in the last {$recentDays} days.

0.011872406445069006

timestamp

integer

The timestamp of the last data update.

1749105045512

date

string

The statistics collection date.

20241205

totalCount

integer

The total number of returned entries.

60

pageNumber

integer

The page number.

2

pageSize

integer

The number of entries on each page.

10

Examples

Success response

JSON format

{
  "requestId": "0bc3b4b016674434996033675e71ee",
  "httpCode": 200,
  "errorCode": "OBJECT_NOT_EXIST\n",
  "errorMsg": "this quota is not exist.",
  "data": {
    "storageProjectInfoList": [
      {
        "date": "20250528",
        "projectName": "max_testproject",
        "totalStorage": 1,
        "totalStorageUnit": "TB",
        "standardStorage": 500,
        "standardStorageUnit": "GB",
        "longTermStorage": 300,
        "longTermStorageUnit": "GB",
        "lowFreqStorage": 200,
        "lowFreqStorageUnit": "GB",
        "recycleBinStorage": 0,
        "recycleBinStorageUnit": "B",
        "rate": 0.011872406445069006,
        "timestamp": 1749105045512
      }
    ],
    "date": "20241205",
    "totalCount": 60,
    "pageNumber": 2,
    "pageSize": 10
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.