POST - /recipe
General Information
Service | API | Method | Data Models | Workflow |
---|---|---|---|---|
marketplace | /recipe | POST | N/A | N/A |
Description
Get catalog recipe by id
Input
Type: application/json
Input | Source | Required | Type | Description |
---|---|---|---|---|
catalog | body | Yes | object | Â |
name | body.catalog | Yes | string | Â |
type | body.catalog | Yes | string | Â |
subtype | body.catalog | No | string | Â |
description | body.catalog | Yes | string | Â |
recipe | body.catalog | Yes | object | Â |
deployOptions | body.catalog.recipe | Yes | object | Â |
image | body.catalog.recipe.deployOptions | No | object | Â |
prefix | body.catalog.recipe.deployOptions.image | No | string | Â |
name | body.catalog.recipe.deployOptions.image | Yes | string | Â |
tag | body.catalog.recipe.deployOptions.image | Yes | string | Â |
repositoryType | body.catalog.recipe.deployOptions.image | No | string |
|
pullPolicy | body.catalog.recipe.deployOptions.image | No | string | Â |
shell | body.catalog.recipe.deployOptions.image | No | string | Â |
sourceCode | body.catalog.recipe.deployOptions | No | object | Â |
configuration | body.catalog.recipe.deployOptions.sourceCode | No | object | Â |
label | body.catalog.recipe.deployOptions.sourceCode.configuration | Yes | string | Â |
readinessProbe | body.catalog.recipe.deployOptions | No | object | Free JSON Schema |
liveinessProbe | body.catalog.recipe.deployOptions | No | object | Free JSON Schema |
ports | body.catalog.recipe.deployOptions | No | Array of objects | Â |
name | body.catalog.recipe.deployOptions.ports | Yes | string | Â |
isPublished | body.catalog.recipe.deployOptions.ports | No | boolean | Â |
port | body.catalog.recipe.deployOptions.ports | No | number | Â |
target | body.catalog.recipe.deployOptions.ports | No | number | Â |
published | body.catalog.recipe.deployOptions.ports | No | number | Â |
preserveClientIP | body.catalog.recipe.deployOptions.ports | No | boolean | Â |
voluming | body.catalog.recipe.deployOptions | No | object | Â |
kubernetes | body.catalog.recipe.deployOptions.voluming | No | object | Â |
volume | body.catalog.recipe.deployOptions.voluming.kubernetes | Yes | object | Â |
volumeMount | body.catalog.recipe.deployOptions.voluming.kubernetes | Yes | object | Â |
labels | body.catalog.recipe.deployOptions | No | object | Â |
execCommands | body.catalog.recipe.deployOptions | No | object | Â |
buildOptions | body.catalog.recipe | No | object | Â |
settings | body.catalog.recipe.buildOptions | No | object | Â |
env | body.catalog.recipe.buildOptions | No | object | Â |
type | body.catalog.recipe.buildOptions.env | Yes | string |
|
label | body.catalog.recipe.buildOptions.env | No | string | Â |
fieldMsg | body.catalog.recipe.buildOptions.env | No | string | Â |
default | body.catalog.recipe.buildOptions.env | No | string | Â |
cmd | body.catalog.recipe.buildOptions | No | object | Â |
deploy | body.catalog.recipe.buildOptions.cmd | Yes | object | Â |
command | body.catalog.recipe.buildOptions.cmd.deploy | Yes | Array of strings | Â |
args | body.catalog.recipe.buildOptions.cmd.deploy | Yes | Array of strings | Â |
Â
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 |
430 | One of the inputs under configuration repository is missing. |
431 | The port chosen is outside the range of valid exposed ports (30000, 32767) |
432 | Invalid port schema provided! |
602 | Model error: + %model_error% |
Â
Â