Querying Total Number of Pipelines on the Dashboard
Function
This API is used to query the number of pipelines in each project and the total number of pipelines of the tenant.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{tenant_id}/api/dashboard/pipeline-count
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
tenant_id |
Yes |
String |
Definition: Tenant ID, that is, domain ID of a user. Constraints: N/A Range: The value contains 32 characters. Default value: N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
order |
No |
String |
Definition: Sorting order. Constraints: N/A Value range:
Default value: This parameter is left empty by default, indicating that items are in arbitrary order. |
|
pageNo |
No |
String |
Definition: Page number for pagination query. Constraints: N/A Range:
NOTE:
0
Default value: 1 |
|
pageSize |
No |
String |
Definition: Page size. Constraints: N/A Value range:
NOTE:
0
Default value: |
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/e3d7cec9fcd248958fc729f7220f136d/api/dashboard/pipeline-count?pageNo=1&pageSize=10&_=1763949971018
Example Responses
Status code: 200
OK
{
"total" : 2,
"pageSize" : 10,
"pageNo" : 1,
"projectCountList" : [ {
"projectName" : "Test",
"projectId" : "0187f1f990ce4145b7875b56c00bd860",
"pipelineCount" : "3",
"deleted" : false
}, {
"projectName" : "Scrum",
"projectId" : "03a8d331b34345069b509b41a592964c",
"pipelineCount" : "2",
"deleted" : false
} ],
"allCount" : 2
}
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