Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The username and password for the relevant user are configured as described in REST Security.

Configuration File

For simplification of interactions with many OpenCDS instances (or even one), the code accepts a --config option as follows (using UPLOAD–see option below):

sh ./bin/upload.sh --config <groovy configuration file> <options>

.\bin\upload.bat --config <groovy configuration file> <options>

Example contents of this file is as follows:

 

Code Block
languagegroovy
cli {
    url = "http://my-opencds.org:8080/opencds-decision-support-service/config/v1" // or
    urls = [
        'http://one.my-opencds.org:8080/opencds-decision-support-service/config/v1',
        'http://two.my-opencds.org:8080/opencds-decision-support-service/config/v1',
        'http://three.my-opencds.org:8080/opencds-decision-support-service/config/v1'
        ]
    username = "my-admin-username"
    password = "my-admin-password"
}

Either url and urls may be used to specify the URL of each instance of OpenCDS.

If none of these exist in this configuration file, the code will require the options to be specified on the command-line.

Anchor
GET
GET
Get

sh ./bin/get.sh --url <url> --username <user> --password <pass> --outfile <file>

...