Help Center/ CodeArts Artifact/ API Reference/ API/ Repository Management/ Querying the Maven Repository List and Account Password of a Tenant
Updated on 2023-12-28 GMT+08:00

Querying the Maven Repository List and Account Password of a Tenant

Function

Query the Maven repository list and account password of a tenant. Cross-tenant Maven repository list and account password are supported.

URI

GET /cloudartifact/v5/maven/info

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

project_id

No

String

Project ID.

policy

No

String

snapshot or releases

access

No

String

r or rw

default

No

String

Whether to return the default repository. The options are true and false.

ids

No

String

Repository IDs. Use commas (,) to separate multiple repository IDs.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

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 the Maven repository list and account password of a tenant.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/maven/info?project_id=e2ee90487d6349dd944a5767225f6f55&policy=release&access=r&default=false

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701176094147-90",
  "result" : [ {
    "status" : "active",
    "domainId" : "5a775fdcb14f4431b6c0015618140bc3",
    "region" : "cn-north-7",
    "createdTime" : "2023-11-24 17:13:52",
    "modifiedTime" : "2023-11-24 17:13:52",
    "createdUserId" : "e9253deb37654775bb3c411aca89153a",
    "createdUserName" : "devcloud_devcloud_y00226182_01",
    "modifiedUserId" : null,
    "modifiedUserName" : null,
    "name" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_5_120",
    "disable" : false,
    "format" : "maven2",
    "type" : "virtual",
    "policy" : "release",
    "tabId" : "5a775fdcb14f4431b6c0015618140bc3_tab_maven2_120",
    "repositoryName" : "adasasfsafdasdfasd",
    "displayName" : "adasasfsafdasdfasd",
    "description" : "",
    "snapshot" : null,
    "release" : null,
    "npm" : null,
    "snapshotStatus" : null,
    "releaseStatus" : null,
    "projectId" : "e2ee90487d6349dd944a5767225f6f55",
    "includesPattern" : "**/*",
    "repositoryIds" : null,
    "uri" : null,
    "deploymentPolicy" : null,
    "repositories" : null,
    "parentRepoName" : null,
    "userName" : null,
    "password" : "6qY_h]3H9=",
    "remoteUrl" : null,
    "defaultDeployRepository" : null,
    "remoteType" : null,
    "proxy" : null,
    "allowAnonymous" : null,
    "autoCleanSnapshot" : null,
    "snapshotAliveDays" : null,
    "maxUniqueSnapshots" : null,
    "shareRight" : "PROJECT",
    "nexuRepo" : false,
    "username" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_e9253deb37654775bb3c411aca89153a",
    "url" : "https://devrepo.devcloud.cn-north-7.ulanqab.huawei.com/artgalaxy/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_5_120/",
    "packageType" : "maven"
  } ]
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.