Help Center/ CodeArts Pipeline/ API Reference/ API/ Pipeline Management/ Querying the Number of Code Sources That Can Be Configured
Updated on 2025-12-04 GMT+08:00

Querying the Number of Code Sources That Can Be Configured

Function

This API is used to query the number of code sources that can be configured for a pipeline of the current tenant.

Calling Method

For details, see Calling APIs.

URI

GET /v5/{tenant_id}/api/whitelist/repository-number

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

tenant_id

Yes

String

Definition:

Tenant ID, that is, domain ID of a user.

Constraints:

N/A

Value range:

The value consists of 32 characters, including only digits and letters.

Default value:

N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Definition:

Tenant ID, that is, domain ID of a user.

Constraints:

N/A

Range:

The value consists of 32 characters, including only digits and letters.

Default value:

N/A

region

Yes

String

Definition:

Region information.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

project_id

Yes

String

Definition:

32-character UUID of a CodeArts project, which must be unique.

Constraints:

N/A

Value range:

The value contains 32 characters.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

error

ErrorInfo object

Definition:

Error information. If no error is reported, the error field is not returned.

Range:

N/A

result

Object

Definition:

Returned result.

Range:

N/A

status

String

Definition:

Status value.

Value range:

N/A

Table 4 ErrorInfo

Parameter

Type

Description

code

String

Definition:

Error code.

Value range:

N/A

message

String

Definition:

Error message.

Value range:

N/A

Example Requests

GET https://{endpoint}/v5/ce8df55870164338a72d7e828a966a2a/api/whitelist/repository-number?domain_id=ce8df55870164338a72d7e828a966a2a&region=cn-north-7&project_id=5c8305fa19154cabbb7f022a710f0ace&_=1763885852769

Example Responses

Status code: 200

OK

{
  "repository_number" : 20
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.