object service.create(object/array services)
This method allows to create new services.
This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array) services to create.
Additionally to the standard service properties, the method accepts the following parameters.
|children||array||Child services to be linked to the service.
The children must have the
|parents||array||Parent services to be linked to the service.
The parents must have the
|tags||array||Service tags to be created for the service.|
|problem_tags||array||Problem tags to be created for the service.|
|status_rules||array||Status rules to be created for the service.|
(object) Restituisce un oggetto contenente gli ID dei servizi creati sotto la proprietà
serviceids. L'ordine degli ID restituiti corrisponde a ordine dei servizi passati.
Create a service that will be switched to problem state, if at least one child has a problem.
CService::create() in ui/include/classes/api/services/CService.php.