Page History
WhereScape RED provides a command line interface called WslMetadataService.exe that allows users to access the metadata servicestartup a REST based WhereScape Metadata Service. This is the is the underlying REST service which feeds the WhereScape RED Template Engine whenever a template operation is performed. The tool is available in the RED Windows installation directory, this tool can also be called from Windows scripting languages or from a script added to RED UI..
Endpoints
The REST service has the following endpoints:
- jobsById
- jobsByName
- jobsExportByName
- changedJobs
- tasksById
- objectIds
- objectsById
- objectsByName
- objectsExportByName
- sourcemappingsById
- viewaliasesById
- targetsById
- metadataConnection
- types
- options
- usersById
Command Arguments
Options for connecting to the metadata server:
Command | Description |
|---|---|
| Metadata connection options | |
| --meta-dsn | Set metadata DSN |
| --meta-dsn-arch | The architecture of the ODBC DSN. Valid values are 32 and 64. Defaults to 32 if not specified. |
| --meta-con-string | Sset metadata Connection String (if specified, username, password, dsn can be optional) |
| --red-profile | Set Red Profile path |
| --meta-user | Set metadata login username (use OS authentication if omitted) |
| --meta-password) | Set metadata login password (use OS authentication if omitted |
| --meta-schema | Set metadata schema (including trailing dot) |
| --meta-database | Set metadata database |
| --meta-db-type | Set metadata database type, accepted values can be:
|
| --ws-user | Set metadata user name |
| HTTP options | |
| --insecure | Allow connections without authorization |
| --listen-port | Port number to listen on (defaults to first unused from 8080) |
| General options | |
| --help | Produce help message and exit |
| --version | Report version information and exit |
| --log-level | Set log level (0 is very quiet, 9 is very noisy) |
Example script to invoke and query the service
The following example shows a script that allows you to connect to the metadata server and get json data
...