Solution Configuration Service

This service provides access to the active solution context information and usage.

Operations

Operations


solution

Get the solution information.

Responses
Represents a Murano solution data - object
Name Type Description
id ^[a-zA-Z0-9]+$ Unique reference of the solution
name string {..100} User defined custom name
domain ^[a-zA-Z0-9\_-.]+$ Solution API domain name used by the Webservice core service.
products [ ^[a-zA-Z0-9\_-.]+$ ] The list of products associated with this solution and used by the Device core service.
business_id ^[a-zA-Z0-9\_-]+$ Customer Account ID
Error response - object
Name Type Description
type string Error type
error string Error message
status integer Response code
Example
local solution = Config.solution()
print(solution.products)

usage

Get the solution usage and limitation by services.

Responses
Current solution usage. A map of serviceAlias (e.g., email or webservice). - object
Name Type Description
serviceAlias object Current usage & quota for this particular service.
serviceAlias.quota object Current quota for this service.
serviceAlias.daily_calls number Service call limitation per day.
serviceAlias.other_quota number Other Service specific limitation. See http://docs.exosite.com/murano/services for more information on service limitations.
serviceAlias.monthly_calls number Service call limitation per month.
serviceAlias.usage object Current usage for this service.
serviceAlias.daily_calls number Today's service calls counts.
serviceAlias.total_calls number Total service calls counts for this solution.
serviceAlias.other_metric number Other service specific metrics. See http://docs.exosite.com/murano/services for more information on service available metrics and quota.
serviceAlias.monthly_calls number Service calls counts so far this month.
serviceAlias.service ^[a-z][a-z0-9]+$ Unique name used as service reference in scripts.
Error response - object
Name Type Description
type string Error type
error string Error message
status integer Response code
Example
local usage = Config.usage()
local total_services_calls_today = 0
for alias, serviceinfo in pairs(usage) do

  if serviceinfo.usage.daily_calls ~= nil then

    total_services_calls_today = total_services_calls_today + serviceinfo.usage.daily_calls

  end

end
print(total_services_calls_today)