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"}
All subsequent calls are shown with two assumptions:
https://console.mobiledgex.net/api/v1
.curlrc
file setup with the following values:
-H "Content-Type: application/json"
-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.
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"}}
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"}}
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
{}