mex-docs

Login / Retrieve Token

Request

$ curl -s -XPOST https://console.mobiledgex.net/api/v1/login \
 -H "Content-Type: application/json" \
 -d '{ "password": "somepass", "username": "demo" }'

Response

{"token":"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODYyOTcxNTMsImlhdCI6MTU4NjIxMDc1MywidXNlcm5hbWUiOiJkZW1vIiwiZW1haWwiOiJkZW1vQG1vYmlsZWRnZXguY29tIiwia2lkIjoyfQ.bAqdwNw2stM0r24nrbu08c7qbZjraOGoTLVCopYvsIoX1uxKoEeOm8i78ihp8Tze9gKxttLTx76hKYS6tKo0sA"}

Notes

All subsequent calls are shown with two assumptions:

  1. You are using resty and have it configured properly with a base url of https://console.mobiledgex.net/api/v1
  2. You have a .curlrc file setup with the following values:
    1. -H "Content-Type: application/json"
    2. -H "Authorization: Bearer <JWT Token>"

For 2xx Responses, the body of the Response will be printed to stdout. For all other Responses the body will be dumped to stderr.

Delete the AppInst

Request

POST /auth/ctrl/DeleteAppInst < payload.json

payload.json

{
  "Region": "EU",
  "AppInst": {
    "key": {
      "app_key": {
        "organization": "demoorg",
        "name": "testapp",
        "version": "1.1",
        "developer_key": {
          "name": "demoorg"
        }
      },
      "cluster_inst_key": {
        "cluster_key": {
          "name": "testcluster"
        },
        "cloudlet_key": {
          "operator_key": {
            "name": "TDG"
          },
          "name": "munich-main"
        },
        "developer": "demoorg"
      }
    }
  }
}

Response

{"data":{"message":"Deleting"}}
{"data":{"message":"NotPresent"}}
{"data":{"message":"Deleted AppInst successfully"}}

Delete the Cluster

Request

POST api/v1/auth/ctrl/DeleteClusterInst < payload.json

payload.json

{
  "Region": "EU",
  "ClusterInst": {
    "key": {
      "cloudlet_key": {
        "operator_key": {
          "name": "TDG"
        },
        "name": "munich-main"
      },
      "developer": "demoorg",
      "developer_key": {
        "name": "demoorg"
      },
      "cluster_key": {
        "name": "testcluster"
      },
      "organization": "demoorg"
    }
  }
}

Response

{"data":{"message":"Deleting"}}
{"data":{"message":"NotPresent"}}
{"data":{"message":"Deleted ClusterInst successfully"}}

Delete the App

Request

POST api/v1/auth/ctrl/DeleteApp < payload.json

payload.json

{
  "Region": "EU",
  "App": {
    "key": {
      "developer_key": {
        "name": "demoorg"
      },
      "name": "testapp",
      "organization": "demoorg",
      "version": "1.1"
    }
  }
}

Response

{}