mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 14:53:25 +00:00
Expose scale-function endpoint
- exposes scale-function endpoint for use with faas-idler, this is protected by auth when enabled. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
@ -197,6 +197,33 @@ paths:
|
||||
description: Function not found
|
||||
'500':
|
||||
description: Error connecting to function
|
||||
'/system/scale-function/{functionName}':
|
||||
get:
|
||||
summary: Scale a function
|
||||
parameters:
|
||||
- in: path
|
||||
name: functionName
|
||||
description: Function name
|
||||
type: string
|
||||
required: true
|
||||
- in: body
|
||||
name: input
|
||||
description: Function to scale plus replica count
|
||||
schema:
|
||||
type: string
|
||||
format: binary
|
||||
example:
|
||||
'{"service": "hello-world", "replicas": 10}'
|
||||
required: false
|
||||
responses:
|
||||
'200':
|
||||
description: Scaling OK
|
||||
'202':
|
||||
description: Scaling OK
|
||||
'404':
|
||||
description: Function not found
|
||||
'500':
|
||||
description: Error scaling function
|
||||
'/system/function/{functionName}':
|
||||
get:
|
||||
summary: Get a summary of an OpenFaaS function
|
||||
|
Reference in New Issue
Block a user