Querying Asset Catalog Statistics
Function
This API is used to query asset catalog statistics. You can filter the statistics by group label ID and type ID. You can obtain the statistics summary of asset catalogs, such as the number of assets and distribution of asset types.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/metadata/catalog/statistics
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Unique project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
label_id |
Yes |
String |
Group label ID, which is used to filter the statistics of a specific group. You must specify either label_id or type_id. |
|
type_id |
Yes |
String |
Type ID, which is used to filter the statistics of a specific type. You must specify either label_id or type_id. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
bucket |
ObsStaticInfo object |
Bucket risk statistics. |
|
column |
ColumnStaticInfo object |
Column risk statistics. |
|
database |
StaticInfo object |
Database risk statistics. |
|
file |
ObsStaticInfo object |
Bucket risk statistics. |
|
table |
StaticInfo object |
Table risk statistics. |
|
Parameter |
Type |
Description |
|---|---|---|
|
risk_num |
Integer |
Number of risks. |
|
total |
Long |
Total number. |
|
week_on_week |
Integer |
Week-on-Week change. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Query result. |
|
401 |
Unauthorized. The user is not logged in or the token is invalid. |
|
403 |
Unauthorized to access the resource. |
|
404 |
The specified project does not exist. |
Error Codes
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