Help Center/ CodeArts Artifact/ API Reference/ API/ Repository Details/ Querying Storage Capacity Trend
Updated on 2023-12-28 GMT+08:00

Querying Storage Capacity Trend

Function

Query storage capacity trend.

URI

GET /cloudartifact/v5/{tenant_id}/{project_id}/storageinfo/statistic

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

repo

No

String

Repository ID.

start_time

No

String

Start time.

end_time

No

String

End time.

instance_id

No

String

Instance ID.

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

Query storage capacity trend.

https://artifact.cn-south-1.myhuaweicloud.com/cloudartifact/v5/00000000000000000000000000000000/00000000000000000000000000000000/storageinfo/statistic?start_time=2023-11-22&end_time=2023-11-28&repo=cn-north-7_5a775fdcb14f4431b6c0015618140bc3_maven_1_108

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "143006-1701222420819-287",
  "result" : [ {
    "filesCount" : 2,
    "usedSpaceLength" : 1034390,
    "usedSpace" : "1,010.15 KB",
    "summaryDate" : "2023-11-22",
    "foldersCount" : null,
    "itemsCount" : null
  }, {
    "filesCount" : 2,
    "usedSpaceLength" : 1034390,
    "usedSpace" : "1,010.15 KB",
    "summaryDate" : "2023-11-23",
    "foldersCount" : null,
    "itemsCount" : null
  }, {
    "filesCount" : 2,
    "usedSpaceLength" : 1034390,
    "usedSpace" : "1,010.15 KB",
    "summaryDate" : "2023-11-24",
    "foldersCount" : null,
    "itemsCount" : null
  }, {
    "filesCount" : 2,
    "usedSpaceLength" : 1034390,
    "usedSpace" : "1,010.15 KB",
    "summaryDate" : "2023-11-25",
    "foldersCount" : null,
    "itemsCount" : null
  }, {
    "filesCount" : 2,
    "usedSpaceLength" : 1034390,
    "usedSpace" : "1,010.15 KB",
    "summaryDate" : "2023-11-26",
    "foldersCount" : null,
    "itemsCount" : null
  }, {
    "filesCount" : 4,
    "usedSpaceLength" : 2068780,
    "usedSpace" : "1.97 MB",
    "summaryDate" : "2023-11-27",
    "foldersCount" : null,
    "itemsCount" : null
  }, {
    "filesCount" : 0,
    "usedSpaceLength" : 0,
    "usedSpace" : "",
    "summaryDate" : "2023-11-28",
    "foldersCount" : null,
    "itemsCount" : null
  } ]
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.