Updated on 2023-12-28 GMT+08:00

Viewing Repository Information

Function

View repository information.

URI

GET /cloudartifact/v5/repositories/{repo_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

repo_id

Yes

String

Repository ID.

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

View repository information.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/repositories/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_201

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701175561381-82",
  "result" : {
    "status" : null,
    "domainId" : null,
    "region" : null,
    "createdTime" : null,
    "modifiedTime" : null,
    "createdUserId" : null,
    "createdUserName" : null,
    "modifiedUserId" : null,
    "modifiedUserName" : null,
    "name" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_201",
    "disable" : false,
    "format" : "maven2",
    "type" : "hosted",
    "policy" : null,
    "tabId" : "5a775fdcb14f4431b6c0015618140bc3_tab_maven2_201",
    "repositoryName" : "testmaven",
    "displayName" : null,
    "description" : "12",
    "snapshot" : "testmaven",
    "release" : "testmaven",
    "npm" : null,
    "snapshotStatus" : "active",
    "releaseStatus" : "active",
    "projectId" : "e2ee90487d6349dd944a5767225f6f55",
    "includesPattern" : "**/*",
    "repositoryIds" : null,
    "uri" : null,
    "deploymentPolicy" : "allowRedeploy",
    "repositories" : null,
    "parentRepoName" : null,
    "userName" : null,
    "password" : null,
    "remoteUrl" : null,
    "defaultDeployRepository" : null,
    "remoteType" : null,
    "proxy" : null,
    "allowAnonymous" : false,
    "autoCleanSnapshot" : null,
    "snapshotAliveDays" : null,
    "maxUniqueSnapshots" : "10",
    "shareRight" : "PROJECT",
    "nexuRepo" : false,
    "url" : "https://devrepo.devcloud.cn-north-7.ulanqab.huawei.com/artgalaxy/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_201/",
    "packageType" : "maven"
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.