Register a service to the Spaceify service manager. Applications and spacelets can register only their own provided services.

Only native and develop mode applications can register their ports with the register ports object. These ports are outside Spaceify's control and visibility and therefore need to be passed explicitly to the service registration. If they are not, Spaceify's service discovery can not return services having valid port numbers.


Parameter Type Description
service_name string Name of a service.
ports string array An array of TCP/IP port numbers allocated by the application. Set to null if ports are not defined.

Result response

Type Desription
object The service object of the registered service.

Error response

copyright © 2014