Skip to content

Install & Update

Install Service

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/installDeployment

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "imageRepository": "magicpigdocker/lp-market:v0.2",
    "installType": "market",
    "name": "market-01",
    "install": true,
    "customEnv": [
      {
        "key": "key2",
        "value": "value2"
      },
      {
        "key": "key3",
        "value": "value3"
      }
    ]
  }
}

Description of the request json field

Parameter NameMandatoryTypeExplain
setupConfigYObjectnone
setupConfig.imageRepositoryYstringThe address of the image.
setupConfig.installTypeYstringamm market
setupConfig.installYbooleanWhether to install immediately or just view the return template.
setupConfig.customEnvNarrayCustom environment variables.
setupConfig.customEnv.keyNstringnone
setupConfig.customEnv.valueNstringnone

Successful return example

json
{
  "code": 0,
  "result": {
    "CmdStdout": "deployment.apps/obridge-amm unchanged\n",
    "CmdStderr": "",
    "Template": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: \"obridge-amm\"\n labels:\n app: \"obridge-amm\"\nspec:\n replicas: 1\n selector:\n matchLabels:\n app: \"obridge-amm\"\n template:\n metadata:\n labels:\n app: \"obridge-amm\"\n spec:\n containers:\n - name: \"obridge-amm\"\n image: \"magicpigdocker/amm:v0.11\"\n ports:\n - containerPort: 18081 \n env:\n \n - name: \"key1\"\n value: \"value1\"\n \n - name: \"key2\"\n value: \"value3\"\n \n - name: MONGODBPASS\n valueFrom:\n secretKeyRef:\n name: obridge-lpnode-db-mongodb\n key: mongodb-root-password\n - name: REDIS_PASS\n valueFrom:\n secretKeyRef:\n name: obridge-lpnode-db-redis\n key: redis-password\n"
  },
  "message": ""
}

Parameter description of the successful return example

Parameter NameTypeExplain
codestring0 when successful
resultObjectThere is a result when successful.
CmdStdoutstringnone
CmdStderrstringnone
TemplatestringTemplate
messagestringnone

Install LpClient

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/installLpClient

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "type": "near",
    "imageRepository": "kldtks/edge:obridge-chain-client-evm-latest",
    "install": true,
    "customEnv": [
      {
        "key": "key1",
        "value": "value1"
      },
      {
        "key": "key2",
        "value": "value3"
      }
    ],
    "rpcUrl": "https://data-seed-prebsc-2-s1.binance.org:8545",
    "startBlock": "20000000"
  }
}

Uninstall LpClient

info BaseInfo Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/uninstallLpClient

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "type": "bsc",
    "uninstall": true
  }
}

Uninstall market

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/uninstallDeployment

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "installType": "market",
    "name": "market-01",
    "uninstall": true
  }
}

Install Service-Amm

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/installDeployment

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "imageRepository": "kldtks/edge:otmoic-lpnode-amm-edd840f7",
    "installType": "amm",
    "name": "amm01",
    "install": true,
    "customEnv": [
      {
        "key": "keyA",
        "value": "value2"
      },
      {
        "key": "keyb",
        "value": "value3"
      }
    ]
  }
}

Description of the request json field

Parameter NameMandatoryTypeExplain
setupConfigYObjectnone
setupConfig.imageRepositoryYstringimage address
setupConfig.installTypeYstringamm market
setupConfig.installYbooleanWhether to install immediately or just view the returned template
setupConfig.customEnvNarrayEnv
setupConfig.customEnv.keyNstringnone
setupConfig.customEnv.valueNstringnone

Successful return example

json
{
  "code": 0,
  "result": {
    "CmdStdout": "deployment.apps/obridge-amm unchanged\n",
    "CmdStderr": "",
    "Template": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: \"obridge-amm\"\n labels:\n app: \"obridge-amm\"\nspec:\n replicas: 1\n selector:\n matchLabels:\n app: \"obridge-amm\"\n template:\n metadata:\n labels:\n app: \"obridge-amm\"\n spec:\n containers:\n - name: \"obridge-amm\"\n image: \"magicpigdocker/amm:v0.11\"\n ports:\n - containerPort: 18081 \n env:\n \n - name: \"key1\"\n value: \"value1\"\n \n - name: \"key2\"\n value: \"value3\"\n \n - name: MONGODBPASS\n valueFrom:\n secretKeyRef:\n name: obridge-lpnode-db-mongodb\n key: mongodb-root-password\n - name: REDIS_PASS\n valueFrom:\n secretKeyRef:\n name: obridge-lpnode-db-redis\n key: redis-password\n"
  },
  "message": ""
}

