api/autoscale.go
func autoScaleGetConfig(w http.ResponseWriter, r *http.Request, t auth.Token) error {
	allowedGetConfig := permission.Check(t, permission.PermNodeAutoscaleRead)
	if !allowedGetConfig {
		return permission.ErrUnauthorized
	}
	config, err := autoscale.CurrentConfig()
	if err != nil {
		return err
	}
	w.Header().Set("Content-Type", "application/json")
	return json.NewEncoder(w).Encode(config)
}
func autoScaleGetConfig(w http.ResponseWriter, r *http.Request, t auth.Token) error {
	allowedGetConfig := permission.Check(t, permission.PermNodeAutoscaleRead)
	if !allowedGetConfig {
		return permission.ErrUnauthorized
	}
	config, err := autoscale.CurrentConfig()
	if err != nil {
		return err
	}
	w.Header().Set("Content-Type", "application/json")
	return json.NewEncoder(w).Encode(config)
}
// title: get autoscale config
// path: /autoscale/config
// method: GET
// produce: application/json
// responses:
//   200: Ok
//   401: Unauthorized