General Information
...
Service | API | Method | Data Models | Workflow |
---|---|---|---|---|
marketplace | /item/deploy/configure | PUT | N/A | N/A |
Description
This API updates the deployment configuration of an item.
...
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | query | string | Yes |
|
name | query | string | Yes |
|
config | body | object | Yes |
|
env | body.config | string | Yes |
|
version | body.config | string | Yes |
|
cd | body.config | object | Yes |
|
strategy | body.config.cd | enum | Yes | ["notify", "update"] |
settings | body.config | object | Yes | |
memory | body.config.settings | string | Yes |
|
mode | body.config.settings | enum | Yes | ["Deployment", "DaemonSet", "CronJob"] |
concurrencyPolicy | body.config.settings | enum | No | ["Allow", "Forbid", "Replace"] |
schedule | body.config.settings | string | No | |
restartPolicy | body.config.settings | enum | No | ["OnFailure", "Never"] |
replicas | body.config.settings | integer | ||
src | body.config | object | No | |
from | body.config.src | object | Yes | |
id | body.config.src | string | Yes | |
autoScale | body.config | object | No | |
replicas | body.config.autoScale | object | Yes |
|
min | body.config.autoScale.replicas | integer | yes | min 1 |
max | body.config.autoScale.replicas | integer | yes | min 1 |
metrics | body.config.autoScale | object | Yes |
|
cpu | body.config.autoScale.metrics | object | Yes | |
percent | body.config.autoScale.metrics.cpu | number | Yes | |
recipe | body.config | object | Yes | |
id | body.config.recipe | string | Yes |
|
image | body.config.recipe | object | No | |
name | body.config.recipe.image | string | Yes | |
prefix | body.config.recipe.image | string | Yes | |
tag | body.config.recipe.image | string | Yes | |
ports | body.config.recipe | object | No | |
type | body.config.recipe.ports | string | Yes | |
portType | body.config.recipe.ports | string | Yes | |
externalTrafficPolicy | body.config.recipe.ports | enum | No |
|
values | body.config.recipe.ports | array of object | Yes | |
name | body.config.recipe.ports.externalTrafficPolicy | string | Yes | |
target | body.config.recipe.ports.externalTrafficPolicy | integer | No | |
isPublished | body.config.recipe.ports.externalTrafficPolicy | boolean | No | |
env | body.config.recipe | object | No | |
sourceCode | body.config.recipe | object | No |
...
Param | Source | Type | Required | Description |
---|---|---|---|---|
label | body.config.recipe.sourceCode | string | Yes conditional | |
catalog | body.config.recipe.sourceCode | string | Yes conditional | |
id | body.config.recipe.sourceCode | string | Yes conditional | |
version | body.config.recipe.sourceCode | string | Yes conditional | |
branch | body.config.recipe.sourceCode | string | Yes conditional | |
tag | body.config.recipe.sourceCode | string | Yes conditional | |
commit | body.config.recipe.sourceCode | string | Yes conditional |
Output
...
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Invalid Response
Expand | ||
---|---|---|
| ||
|
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
...
Code | Description |
---|---|
400 | Business logic required data are missing |
405 | Recipe not allowed for this item! |
406 | You are not allowed to deploy this item in this environment! |
501 | Item not found! |
602 | Model error: + %model_error% |
603 | Model item not updated! |