Querying Tenant Resource Statistics
Description
Query tenant resource statistics.
Constraints
None
API Calling
For details, see Calling APIs.
Authorization Information
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions Policies and Supported Actions.
URI
GET /v2/manage/reports/{resource_type}/{frequency}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
resource_type |
Yes |
String |
Resource type. The options are as follows:
|
|
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. The token can be obtained through the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
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
Tenant resource statistics obtained.
[ {
"date" : "2024-09-01",
"value" : 0
}, {
"date" : "2024-09-02",
"value" : 0
} ]
Status Codes
|
Status Codes |
Description |
|---|---|
|
200 |
Tenant resource statistics obtained. |
|
400 |
Request error. |
|
401 |
Authentication failed. |
|
500 |
Internal error. |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot