Querying a Project Set
Function
This API is used to query a project set.
URI
GET /v1/{project_id}/test-suites
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Method of obtaining instructions. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
Query offset. |
limit |
No |
Integer |
Number of queried records. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
code |
String |
Status code. |
message |
String |
Message. |
projects |
Array of ProjectsSet objects |
Project set details. |
Parameter |
Type |
Description |
---|---|---|
CreateTime |
String |
Creation time. |
UpdateTime |
String |
Update time. |
description |
String |
Description. |
id |
Integer |
Project ID. |
name |
String |
Project name. |
source |
Integer |
Project source. 0: PerfTest; 2: CloudTest. |
external_params |
Object |
External parameter. |
variables_no_file |
Array of strings |
File variable. |
Status code: 501
Parameter |
Type |
Description |
---|---|---|
- |
String |
response message |
Example Requests
Querying the project list.
/v1/{project_id}/test-suites&offset=1&limit=10
Example Responses
Status code: 200
success
{ "code" : "CPTS.00000000", "message" : "success", "projects" : [ { "id" : 1, "name" : "name", "description" : "description", "variables_no_file" : [ ], "CreateTime" : "2021-07-12T14:41:51+08:00", "UpdateTime" : "2021-07-12T14:41:51+08:00", "source" : 0, "external_params" : { } } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
success |
501 |
unknown error |
Error Codes
See Error Codes.
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