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

Skipping the Number of Artifacts in the Repository When Querying Repository Details

Function

Skip the number of artifacts in the repository when querying repository details.

URI

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

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

tenant_id

Yes

String

Tenant ID.

project_id

Yes

String

Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

group_id

No

String

Group ID.

page_no

No

Integer

Page number.

page_size

No

Integer

Page size.

sort

No

String

Sorting type.

qname

No

String

Query content.

type

No

String

Repository type.

format

No

String

Repository format.

format_list

No

String

Repository format list.

is_recycle_bin

No

Boolean

Whether a file is in the recycle bin.

is_need_paging

No

Boolean

Whether paging is required.

in_project

No

Boolean

Whether it is in project or not.

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

Skip the number of artifacts in the repository when querying repository details.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/00000000000000000000000000000000/00000000000000000000000000000000/repositories?in_project=true&format=&page_no=1&page_size=2&qname=&format_list=maven2,npm,go,pypi,rpm,debian,conan,nuget,docker&is_need_paging=true

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143006-1701221592150-283",
  "result" : {
    "total" : 183,
    "repositories" : [ {
      "id" : null,
      "name" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_conan_5",
      "description" : "1,0",
      "createdTime" : "2022-08-22 17:14:55",
      "createdUserId" : "e9253deb37654775bb3c411aca89153a",
      "createdUserName" : "devcloud_devcloud_y00226182_01",
      "modifiedTime" : "2023-10-16 20:05:59",
      "modifiedUserId" : "e9253deb37654775bb3c411aca89153a",
      "modifiedUserName" : "devcloud_devcloud_y00226182_01",
      "format" : "conan",
      "repoType" : "hosted",
      "includesPattern" : "**/*",
      "url" : "https://devrepo.devcloud.cn-north-7.ulanqab.huawei.com/artgalaxy/api/conan/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_conan_5/",
      "storageSummaryInfo" : null,
      "projectId" : null,
      "shareRight" : null,
      "deploymentPolicy" : null,
      "repositoryName" : "5465653",
      "displayName" : null,
      "policy" : null,
      "tabId" : null,
      "status" : "active",
      "domainId" : "5a775fdcb14f4431b6c0015618140bc3",
      "region" : "cn-north-7",
      "uri" : null,
      "disable" : false,
      "packageType" : "conan"
    }, {
      "id" : null,
      "name" : "cn-north-7_5a775fdcb14f4431b6c0015618140bc3_conan_6",
      "description" : "",
      "createdTime" : "2022-08-22 17:21:15",
      "createdUserId" : "e9253deb37654775bb3c411aca89153a",
      "createdUserName" : "devcloud_devcloud_y00226182_01",
      "modifiedTime" : "2023-10-16 20:05:59",
      "modifiedUserId" : null,
      "modifiedUserName" : "devcloud_devcloud_y00226182_01",
      "format" : "conan",
      "repoType" : "hosted",
      "includesPattern" : "**/*",
      "url" : "https://devrepo.devcloud.cn-north-7.ulanqab.huawei.com/artgalaxy/api/conan/cn-north-7_5a775fdcb14f4431b6c0015618140bc3_conan_6/",
      "storageSummaryInfo" : null,
      "projectId" : null,
      "shareRight" : null,
      "deploymentPolicy" : null,
      "repositoryName" : "12321",
      "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.