Parameter description of the successful return example

Parameter NameTypeExplain
codestringIt is "0" when the operation is successful.
resultObjectThere will be a "result" when the operation is successful.
CmdStdoutstringnone
CmdStderrstringnone
TemplatestringThe deployment template rendered during installation.
messagestringnone

update service Amm

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/updateDeployment

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "installType": "userApp",
    "name": "user01",
    "installContext": "{\"deployment\":{\"customEnv\":[{\"key\":\"key005\",\"value\":\"value1\"},{\"key\":\"key008\",\"value\":\"value2\"}]}}",
    "image": "magicpigdocker/amm:v0.18",
    "update": true
  }
}

Description of the request json field

Parameter NameMandatoryTypeExplain
setupConfigYObjectnone
setupConfig.imageRepositoryYstringThe address of the image.
setupConfig.installTypeYstringamm market
setupConfig.installYbooleanWhether to install immediately or just view the return template.
setupConfig.customEnvNarrayCustom environment variables.
setupConfig.customEnv.keyNstringnone
setupConfig.customEnv.valueNstringnone

Successful return example

json
{
  "code": 0,
  "result": {
    "CmdStdout": "deployment.apps/obridge-amm unchanged\n",
    "CmdStderr": "",
    "Template": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: \"obridge-amm\"\n labels:\n app: \"obridge-amm\"\nspec:\n replicas: 1\n selector:\n matchLabels:\n app: \"obridge-amm\"\n template:\n metadata:\n labels:\n app: \"obridge-amm\"\n spec:\n containers:\n - name: \"obridge-amm\"\n image: \"magicpigdocker/amm:v0.11\"\n ports:\n - containerPort: 18081 \n env:\n \n - name: \"key1\"\n value: \"value1\"\n \n - name: \"key2\"\n value: \"value3\"\n \n - name: MONGODBPASS\n valueFrom:\n secretKeyRef:\n name: obridge-lpnode-db-mongodb\n key: mongodb-root-password\n - name: REDIS_PASS\n valueFrom:\n secretKeyRef:\n name: obridge-lpnode-db-redis\n key: redis-password\n"
  },
  "message": ""
}

Parameter description of the successful return example

Parameter NameTypeExplain
codestringIt is 0 when successful.
resultObjectThere is a result when successful.
CmdStdoutstringnone
CmdStderrstringnone
TemplatestringThe deployment template rendered during installation.
messagestringnone

list all service

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/listInstall

Request Method

  • post

Request Parameter Example

json
{
  "installType": "amm"
}

Description of the request json field

Parameter NameMandatoryTypeExplain
installTypeYstringamm ammClient market

uninstall service

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/uninstallDeployment

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "installType": "amm",
    "name": "amm01",
    "uninstall": true
  }
}

Description of the request json field

Parameter NameMandatoryTypeExplain
setupConfigYObjectnone
setupConfig.installTypeYstringamm market
setupConfig.nameYstringname for install
setupConfig.uninstallYbooleannone

update service

info BaseInfo

Brief Description

  • None

Request URL

  • /lpnode/lpnode_admin_panel/ctrl/updateDeployment

Request Method

  • post

Request Parameter Example

json
{
  "setupConfig": {
    "installType": "ammClient",
    "name": "bsc",
    "image": "kldtks/edge:obridge-chain-client-near-37b587b2",
    "installContext": "{\"deployment\":{\"startBlock\":\"800\",\"rpcUrl\":\"bscupdate url\",\"image\":\"kldtks/edge:otmoic-chainclient-evm-95f97f3d\",\"customEnv\":[{\"key\":\"key5\",\"value\":\"value1\"},{\"key\":\"key4\",\"value\":\"value2\"}]}}",
    "update": true
  }
}