Updated on 2024-04-08 GMT+08:00

Querying a Project

Function

This API is used to query a project.

URI

GET /v1/{project_id}/test-suites/{test_suite_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID.

Minimum: 0

Maximum: 64

test_suite_id

Yes

Integer

Test project ID.

Minimum: 0

Maximum: 2147483647

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

code

String

Response code.

Minimum: 0

Maximum: 1024

message

String

Response message.

Minimum: 0

Maximum: 1024

project

Project object

Project information.

Table 3 Project

Parameter

Type

Description

create_time

String

Creation time.

Minimum: 0

Maximum: 1024

description

String

Description.

Minimum: 0

Maximum: 1024

group

String

Tenant ID (domain_id).

Minimum: 0

Maximum: 1024

id

Integer

Project ID.

Minimum: 0

Maximum: 2147483647

name

String

Project name.

Minimum: 0

Maximum: 1024

source

Integer

Source (0: PerfTest; 2: CloudTest).

Minimum: 0

Maximum: 2147483647

update_time

String

Update time.

Minimum: 0

Maximum: 1024

Example Requests

Querying the information about the PerfTest project whose ID is test_suite_id.

/v1/{project_id}/test-suites/{test_suite_id}

Example Responses

Status code: 200

success

{
  "code" : "SVCSTG.CPTS.0000000",
  "message" : "success",
  "project" : {
    "create_time" : "2022-01-18T15:20:42.373585+08:00",
    "description" : "",
    "group" : "e061922ca2684c1e9c761df238826261",
    "id" : 122025,
    "name" : "Project name",
    "source" : 0,
    "update_time" : "2022-01-20T14:11:21.719585+08:00"
  }
}

Status Codes

Status Code

Description

200

success

501

unknown error

Error Codes

See Error Codes.