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

Querying Repository Usage

Function

Query repository usage.

URI

GET /cloudartifact/v5/storage

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

format_list

No

String

Types

in_project

No

String

Whether it is in project or not.

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 repository usage.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/storage?in_project=true&format_list=maven2,npm,go,pypi,rpm,debian,conan,nuget,docker

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143006-1701220621380-265",
  "result" : {
    "totalStorage" : "549.62 MB",
    "totalCount" : 183
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.