Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Description

This API redeploys a deployed item, when you redeploy you have the option to change the following:

  • for image you can change the tag

  • for repository you can change either

    • the tag

    • or the branch and commit


Input

Type: application/json

Param

Source

Type

Required

Description

type

query

string

yes

 

name

query

string

yes

 

env

query

string

yes

 

version

query

string

yes

 

image

body

Object

no

tag

body.image

string

yes

src

body

Object

no

from

body.src

Object

Yes

 
body.src.from

Conditional require, with one of the following:

  • ["tag"]

  • ["branch", "commit"]

Param

Source

Type

Required

Description

tag

body.src.from

string

conditional yes

branch

body.src.from

string

conditional yes

commit

body.src.from

string

conditional yes

Output


Response

SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response 

Valid Response

 SAMPLE
{
  "result": true,
  "data": "Item Successfully Redeployed!
}

Invalid Response

 SAMPLE
{
    "result":false,
    "errors":{
        "codes":[602],
        "details":[
            {
                "code":602,
                "message":"Model error: + %model_error%"
            }
        ]
    }
}

Response schema

Follow this link to check out the response JSON Schema

SOAJS Error Codes


Code

Description

400

Business logic required data are missing

406

You are not allowed to deploy this item in this environment!

407

The deploy configuration of this Environment was not found

410

The deploy configuration of this version was not found

413

Item not deployed!

421

Unable to connect to item

423

Unable to redeploy item!

501

Item is locked!

503

Service Error + + %service_error%

602

Model error: + %model_error%

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.