Help Center/ CodeArts Artifact/ API Reference/ API/ File Management (Release Repos)/ Querying the Build Archive Package List by Page
Updated on 2025-12-05 GMT+08:00

Querying the Build Archive Package List by Page

Function

This API is used to query the build archive package list by page.

Calling Method

For details, see Calling APIs.

URI

GET /devreposerver/v5/files/archives

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

parent_id

No

String

Parent node ID.

build_id

No

String

Build ID.

build_no

No

String

Build No.

page_no

No

Integer

Number of pages.

page_size

No

Integer

Number of records on each page.

repo_branch

No

String

CodeHub repository branch.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

String

Definition

Request status.

Range

success: The request is successful.

error: The request fails.

trace_id

String

Definition

Request ID, which uniquely identifies the current request.

Range

A string of digits and hyphens (-).

result

Object

Definition

Response of the request. The return value varies according to the API.

Range

The value range varies according to the API.

Example Requests

https://localhost.com/devreposerver/v5/files/archives?build_id=66666603da854239ab51209ea7e27b64&repo_branch=master&parent_id=66666687399849b782b13c9512fbb3b6

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "76629-1718767414372-27337",
  "result" : {
    "data" : [ {
      "domainId" : "09d2ca2f5080d5b60f51c00ae5666666",
      "region" : "region",
      "createdTime" : "2024-02-27 18:29:19",
      "createdUserId" : "09d2ca2ffd00d3c21ff8c00a4d666666",
      "createdUserName" : "test-user",
      "buildId" : "11236703da854239ab51209ea7666666",
      "buildName" : "maven1-23414517",
      "buildNo" : "20240227.3",
      "buildVersion" : "20240227.3",
      "buildUrl" : "https://localhost.com/codeci/project/1bbbdd388234492793eb1bf59e666666/codeci/detail/workspace/11236703da854239ab51209ea7666666/3",
      "repoUrl" : "",
      "repoBranch" : "master",
      "commitId" : "66666683c1590363818225ec649d7cf161f0d49c",
      "projectId" : "1bbbdd388234492793eb1bf59e666666",
      "fileId" : "666666f9d76f405a8d503b841de02b51",
      "repoName" : "region_1bbbdd388234492793eb1bf59e666666_generic_0",
      "parentId" : "66666687399849b782b13c9512fbb3b6",
      "fileName" : "HelloWorld.class",
      "size" : 534,
      "md5" : "e06fcae2912a318db12955f37cd9230b",
      "sha256" : "96f5666537da969efee5f51f2969771b3743ada63fde57e42ad210c116ceedaf",
      "downloadUrlWithId" : "https://localhost.com/DevRepoServer/v1/files/download?file_id=666666f9d76f405a8d503b841de02b51&type=archive",
      "webUrl" : "https://localhost.com/cloudartifact/project/1bbbdd388234492793eb1bf59e666666/private/general?parentId=66666687399849b782b13c9512fbb3b6",
      "versionEnable" : false,
      "migratedState" : 2,
      "repoSameTrashFileName" : "trash_e653c9f9d76f405a8d503b841666666"
    } ],
    "totalRecords" : 1,
    "totalPages" : 1
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.