PUT - /item/deploy/configure
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.
Input
Type: application/json
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 | Â |
body.config.src.from
Conditional require, with one of the following:
["tag"]
["branch", "commit"]
Param | Source | Type | Required | Description |
---|---|---|---|---|
tag | body.config.src.from | string | Yes conditional | Â |
branch | body.config.src.from | string | Yes conditional | Â |
commit | body.config.src.from | string | Yes conditional | Â |
body.config.recipe.env
Any of the below:
"^.*$"
as string"^.*$"
as object
Param | Source | Type | Required | Description |
---|---|---|---|---|
| body.config.recipe.env | string | Yes | Â |
| body.config.recipe.env | object | yes | Â |
 | body.config.recipe.env…. | string | yes |  |
 | body.config.recipe.env…. | string | yes |  |
body.config.recipe.sourceCode
Conditional require, with one of the following:
["label", "catalog", "id", "version", "tag"]
["label", "catalog", "id", "version", "branch", "commit"]
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
Invalid Response
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! |
Â