forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
14 KiB
14 KiB
Querying Tenant Resource Statistics
Description
Query tenant resource statistics.
Constraints
None
URI
GET /v2/manage/reports/{resource_type}/{frequency}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
resource_type |
Yes |
String |
Resource type. |
frequency |
Yes |
String |
Frequency type. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). Possible values: application/json;charset=utf-8 application/json |
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
[items] |
Array of ReportData objects |
Statistics. |
Example Request
GET https://{endpoint}/v2/reports/{resource_type}/{frequency}
Example Response
Status code: 200
Query tenant resource statistics.
[ {
"date" : "2024-09-01",
"value" : 0
}, {
"date" : "2024-09-02",
"value" : 0
} ]
Status Codes
Status Codes |
Description |
|---|---|
200 |
Succeeded. |
400 |
Request error. |
401 |
Authentication failed. |
500 |
Internal error. |
Error Codes
For details, see Error Codes.
Parent topic: Other