---
title: "Get all region consumption amount"
method: POST
path: "/account/v1alpha1/costs/all-region-consumption"
tags: ["ConsumptionAmount"]
---

# Get all region consumption amount

`POST /account/v1alpha1/costs/all-region-consumption`

## Request

- Base URL: `https://localhost:2333`
- URL: `https://localhost:2333/account/v1alpha1/costs/all-region-consumption`
- Auth: none declared

Get all region consumption amount within a specified time range

## Request body

- HelperConsumptionRecordReq
  - `appName` string: @Summary App Name @Description App Name
  - `appType` string: @Summary App type @Description App type
  - `endTime` string
  - `kubeConfig` string
  - `namespace` string: @Summary Namespace @Description Namespace
  - `owner` string
  - `startTime` string
  - `token` string
  - `userID` string
  - `userUID` string

## Response `200`

successfully retrieved all region consumption amount

- object

## Other responses

- `400`: failed to parse all region consumption amount request
- `401`: authenticate error
- `500`: failed to get all region consumption amount

## Changes

- **2024-09-12** `d7cb76839df3`: 1 info
  - endpoint added
- **2023-12-13** `ac0fa9d94489`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/labring/apis/sealos-account-service/changes/account/v1alpha1/costs/all-region-consumption/post.md)

---

[API](https://skmtc.dev/labring/apis/sealos-account-service.md) - [All operations](https://skmtc.dev/labring/apis/sealos-account-service/llms.txt) - [OpenAPI document](https://skmtc.dev/labring/apis/sealos-account-service/revisions/acd38d9540d3?raw)
