router/api-router.go:422。controller.SearchDeployments,controller/deployment.go:243。deployment:read。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/deployments/search?status=&keyword=&p=&page_size=&ps=&size=' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "string",
"data": {
"page": 0,
"page_size": 0,
"total": 0,
"items": [
{
"id": "string",
"deployment_name": "string",
"container_name": "string",
"status": "string",
"type": "string",
"time_remaining": "string",
"hardware_info": "string",
"hardware_name": "string",
"brand_name": "string",
"model_name": "string",
"model_version": "string",
"description": "string",
"provider": "string",
"time_remaining_minutes": 0,
"hardware_quantity": 0,
"compute_minutes_served": 0,
"compute_minutes_remaining": 0,
"created_at": 0,
"updated_at": 0,
"instance_count": 0,
"completed_percent": 0,
"resource_config": {
"cpu": "string",
"memory": "string",
"gpu": "string",
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}
],
"status_counts": {
"property1": 0,
"property2": 0
},
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}