This is the reference documentation for Morio's Core API. It is auto-generated from this API's OpenAPI v3 specification.
With the exception of the /status
endpoint — along with this /docs
endpoint itself — this API is internal to Morio.
In other words, you cannot interact with it, or use it as a regular user, or even an administrator. This documentation serves only those who want to learn how Morio works under the hood.
To learn how to interact with Morio through its user-facing API, refer to the documentation for Morio's Management API instead.
Join cluster
This will cause an ephemeral node to join a cluster
Request Body schema: application/jsonrequired
The data required to join the cluster. Note that this includes the private keys and certificates.
you required | string |
join required | string |
cluster required | string <uuid> |
as required | string Enum: "broker_node" "flanking_node" |
object | |
object | |
headers | object |
Responses
Request samples
- Payload
{- "you": "morio-node2.tokyo.morio.it",
- "join": "morio-node1.tokyo.morio.it",
- "as": "broker_bode",
- "cluster": "3dafca38-993c-4ebf-8613-2d044e1450f4",
- "settings": {
- "serial": 1722353755056,
- "data": {
- "cluster": {
- "name": "Morio Unit Tests",
- "broker_nodes": [
- "unit.test.morio.it"
]
}, - "tokens": {
- "flags": {
- "HEADLESS_MORIO": false,
- "DISABLE_ROOT_TOKEN": false
}, - "secrets": {
- "TEST_SECRET_1": "{\"iv\":\"4b16f0efa70cdcad568441143b0ebbea\",\"ct\":\"28262a424d8b3378b2ac78c7074deeec\"}",
- "TEST_SECRET_2": "{\"iv\":\"bc0fb68aa6f37cc4eda8fca6a50d7448\",\"ct\":\"cc786dfb1c5fe6dd4ad389855a206d57\"}",
- "LDAP_BIND_SECRET": "{\"iv\":\"8b185698a44410657ce84ba6a35b82ce\",\"ct\":\"7ed3e4c461455f3a4a8b44f834935b6b\"}"
}
}, - "iam": {
- "providers": {
- "apikey": {
- "provider": "apikey",
- "id": "apikey",
- "label": "API Key"
}, - "mrt": { },
- "local": {
- "provider": "local",
- "id": "mrt",
- "label": "Morio Account"
}, - "ldap": {
- "provider": "ldap",
- "verify_certificate": false,
- "id": "ldap",
- "label": "LDAP",
- "about": "Test LDAP server",
- "server": {
- "url": "ldap://ldap:10389",
- "bindDN": "uid=admin,ou=system",
- "bindCredentials": "{{{ LDAP_BIND_SECRET }}}",
- "searchBase": "ou=Users,dc=ldap,dc=unit,dc=test,dc=morio,dc=it",
- "searchFilter": "(&(objectclass=person)(uid={{username}}))"
}, - "username_field": "uid",
- "rbac": {
- "manager": {
- "attribute": "employeetype",
- "regex": "^manager$"
}, - "operator": {
- "attribute": "employeetype",
- "regex": "^admin$"
}
}
}
}
}
}, - "keys": {
- "jwt": "eb3be6a4e4a3eb4dfc76202c7a8a0d62294788d8d238ae9d7de9b489b6a6cbf895bb7255e6a67cccab0ddd3ddb1a45bf3d691447c7c91dec333b8724da76c2de",
- "mrt": "mrt.eff7902e0eff6a4ffdaffd84ae5f9fb4ee8d67db07efa561ab28fd3fb3f4ee36",
- "public": "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAi8sk8Bk3xBB/vSdkqYUV\n7iDFaGg8ser6tBERCV8M0W5e4h9B1MO34HuElEgXGOvQwWRcWkbijxhCfFSW2D4L\nTrJ+FwWENJUMvf7HtEJ9z/iKjNeB5nVDAiu6dNljnht3UILyOWcKrqBt7kWoGZUA\n4e5WvEfQh2OtK/Fd+3Ax5I0jKHUbOIC5lP0qP+S1fakoGGOS/dXDEFO8D5BWMgRe\nVNhWJr1z5NgnWT/yfOhlfSUjqb0qhbljMI1vCpn3vJn8lVgwVd5lhzUFzD0iT25F\ngfhWphWK+XHA3zHYbVTtntEqYz/UxJM57QBbpobJXBHDU9F4FKJKQZOzjbnfnp2y\nmYbIvMmMWARh/BCrjrAR0z+3nM3JKcnoWh0CYCJoRPc8bPkztWc7LXIsxoAgHvk0\neS5Pqd0MqX8zDQ/OsiPLLYODD6INy0m7vOlyHgRE0JS3ZKqNQPVmRGMuV1fvsZEr\nl3xFvkU3EsbSHWJ6/98o0Tndu3sUvdPhsMsn8+3YgDFC6bgCJDvSGelejgTA9OOM\n5BVUfyysC3cc4xDKYU6WLCc0k5li7i/cagGol+M250/mToHV48s8O51M/YMIrwcX\nBKu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QmWY7z\r\nPCnqofW/5lD5cTglMkq7xboFIty0nnMepXEoyT0b9a7qJRcRIrD0bJ/ZVOHRz/+T\r\nCXdkWTbi9suLyNfhcXb2u3jDvI0xMeXr6Ocp8H53s1hby3lym3cg3+cWUKI4mf3L\r\nlOcuVts0AQgQVdqP6Y+K14I2g9jXoWP+EQd8I3QYHp98tx4YcIRqXekEjwhK+sGz\r\n6gXbhIpArEFzCoKEhOHpfbVWrNghjlQXYvvDi+0mE1hyOc/N4Z5C6uluT4QMvW15\r\nJjj8cSK3A3/TSoxzVZjGttDCB1gqefDHkB7MawUginFHCqSTeocgw9FmfzelL5Jj\r\n13d+GXTmGcXijdiLSAExUrRWnsoGEhi66Kkm88s4AybtzrewvZmGNPf6ExsDMPZZ\r\nsVOTw9051zu8jFCqW7S91ZR0S32V4elMpAoCF+D5pXvJW6Hj/LNrJdm6kN5bRhRP\r\nguKUogI3rjIvi7EsmlENsx3I5pQVaGU9FC3kSIcwe0rID3l2pp0S5FzvgwlP2j+a\r\nMyD+48RVcsf37bMGRl5NvQa0/9UCJj2q9FUAkNPbzNP9fzGyjTdzpXbu37KHL/qI\r\n4WwJoj0qxoCQye7oQkXV/n791PwCT7e38BtFG8F9Tu9/4Ql5bhgZICvm4s8mlvIf\r\nqWxUi4HpOWP0NaYJwC7s3D+n9CWyLjkuENjsOo7IS11VxHevj1QLFNoaVSvwvkCJ\r\na9MQIL4ePIIyNdKSUYataRteqw==\r\n-----END ENCRYPTED PRIVATE KEY-----\r\n",
- "rpwd": "4b55fa9d4c4bf39ef10f319032b0cc764034631df3baf30d2a258c16dd3990f573765315a6407fe09769a5a17475c070",
- "icrt": "-----BEGIN CERTIFICATE-----\r\nMIIGqjCCBJKgAwIBAgIBATANBgkqhkiG9w0BAQsFADCBljELMAkGA1UEBhMCQkUx\r\nETAPBgNVBAgTCEJydXNzZWxzMREwDwYDVQQHEwhCcnVzc2VsczEZMBcGA1UEChMQ\r\nRW5naW5lZXJpbmcgVGVhbTEbMB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gfpygtH+qFS1OZOEnfRri34x7lgMOkISHWKncicnvxAZd+ZfJRAo2Ej1QOIyAk\r\nixF/jDvCmhckJsB7Mzs9s8pv0uak+I5+lHpcq9Q5xh7eXcS5hHSIjOV3p7G5lICS\r\n/FXq8mA/6elm+kVkj9mXCIMWSeUNV6Wfs9WISzuuHTW9CbIlI6001CrYAT15o/J3\r\nyvz1SyB9znfiIq7BAmyPQgq+CMTxGljCOePg4cJj1w8y8o/8C7K262h8LHnuU8vZ\r\nSVqeQhliL1u5XO8U1NyRkn9aNJgaC9J3MFWxV4Qz21zkoqbjGCK9YeannEz8l2xt\r\nI5jrVQktoHRn6ynkGB9J9zrjAeUUDqI7DhvX+8kp7pxCOwc+7AYy97nEVXswF/2p\r\nLpyuHO417iZX4JAl1dR4klVLGA==\r\n-----END ENCRYPTED PRIVATE KEY-----\r\n"
}
}, - "keys": { }
}
Response samples
- 400
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}
Cluster hearbeat
This is the cluster heartbeat endpoint, which is where follower nodes will contact the leader node in a Morio cluster
Request Body schema: application/jsonrequired
The API key settings
object | |
checksum required | string |
Responses
Request samples
- Payload
{- "data": {
- "from": {
- "fqdn": "morio-node2.tokyo.morio.it",
- "serial": 2,
- "uuid": "39a47fb4-ec89-44ef-8080-9aa20b4872ed"
}, - "to": "morio-node1.tokyo.morio.it",
- "cluster": "3dafca38-993c-4ebf-8613-2d044e1450f4",
- "cluster_leader": {
- "serial": 1
}, - "version": "0.2.0",
- "settings_serial": 1722353755056,
- "status": {
- "cluster": {
- "code": 2,
- "color": "amber",
- "time": 1722353803197,
- "updated": 1722353833254
}, - "nodes": {
- "morio-node2.tokyo.morio.it": {
- "db": 0,
- "console": 0,
- "api": 0,
- "ca": 0,
- "proxy": 0,
- "ui": 0,
- "broker": 0
}, - "morio-node1.tokyo.morio.it": {
- "db": 0,
- "console": 0,
- "api": 0,
- "ca": 0,
- "proxy": 0,
- "ui": 0,
- "broker": 0
}, - "morio-node3.tokyo.morio.it": {
- "db": 0,
- "console": 0,
- "api": 0,
- "ca": 0,
- "proxy": 0,
- "ui": 0,
- "broker": 0
}
}
}, - "nodes": {
- "39a47fb4-ec89-44ef-8080-9aa20b4872ed": {
- "fqdn": "morio-node2.tokyo.morio.it",
- "hostname": "morio-node2",
- "serial": 2,
- "uuid": "39a47fb4-ec89-44ef-8080-9aa20b4872ed",
- "settings": 1722353755056
}, - "cc048048-798b-4d13-97a0-200874b281f6": {
- "fqdn": "morio-node3.tokyo.morio.it",
- "hostname": "morio-node3",
- "serial": 3,
- "uuid": "cc048048-798b-4d13-97a0-200874b281f6",
- "settings": 1722353755056
}, - "e6d275ab-6285-4986-a0f9-81cb12d2ce4b": {
- "fqdn": "morio-node1.tokyo.morio.it",
- "hostname": "morio-node1",
- "serial": 1,
- "uuid": "e6d275ab-6285-4986-a0f9-81cb12d2ce4b",
- "settings": 1722353755056
}
}, - "broadcast": false,
- "uptime": 105
}, - "checksum": "fcbad2602bb511502d3665ba32c3e3aaa6fe552487d18d25c4ef32c2d2e16c95"
}
Response samples
- 400
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}
Generate X.509 certificate
Generates an X.509 certificate, issued by Morio's internal Certificate Authority
Request Body schema: application/jsonrequired
The Morio settings you want to validate
object | |||||||||||||||
|
Responses
Request samples
- Payload
{- "certificate": {
- "cn": "A Morio Certificate",
- "c": "BE",
- "st": "Brussels",
- "l": "Brussels",
- "o": "CertsRus",
- "ou": "NotThatCrypto",
- "san": [
- "morio-name1.brussels.morio.it",
- "morio-name2.brussels.morio.it",
- "morio-name3.brussels.morio.it"
]
}
}
Response samples
- 400
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}
Decrypt data
Decrypts data with Morio's internal key pair
Request Body schema: application/jsonrequired
The data you want to decrypt
iv required | string |
ct required | string |
Responses
Request samples
- Payload
{- "iv": "f098ed647cae1e2ddfc53240c786c3ab",
- "ct": "43a24de68ca4e8625692e3b3dc8e586d5e146531d49a70c727bac838d57bcda0"
}
Response samples
- 400
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}
Encrypt data
Encrypts data with Morio's internal key pair
Request Body schema: application/jsonrequired
The data you want to encrypt
data required | string |
Responses
Request samples
- Payload
{- "data": "This is secret"
}
Response samples
- 400
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}
List containers
This is a proxy endpoint for the Docker API on the host system that returns list of all containers available on the host system.
To only get the running containers, use the /docker/containers
endpoint instead.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
List running containers
This is a proxy endpoint for the Docker API on the host system that returns the list of containers currently running on the hoste sytem.
To get all containers, use the /docker/allcontainers
endpoint instead.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Get storage metrics
This is a proxy endpoint for the Docker API on the host system that returns information on the used and available storage on the host sytem.
This endpoint is named after the the df
command on Linux.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
List images
This is a proxy endpoint for the Docker API on the host system that returns the list of Docker images available on the host system.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Get Docker info
This is a proxy endpoint for the Docker API on the host system that returns general information about the Docker daemon on the host system.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
List networks
This is a proxy endpoint for the Docker API on the host system that returns a list of Docker networks on the host system.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Get Docker version
This is a proxy endpoint for the Docker API on the host system that returns information on the version of Docker that is running on the host system.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Inspect container
This is a proxy endpoint for the Docker API on the host system that returns information on the container with the ID passed as a parameter in the URL.
This endpoint is equivalent to running the inspect
command on a container in the Docker CLI.
Note that Docker accepts an ID or (unambigious) name as input.
path Parameters
id | string The ID (or name) of the relevant docker object |
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Get logs
This is a proxy endpoint for the Docker API on the host system that returns logs from the container with the ID passed as a parameter in the URL.
This endpoint is equivalent to running the logs
command on a container in the Docker CLI.
Note that Docker accepts an ID or (unambigious) name as input.
path Parameters
id | string The ID (or name) of the relevant docker object |
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Get usage stats
This is a proxy endpoint for the Docker API on the host system that returns stats based on resource usage from the container with the ID passed as a parameter in the URL.
These stats come from a container'se inspect
command in the Docker CLI.
Note that Docker accepts an ID or (unambigious) name as input.
path Parameters
id | string The ID (or name) of the relevant docker object |
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Inspect image
This is a proxy endpoint for the Docker API on the host system that returns information on the image with the ID passed as a parameter in the URL.
This endpoint is equivalent to running the inspect
command on an image in the Docker CLI.
Note that Docker accepts an ID or (unambigious) name as input.
path Parameters
id | string The ID (or name) of the relevant docker object |
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Inspect network
This is a proxy endpoint for the Docker API on the host system that returns information on the network with the ID passed as a parameter in the URL.
This endpoint is equivalent to running the inspect
command on a network in the Docker CLI.
Note that Docker accepts an ID or (unambigious) name as input.
path Parameters
id | string The ID (or name) of the relevant docker object |
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Kill container
This changes, or attempts to change, the container state by issuing a kill
command.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Pause container
This changes, or attempts to change, the container state by issuing a pause
command.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Restart container
This changes, or attempts to change, the container state by issuing a restart
command.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Start container
This changes, or attempts to change, the container state by issuing a start
command.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Stop container
This changes, or attempts to change, the container state by issuing a stop
command.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Unpause container
This changes, or attempts to change, the container state by issuing a unpause
command.
Responses
Response samples
- 409
{- "status": 409,
- "title": "Not available in ephemeral mode",
- "detail": "This endpoint is not available when Morio is running in ephemeral mode. Since this system has not yet been set up, this endpoint is not yet available."
}
Build a .deb package
This will trigger the build of a .deb client package.
Note that this will start an ephemeral container to start the build. This API endpoint will not wait for the build to complete before retuning.
Request Body schema: application/jsonrequired
The configuration for building the .deb
client package
Package required | string |
Source required | string |
Section required | string Value: "utils" |
Priority required | string Value: "required,important,standard,optional,extra" |
Architecture required | string |
Essential required | string Value: "no" |
Depends required | Array of any |
Installed-Size required | number <float> |
Maintainer required | string |
Changed-By required | string |
Uploaders required | Array of any |
Homepage required | string |
Description required | string |
DetailedDescription required | string |
Vcs-Git required | string |
Version required | string |
Revision required | number <float> |
Responses
Request samples
- Payload
{- "Package": "morio-client",
- "Source": "morio-client",
- "Section": "utils",
- "Priority": "optional",
- "Architecture": "amd64",
- "Essential": "no",
- "Depends": [
- [
- "auditbeat",
- ">= 8.12"
], - [
- "filebeat",
- ">= 8.12"
], - [
- "metricbeat",
- ">= 8.12"
]
], - "Installed-Size": 5000,
- "Maintainer": "CERT-EU <services@cert.europa.eu>",
- "Changed-By": "Joost De Cock <joost.decock@cert.europa.eu>",
- "Uploaders": [
- "Joost De Cock <joost.decock@cert.europa.eu>"
], - "Description": "The Morio client collects and ships observability data to a Morio instance.",
- "DetailedDescription": "Deploy this Morio client (based on Elastic Beats) on your endpoints,\nand collect their data on one or more centralized Morio instances\nfor analysis, further processing, downstream routing & filtering,\nor event-driven automation.",
- "Vcs-Git": "https://github.com/certeu/morio -b main [clients/linux]",
- "Version": "0.2.0",
- "Revision": 1
}
Response samples
- 400
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}
Get .deb package defaults
This will return the default values to create a new .deb client package.
Note that configuration of a .deb
package needs to be correct or the package will not function.
You can adapt these defaults (that's why we provide them), but should consult the Debian documnentation on packaging.
Responses
Apply settings
This will take a full set of new Morio settings and, after validation, apply them.
Note that this endpoint requires you to post the full settings, so when making updates, make sure to leave nothing behind.
Request Body schema: application/jsonrequired
The new Morio settings
object | |
object | |
connector | object |
object | |
object | |
object | |
object or string | |
object |
Responses
Request samples
- Payload
{- "name": "Morio Standalone Example",
- "broker_nodes": [
- "morio-node1.tokyo.morio.it"
], - "flags": {
- "HEADLESS_MORIO": false,
- "DISABLE_ROOT_TOKEN": false
}, - "secrets": {
- "AD_PASSWORD": "aa;S009)) _S asd0AS"
}, - "providers": {
- "apikey": {
- "provider": "apikey",
- "id": "apikey",
- "label": "API Key"
}, - "mrt": { },
- "local": {
- "provider": "local",
- "id": "local",
- "label": "Morio Account"
}, - "ad": {
- "provider": "ldap",
- "id": "ad",
- "about": "Morio Tokyo branch on-prem Active Directory",
- "server": {
- "url": "ldaps://dc1.tokyo.morio.it",
- "bindDN": "CN=morio-ldap,OU=Users,DC=tokyo,DC=morio,DC=it",
- "bindCredentials": "{{{ AD_PASSWORD }}}",
- "searchBase": "OU=Users-EU,DC=tokyo,DC=morio,DC=it",
- "searchFilter": "(&(objectClass=user)(samaccountname={{username}}))"
}, - "username_field": "samaccountname",
- "label": "Active Directory",
- "rbac": {
- "user": {
- "attribute": "samaccountname",
- "regex": "."
}, - "root": {
- "attribute": "samaccountname",
- "regex": "^(?:joostdecock|sorchanidhubhghaill)$"
}
}, - "verify_certificate": true
}
}, - "visibility": {
- "mrt": "icon",
- "local": "icon",
- "apikey": "icon"
}, - "order": [
- "ad",
- "local",
- "apikey",
- "mrt"
]
}
Response samples
- 400
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}
Set up Morio
This will set up Morio with the provided initial settings.
This endpoint is only available in ephemeral Mode. In other words, once Morio is set up, this endpoint becomes unavailable.
Request Body schema: application/jsonrequired
The Morio settings to use for the intial setup
object | |
object | |
connector | object |
object | |
object | |
object | |
object or string | |
object |
Responses
Request samples
- Payload
{- "name": "Morio Standalone Example",
- "broker_nodes": [
- "morio-node1.tokyo.morio.it"
], - "flags": {
- "HEADLESS_MORIO": false,
- "DISABLE_ROOT_TOKEN": false
}, - "secrets": {
- "AD_PASSWORD": "aa;S009)) _S asd0AS"
}, - "providers": {
- "apikey": {
- "provider": "apikey",
- "id": "apikey",
- "label": "API Key"
}, - "mrt": { },
- "local": {
- "provider": "local",
- "id": "local",
- "label": "Morio Account"
}, - "ad": {
- "provider": "ldap",
- "id": "ad",
- "about": "Morio Tokyo branch on-prem Active Directory",
- "server": {
- "url": "ldaps://dc1.tokyo.morio.it",
- "bindDN": "CN=morio-ldap,OU=Users,DC=tokyo,DC=morio,DC=it",
- "bindCredentials": "{{{ AD_PASSWORD }}}",
- "searchBase": "OU=Users-EU,DC=tokyo,DC=morio,DC=it",
- "searchFilter": "(&(objectClass=user)(samaccountname={{username}}))"
}, - "username_field": "samaccountname",
- "label": "Active Directory",
- "rbac": {
- "user": {
- "attribute": "samaccountname",
- "regex": "."
}, - "root": {
- "attribute": "samaccountname",
- "regex": "^(?:joostdecock|sorchanidhubhghaill)$"
}
}, - "verify_certificate": true
}
}, - "visibility": {
- "mrt": "icon",
- "local": "icon",
- "apikey": "icon"
}, - "order": [
- "ad",
- "local",
- "apikey",
- "mrt"
]
}
Response samples
- 400
- 409
{- "status": 400,
- "title": "This request violates the data schema",
- "detail": "The request data failed validation against the Morio data schema. This means the request is invalid."
}