Hybrid Services
Download OpenAPI specification:Download
REST API to manipulate site configuration of the hybrid system. List, drain, commission and decommission hosts.
/site/{domain}/{siteId}/host/{hostId}/drain
To drain a host on a specific site from ongoing calls.
Authorizations:
path Parameters
siteId required | string The site to which the host to drain belongs to. |
hostId required | string The hostname to drain. |
domain required | string The domain for which to drain a host. |
Request Body schema: application/jsonrequired
The body is needed when draining a host and the services running on the host should not be rescheduled on another host. Typically when doing a quick maintenance operation..
doNotReschedule | string Specify this with the string value true if a the system should not reschedule any services running on the host. Typically used when the host is to be drained before a quick maintenance operation afther whcih the host willbe rebooted and back into service. In this case it is no point in moving services to new hosts. |
Responses
Request samples
- Payload
{- "doNotReschedule": "string"
}
Response samples
- 200
{- "reason": "string",
- "success": true,
- "error": "string"
}
/site/{domain}
Get a list of hosts for all sites of a domain.
Authorizations:
path Parameters
domain required | string The domain for which to get the statement. |
Responses
Response samples
- 200
{- "reason": "string",
- "data": {
- "site": [
- {
- "hostName": "string",
- "vendorSpecificDistressString": "string",
- "hostLabels": [
- "sipserver"
], - "hostId": "string",
- "status": "ok"
}
]
}, - "success": true,
- "error": "string"
}
/site/{domain}/{siteId}/host/{hostId}
To commission a new host to a site.
Authorizations:
path Parameters
siteId required | string The siteId of the host to add. |
hostId required | string The hostId of the host to add. |
domain required | string The domain for which this site belongs where a host shall be added. |
Request Body schema: application/jsonrequired
The body is needed when adding a host that is not using DHCP. I.e. to specify IP-addresses to be used for the interface of the host.
networkInterfaces | Array of strings Array of IP addresses. This should be used together with networkPrefixLength. |
networkPrefixLength | integer The network prefix length in bits. This should only be used together with networkInterfaces. |
Responses
Request samples
- Payload
{- "networkInterfaces": [
- "string"
], - "networkPrefixLength": 0
}
Response samples
- 200
{- "reason": "string",
- "success": true,
- "error": "string"
}
/site/{domain}/{siteId}/host/{hostId}
To decommission a host from a site.
Authorizations:
path Parameters
siteId required | string The siteId of the host to delete. |
hostId required | string The hostId of the host to delete. |
domain required | string The domain for which to get the statement. |
Responses
Response samples
- 200
{- "reason": "string",
- "success": true,
- "error": "string"
}
/<domain_configured>
Request Body schema: application/json
Notifications sent by the Hybrid system probes to indicate unexpected events. The path, domain_configured, is configured using the provisioning API using the Notification Settings endpoint, parameter alarmEventsRestEndpoint.
type | string Value: "monitoringAlarm" The type of alarm event. Only type used is monitoringAlarm. | ||||||||||||||||||
domain | string The domain that triggered the alarm event | ||||||||||||||||||
error | string Enum: "noHeartbeatReply" "serviceStartFailed" "lowMemory" "serviceFailure" The type of error that triggered the alarm event:
| ||||||||||||||||||
object Object with error specific details | |||||||||||||||||||
|
Responses
Request samples
- Payload
{- "type": "monitoringAlarm",
- "domain": "customer.prod-eu-north-1.iotcomms.io",
- "error": "noHeartbeatReply",
- "errorDetails": {
- "message": "Missed OPTIONS pings",
- "value": "1",
- "threshold": "0.5",
- "condition": "Value above threshold",
- "status": "Set",
- "service": "ivrservice",
- "severity": "warn",
- "siteId": "string",
}
}