router/api-router.go:426。controller.GetAvailableReplicas,controller/deployment.go:564。deployment:read。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/deployments/available-replicas?hardware_id=&gpu_count=' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "string",
"data": {
"replicas": [
{
"location_id": 0,
"location_name": "string",
"hardware_id": 0,
"hardware_name": "string",
"available_count": 0,
"max_gpus": 0,
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}