resources.configureRuntime
POST
/resources/{resourceId}/runtime-profile
const url = 'https://example.com/api/resources/example/runtime-profile';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” resourceId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
runtimeProfile
required
object
strategy
string
installCommand
string
buildCommand
string
startCommand
string
runtimeName
string
publishDirectory
string
dockerfilePath
string
dockerComposeFilePath
string
buildTarget
string
healthCheckPath
string
healthCheck
object
enabled
boolean
type
string
intervalSeconds
integer
timeoutSeconds
integer
retries
integer
startPeriodSeconds
integer
http
object
method
string
scheme
string
host
string
port
integer
path
string
expectedStatusCode
integer
expectedResponseText
string
kubernetesNamespace
helmChart
swarmService
replicas
nodeSelector
ingressClass
providerOptions
idempotencyKey
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
required
string
Example generated
{ "id": "example"}