Skip to main content

Config for ocl

Jobs that use the ocl adaptor may require authentication. A "credential" for the ocl adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"hostUrl": "https://api.openconceptlab.org/",
"username": "usernmame",
"password": "supersecretpassword"
}

Full Schema

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"hostUrl": {
"title": "Host URL",
"type": "string",
"description": "The OCL API URL",
"default": "https://api.openconceptlab.org/",
"format": "uri",
"minLength": 1,
"examples": [
"https://api.openconceptlab.org/"
]
},
"username": {
"title": "Username",
"type": "string",
"description": "The username to log in to OCL",
"minLength": 1,
"examples": [
"usernmame"
]
},
"password": {
"title": "Password",
"type": "string",
"description": "The password to log in to OCL",
"writeOnly": true,
"minLength": 1,
"examples": [
"supersecretpassword"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"hostUrl",
"username",
"password"
]
}