Querying Audit Logs about a Repository or File
Function
Query audit logs about a repository or file.
URI
GET /cloudartifact/v5/{tenant_id}/{project_id}/{module}/{repo}/audit
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
tenant_id |
Yes |
String |
Tenant ID. |
project_id |
Yes |
String |
Project ID. |
module |
Yes |
String |
Module. |
repo |
Yes |
String |
Repository ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
user_id |
No |
String |
User ID. |
instance_id |
No |
String |
Instance ID. |
page_num |
No |
Integer |
Page number. |
page_size |
No |
Integer |
Page size. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
status |
String |
Result status. |
trace_id |
String |
Request ID. |
result |
String |
Returned result of the request. The return value varies according to the API. |
Example Requests
Query audit logs about a repository or file.
https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/00000000000000000000000000000000/00000000000000000000000000000000/file/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_108/audit?page_num=1&page_size=5
Example Responses
Status code: 200
OK
{ "status" : "success", "trace_id" : "143002-1701222589443-431", "result" : { "auditInfoList" : [ { "id" : "2271182", "module" : "file", "operation" : "upload", "time" : "2023/10/27 15:46:19", "info" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_108", "data" : "1/1/1/1-1-1.jar", "reason" : null, "userAgent" : "Apache-HttpClient/4.5.13 (Java/1.8.0_232)", "operator" : "devcloud_devcloud_y00226182_01", "ipSource" : "10.172.180.79" } ], "total" : 1 } }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
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