Help Center/ CodeArts Artifact/ API Reference/ API/ Repository Details/ Collecting the Number of Artifacts in the Repository When Querying Details about a Repository
Updated on 2023-12-28 GMT+08:00

Collecting the Number of Artifacts in the Repository When Querying Details about a Repository

Function

Collect the number of artifacts in the repository when querying details about a repository.

URI

GET /cloudartifact/v5/{tenant_id}/{project_id}/{repo_id}/repositories

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

tenant_id

Yes

String

Tenant ID.

project_id

Yes

String

Project ID.

repo_id

Yes

String

Repository ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

region

Yes

String

Service area.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 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

Collect the number of artifacts in the repository when querying details about a repository.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/5a775fdcb14f4431b6c0015618140bc3/035a1e9da3074adfb57acd1da494d736/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_conan_8/repositories?region=cn-north-7

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143002-1701221877267-423",
  "result" : {
    "id" : null,
    "name" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_conan_8",
    "description" : "",
    "createdTime" : "2023-10-27 15:48:54",
    "createdUserId" : "e9253deb37654775bb3c411aca89153a",
    "createdUserName" : "devcloud_devcloud_y00226182_01",
    "modifiedTime" : "2023-11-02 20:08:14",
    "modifiedUserId" : "e9253deb37654775bb3c411aca89153a",
    "modifiedUserName" : "devcloud_devcloud_y00226182_01",
    "format" : "conan",
    "repoType" : "hosted",
    "includesPattern" : "**/*",
    "url" : null,
    "storageSummaryInfo" : {
      "filesCount" : 0,
      "usedSpace" : "0 MB"
    },
    "projectId" : "035a1e9da3074adfb57acd1da494d736",
    "shareRight" : "PROJECT",
    "deploymentPolicy" : null,
    "repositoryName" : "conan7",
    "displayName" : null,
    "policy" : null,
    "tabId" : null,
    "status" : "active",
    "domainId" : "5a775fdcb14f4431b6c0015618140bc3",
    "region" : "cn-north-7",
    "uri" : null,
    "disable" : false,
    "packageType" : "conan"
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.