Server(self, logger=None, loglevel=logging.INFO)
Class for using a local or remote RapidMiner Server instance directly. You can execute processes using the scalable Job Agent architecture.
Server(url=None,
authentication_server=None,
client_secret=None,
offline_token=None,
verifySSL=True,
logger=None,
loglevel=logging.INFO)
Initializes a new connector to a local or remote Rapidminer Server instance.
Arguments:
url
: Server url path (hostname and port as well)authentication_server
: Authentication Server url (together with the port).client_secret
: Client secret for OAuth authentication via a non-public keycloak clientoffline_token
: Offline token for authentication acquired via the /get-token endpointverifySSL
: Either a boolean to control whether the server's TLS certificate is verified, or a string as a path to a CA bundle. Default is True.logger
: A Logger object to use. By default, a simple logger with INFO level logging to stdout is used.loglevel
: the loglevel, as an int value. Common values are defined in the standard logging module. Only used, if logger is not defined.
Server.run_process(path, project=None, macros={}, queue='DEFAULT')
Runs a RapidMiner process.
Arguments:
path
: path to the RapidMiner process in the Project. It can be a string or a rapidminer.ProjectLocation object.project
: optional project name. If the path parameter is a rapidminer.ProjectLocation, then it is not needed to be defined.macros
: optional dict that sets the macros in the process context according to the key-value pairs, e.g. macros={"macro1": "value1", "macro2": "value2"}queue
: the name of the queue to submit the process to. Default is DEFAULT.
Server.get_queues()
Gets information of the available queues in the Server instance.
Returns:
- a JSON array of objects representing each queue with its properties
Server.get_projects()
Gets information of the available projects in the AI Hub instance.
Returns:
- a JSON array of objects representing each repository with its properties
Server.get_connections(project)
Read the connections from the AI Hub repository.
Returns:
- Connections object listing connections from the AI Hub repository. Note that values of encrypted fields are not available (values will be None). Use AI Hub Vault to securely store and retrieve these values instead