A newer release of this product is available.
Support EMS endpoint overview
Contributors
Suggest changes
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
Overview
This endpoint is used to configure general parameters of the Event Management System (EMS).
Examples
Configuring the system-wide email parameters
# The API:
PATCH /support/ems
# The call:
curl -X PATCH "https://<mgmt-ip>/api/support/ems" -H "accept: application/hal+json" -H "Content-Type: application/json" -d "@test_ems_config_patch.txt"
test_ems_config_patch.txt(body):
{
"mail_from": "administrator@mycompany.com",
"mail_server": "smtp@mycompany.com"
}
# The response:
200 OK
Retrieving the EMS configuration
The following example retrieves EMS configuration for the cluster.
# The API:
GET /support/ems
# The call:
curl -X GET "https://<mgmt-ip>/api/support/ems" -H "accept: application/hal+json"
# The response:
200 OK
{
"mail_from": "admin@localhost",
"mail_server": "localhost",
"pubsub_enabled": true,
"_links": {
"self": {
"href": "/api/support/ems"
}
}
}