router/api-router.go:427。controller.GetPriceEstimation,controller/deployment.go:600。deployment:read。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/deployments/price-estimation' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"location_ids": [
0
],
"hardware_id": 0,
"gpus_per_container": 0,
"duration_hours": 0,
"replica_count": 0,
"currency": "string",
"duration_type": "string",
"duration_qty": 0,
"hardware_qty": 0,
"property1": "string",
"property2": "string"
}'{
"success": true,
"message": "string",
"data": {
"estimated_cost": 0,
"currency": "string",
"price_breakdown": {
"compute_cost": 0,
"network_cost": 0,
"storage_cost": 0,
"total_cost": 0,
"hourly_rate": 0,
"property1": "string",
"property2": "string"
},
"estimation_valid": true,
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}