Function scale_application

Source
pub async fn scale_application(
    app_id: String,
    request: Json<ScaleRequest>,
) -> Json<ScaleResponse>
Expand description

Scale up/down the specified application or service.

This endpoint handles both horizontal scaling (changing replica count) and vertical scaling (adjusting resource limits).

§Arguments

  • app_id - Unique identifier of the application to scale
  • request - Scaling parameters including replicas and resource limits

§Returns

JSON response indicating the result of the scaling operation