The service to delete
OptionalglobalConfig: boolean
true if the global service is the target of the operation, false otherwise. Default: false.
Deletes all services
OptionalglobalConfig: boolean
true if the global service is the target of the operation, false otherwise. Default: false.
Promise resolving to an array of deleted services
Export service. The response can be saved to file as is.
service id/name
OptionalglobalConfig: boolean
true if the global service is the target of the operation, false otherwise. Default: false.
Promise resolving to a ServiceExportInterface object.
Export all services
OptionalglobalConfig: boolean
true if the global service is the target of the operation, false otherwise. Default: false.
OptionalresultCallback: ResultCallback<FullService>
Optional callback to process individual results. With a callback, a service that cannot be read is passed to it as an error that names the service and is left out of the export; without one the export fails.
Get all services including their descendents.
OptionalglobalConfig: boolean
true if the global service is the target of the operation, false otherwise. Default: false.
OptionalresultCallback: ResultCallback<FullService>
Optional callback to process individual results. With a callback, a service that cannot be read is passed to it as an error that names the service and does not fail the read: the services that could be read are returned.
Promise resolving to an array of services with their descendants
Get list of services
OptionalglobalConfig: boolean
true if the list of global services is requested, false otherwise. Default: false.
Imports a single service using a reference to the service and a file to read the data from. Optionally clean (remove) an existing service first
The service id/name to add
The service configuration export data to import
Import options
A promise resolving to a service object
Imports multiple services from the same file. Optionally clean (remove) existing services first
The service configuration export data to import
Import options
OptionalresultCallback: ResultCallback<AmServiceSkeleton>
Optional callback to process individual results. When given, the outcome of every service is passed to it as it happens (a failed service as an error that names it) and a failed service does not throw: the services that could be imported are returned. A service of the file that does not belong to the target (another realm, or global when importing into the realm) is not imported and not reported. Without it, the failures are collected and thrown as one error after every service was tried.
A promise resolving to an array of service objects
Deletes the specified service