Querying the Software Package List of CodeArts Release Repository
Function
This API is used to obtain the software package list of CodeArts release repository.
URI
POST /v1/{project_id}/ss-service/dev-cloud/files
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. See Obtaining a Project ID. |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Content-Type |
Yes |
String |
Message body type (format). Default value: application/json;charset=utf8. |
|
X-Auth-Token |
Yes |
String |
API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain a token, see Obtaining a User Token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
pageNo |
No |
Integer |
Start page number of the software package to be queried. |
|
pageSize |
No |
Integer |
Number of software packages queried on a page. |
|
projectId |
No |
String |
CodeArts project ID. If this parameter is not transferred, all CodeArts projects are queried. If this parameter is transferred, all software packages in the CodeArts project corresponding to this parameter are queried. |
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
String |
Error message. |
|
status |
String |
Status of an obtained file. |
|
result |
Object |
Software package details. See Table 5. |
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Array of object |
Software package list. See Table 6. |
|
totalRecords |
Integer |
Total number of lists to be queried. |
|
totalPages |
Integer |
Page number of the list to be queried. |
Example Request
{
"projectId": "9ed720e99fe64f32bba84a6d000e5450",
"pageSize": 5,
"pageNo": 1
}
Example Response
{
"result": {
"data": [
{
"projectId": "9ed720e99fe64f32bba84a6d000e5450",
"downloadUrl": "https://example.com/DevRepoServer/v1/files/download?filename=9ed720e99fe64f32bba84a6d000e5450/demoJavaExample.zip",
},
{
"projectId": "9ed720e99fe64f32bba84a6d000e5450",
"downloadUrl": "https://example.com/DevRepoServer/v1/files/download?filename=9ed720e99fe64f32bba84a6d000e5450/zip",
}
],
"totalRecords": 27,
"totalPages": 6
},
"error": null,
"status": "success"
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
Error Code
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot