Download OpenAPI specification:Download
The MPP Admin API provides REST access to a limited set of dedicated actions. The MPP Admin API is running on port 1443.
The API uses the following status codes:
The 200 (OK) status code indicates that the request has succeeded. The payload sent in a 200 response depends
on the request method.
The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to
something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing,
or deceptive request routing).
The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid
authentication credentials for the target resource.
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it.
The 404 (Not Found) status code indicates that the origin server did not find a current representation for the
target resource or is not willing to disclose that one exists. A 404 status code does not indicate whether this lack
of representation is temporary or permanent.
The 405 (Method Not Allowed) status indicates that the server does not support the request method for the
target resource.
The 409 (Conflict) status indicates that a resource with the same ID or name already exists.
The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition
that prevented it from fulfilling the request.
To use the admin API, a security token must always be sent in the header. This token can be obtained via the authentication API.
MPP login object
| username required | string MPP user |
| password required | string Cleartext password |
{- "username": "user1",
- "password": "top-secret"
}{- "token": "112f14f5-f260-4afd-a26b-0ca8ed1885d6",
- "username": "user1",
- "userId": "ebb1afd2-bf30-436b-adae-59dcb67a6116",
- "accessType": "SSH_ROOT_ACCESS",
- "roles": [
- "ADMIN"
], - "systemId": "0f0c5df2-df89-45c1-a88c-a8cab1b655d1",
- "currentCustomerKey": "ONWAY",
- "currentCustomerName": "onway ag"
}curl -v -H "X-AUTH-TOKEN:112f14f5-f260-4afd-a26b-0ca8ed1885d6" -H "Accept:application/json" -X GET https://mpp01.example.org:1443/api/logout
{- "globalErrorsCount": 0,
- "globalErrors": [ ],
- "fieldErrorsCount": 1,
- "fieldErrors": [
- {
- "field": "description",
- "msg": "must not be blank"
}
]
}curl -v -i -H "X-AUTH-TOKEN:b5b3aeca-1e9d-414a-8d9d-c973424ab4eb" -H "Accept:application/json" https://mpp01.example.org:1443/api/version
{- "buildDate": "2021-10-06T03:46:05Z",
- "idAbbreviation": "4248ae8",
- "version": "8.2.1"
}Note: This request starts an asynchronous task. A success status response code does not mean that the remote session has been found or routed, only that the request has started.
Route Session Request
| macAddress required | string Client MAC address. |
| routeKey required | string Route key of the route authenticator. |
{- "macAddress": "afbecddcebfa",
- "routeKey": "to-blocked"
}{- "globalErrorsCount": 0,
- "globalErrors": [ ],
- "fieldErrorsCount": 1,
- "fieldErrors": [
- {
- "field": "description",
- "msg": "must not be blank"
}
]
}curl -v -i -H "X-AUTH-TOKEN:112f14f5-f260-4afd-a26b-0ca8ed1885d6" -H "Accept: application/json" https://mpp01.example.org:1443/api/edit-config
{ }Note: This operation takes place in memory only. The configuration is neither saved nor activated. Use Save and activate current config to do that.
Whole MPP configuration object for all customers
{ }{- "globalErrorsCount": 0,
- "globalErrors": [ ],
- "fieldErrorsCount": 1,
- "fieldErrors": [
- {
- "field": "description",
- "msg": "must not be blank"
}
]
}Note: This request starts an asynchronous task. A success status response code does not mean that the configuration has been applied, only that the task has started. The task status can be polled via Get manage config task status.
Config description
| description required | string description of the config revision |
{- "description": "Test config save"
}{- "globalErrorsCount": 0,
- "globalErrors": [ ],
- "fieldErrorsCount": 1,
- "fieldErrors": [
- {
- "field": "description",
- "msg": "must not be blank"
}
]
}curl -v -i -H "X-AUTH-TOKEN:112f14f5-f260-4afd-a26b-0ca8ed1885d6" -H "Accept:application/json" https://mpp01.example.org:1443/api/admin/manage-config
{- "taskId": "0d54e145-d2a4-45bc-8b7d-c69f09293010",
- "comment": "No changes",
- "commitId": "HEAD",
- "peerId": "HEAD",
- "state": "EMPTY_COMMIT"
}