Update and Deploy a Runtime
Update and Deploy a Runtime
PUTundefined/functions/v1/runtimes/:runtimeIdentifier
Update and Deploy a Runtime
Request
Path Parameters
The runtime ID or Name
Header Parameters
The ID of the organization (this parameter is not required when using API key authorization)
The ID of the project to update the runtime (Use this if you are not going to use the X-Project-Name)
The Name of the project to update the runtime (Use this if you are not going to use the X-Project-Id)
The ID of the environment to update the runtime (Use this if you are not going to use the X-Environment-Name)
The Name of the environment to update the runtime (Use this if you are not going to use the X-Environment-Id)
- application/json
Bodyrequired
Indicates if the runtime is containerized.
Path to the Dockerfile (required if isContainerized is true).
Possible values: <= 255 characters
The source code language (NodeJS, Java, Python, Golang). Required if isContainerized is false.
runtimeVariables object[]required
integration objectrequired
Responses
- 200
- 400
- 401
- 403
Success
- application/json
- Schema
- Example (auto)
Schema
true
2024-01-01T00:00:00.000Z
200
ok
Message successfully
someone-method:success
data object
{
"success": true,
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 200,
"statusText": "ok",
"message": "Message successfully",
"localization": "someone-method:success",
"data": {
"id": "string",
"projectId": "string",
"templateId": "string",
"environmentId": "string",
"instanceTypesId": "string",
"integrationId": "string",
"name": "string",
"active": true,
"statusType": "ENABLED",
"dockerfilePath": "string",
"ports": [
null
],
"replicas": 0,
"traffic": "string",
"integration": {
"fullName": "string",
"urlRepo": "string",
"repositoryName": "string"
},
"hostUrl": "string",
"tagName": "string",
"createdAt": "string",
"updatedAt": "string",
"domainId": "string",
"isContainerized": true,
"sourceCodeLanguage": "string",
"linkGitHash": "https://{repo}/tree/{branch-or-tag}"
}
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
false
null
2024-01-01T00:00:00.000Z
400
Bad Request
Message Error
someone-method:error
{
"success": false,
"data": {},
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 400,
"statusText": "Bad Request",
"message": "Message Error",
"localization": "someone-method:error"
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
false
null
2024-01-01T00:00:00.000Z
401
Unauthorized
Message Unauthorized
someone-method:error
{
"success": false,
"data": {},
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 401,
"statusText": "Unauthorized",
"message": "Message Unauthorized",
"localization": "someone-method:error"
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
false
null
2024-01-01T00:00:00.000Z
403
Forbidden
Message Forbidden
someone-method:error
{
"success": false,
"data": {},
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 403,
"statusText": "Forbidden",
"message": "Message Forbidden",
"localization": "someone-method:error"
}
Authorization: x-api-key
name: x-api-keytype: apiKeyin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "undefined/functions/v1/runtimes/:runtimeIdentifier");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("x-api-key", "<x-api-key>");
var content = new StringContent("{\n \"isContainerized\": true,\n \"dockerfile\": \"string\",\n \"sourceCodeLanguage\": \"string\",\n \"replicas\": 0,\n \"ports\": [\n 0\n ],\n \"instanceType\": \"string\",\n \"templateId\": \"string\",\n \"trafficType\": \"string\",\n \"integrationId\": \"string\",\n \"runtimeVariables\": [\n {\n \"name\": \"string\",\n \"value\": \"string\",\n \"secretVariable\": {\n \"name\": \"string\"\n }\n }\n ],\n \"integration\": {\n \"branch\": \"string\",\n \"urlRepo\": \"string\",\n \"repositoryName\": \"string\",\n \"fullname\": \"string\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());