server object
a promise that resolves to a server object
Export a single server by id. The response can be saved to file as is.
Server id
Server export options
Promise resolving to a ServerExportInterface object.
Export a single server by url. The response can be saved to file as is.
Server url
Server export options
Promise resolving to a ServerExportInterface object.
Export all servers. The response can be saved to file as is. Every server is tried: a server that cannot be read does not stop the others.
Server export options
OptionalresultCallback: ResultCallback<ServerExportSkeleton>
Optional callback to process individual results. When given, the outcome of every server is passed to it as it happens: a server that was exported as the server, a server that cannot be exported as an error that names its url and id and carries the cause (also the default properties, when they were asked for and cannot be read, as an error that names them). Such a server is left out of the export and does not stop the others, and the function does not throw for it. Without it, the failures are collected and thrown as one error after every server was tried. Failing to list the servers always throws.
Promise resolving to a ServerExportInterface object.
Imports the first server from the importData
server import data
server import options
Imports servers along with their properties
server import data
server import options
OptionalserverId: string
Optional server id. If supplied, only the server (and its properties) of that id is imported. Takes priority over serverUrl if both are provided.
OptionalserverUrl: string
Optional server url. If supplied, only the server of that url is imported.
OptionalresultCallback: ResultCallback<ServerExportSkeleton>
Optional callback to process individual results. When given, the outcome of every server that is imported is passed to it once, as it happens: a server that was imported as the server with its properties, a server that cannot be imported as an error that names its url and id and carries the cause (also the default properties, when they were asked for and cannot be imported, as an error that names them). Such a server is not part of the result and does not stop the others, and the function does not throw for it. Without it, the failures are collected and thrown as one error after every server was tried.
a promise that resolves to a server export object
Read server by id
Server id
a promise that resolves to a server object
Read server by url
Server url
a promise that resolves to a server object
Read all servers.
a promise that resolves to an array of server objects
Creates a server