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
|
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 |
|
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
|
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 |
Example Requests
GET https://{endpoint}/v5/ce8df55870164338a72d7e828a966a2a/api/whitelist/repository-number?domain_id=ce8df55870164338a72d7e828a966a2a®ion=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.
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