Skip to content

resources.configureRuntime

POST
/resources/{resourceId}/runtime-profile
curl --request POST \
--url https://example.com/api/resources/example/runtime-profile \
--header 'Content-Type: application/json' \
--data '{ "runtimeProfile": { "strategy": "auto", "installCommand": "example", "buildCommand": "example", "startCommand": "example", "runtimeName": "example", "publishDirectory": "example", "dockerfilePath": "example", "dockerComposeFilePath": "example", "buildTarget": "example", "healthCheckPath": "example", "healthCheck": { "enabled": true, "type": "http", "intervalSeconds": 5, "timeoutSeconds": 5, "retries": 10, "startPeriodSeconds": 5, "http": { "method": "GET", "scheme": "http", "host": "localhost", "port": 1, "path": "/", "expectedStatusCode": 200, "expectedResponseText": "example" } }, "kubernetesNamespace": "example", "helmChart": "example", "swarmService": "example", "replicas": "example", "nodeSelector": "example", "ingressClass": "example", "providerOptions": "example" }, "idempotencyKey": "example" }'

Configures runtime settings such as strategy, commands, and publish directory. Public docs: /docs/resources/profiles/source-runtime/#resource-runtime-profile

resourceId
required
string
>= 1 characters
Media type application/json
object
runtimeProfile
required
object
strategy
string
default: auto
Allowed values: auto dockerfile docker-compose prebuilt-image workspace-commands static
installCommand
string
>= 1 characters
buildCommand
string
>= 1 characters
startCommand
string
>= 1 characters
runtimeName
string
>= 1 characters
publishDirectory
string
>= 1 characters
dockerfilePath
string
>= 1 characters
dockerComposeFilePath
string
>= 1 characters
buildTarget
string
>= 1 characters
healthCheckPath
string
>= 1 characters
healthCheck
object
enabled
boolean
default: true
type
string
default: http
Allowed value: http
intervalSeconds
integer
default: 5 > 0 <= 9007199254740991
timeoutSeconds
integer
default: 5 > 0 <= 9007199254740991
retries
integer
default: 10 > 0 <= 9007199254740991
startPeriodSeconds
integer
default: 5 <= 9007199254740991
http
object
method
string
default: GET
Allowed values: GET HEAD POST OPTIONS
scheme
string
default: http
Allowed values: http https
host
string
default: localhost >= 1 characters
port
integer
> 0 <= 65535
path
string
default: / >= 1 characters
expectedStatusCode
integer
default: 200 >= 100 <= 599
expectedResponseText
string
>= 1 characters
kubernetesNamespace
helmChart
swarmService
replicas
nodeSelector
ingressClass
providerOptions
idempotencyKey
string
>= 1 characters

OK

Media type application/json
object
id
required
string
Example generated
{
"id": "example"
}