Querying Repositories Associated with Projects
Function
Query repositories associated with projects.
URI
GET /cloudartifact/v5/maven/repository/list
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
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 repositories associated with projects.
https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/maven/repository/list?project_id=e2ee90487d6349dd944a5767225f6f55
Example Responses
Status code: 200
OK
{ "status" : "success", "trace_id" : "143002-1701219898408-370", "result" : [ { "id" : null, "name" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_11", "description" : null, "createdTime" : "2022-01-20 18:23:17", "createdUserId" : "e9253deb37654775bb3c411aca89153a", "createdUserName" : "devcloud_devcloud_y00226182_01", "modifiedTime" : "2023-11-28 11:25:22", "modifiedUserId" : "e9253deb37654775bb3c411aca89153a", "modifiedUserName" : "devcloud_devcloud_y00226182_01", "format" : "maven2", "repoType" : "hosted", "includesPattern" : "**/*", "url" : "https://devrepo.devcloud.cn-north-7.ulanqab.huawei.com/artgalaxy/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_11/", "storageSummaryInfo" : null, "projectId" : null, "shareRight" : null, "deploymentPolicy" : null, "repositoryName" : "maven-test-20220120", "displayName" : "maven-test-20220120", "policy" : "release", "tabId" : "5a775fdcb14f4431b6c0015618140bc3_tab_maven2_11", "status" : "active", "domainId" : "5a775fdcb14f4431b6c0015618140bc3", "region" : "cn-north-7", "uri" : null, "disable" : false, "packageType" : "maven" } ] }
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