Skip to main content

Config for satusehat

Jobs that use the satusehat adaptor may require authentication. A "credential" for the satusehat 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.

{
"baseUrl": "https://www.satusehat.com",
"clientId": "the-long-uuid-provided-by-satusehat-for-your-organization",
"clientSecret": "the-long-secret-key-provided-by-satusehat"
}

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": {
"baseUrl": {
"title": "Base URL",
"type": "string",
"description": "Satusehat base URL",
"format": "uri",
"minLength": 1,
"examples": [
"https://www.satusehat.com"
]
},
"clientId": {
"title": "Client Id",
"type": "string",
"minLength": 1,
"description": "Your Satusehat client id",
"examples": [
"the-long-uuid-provided-by-satusehat-for-your-organization"
]
},
"clientSecret": {
"title": "Client Secret",
"type": "string",
"description": "Client Secret",
"minLength": 1,
"examples": [
"the-long-secret-key-provided-by-satusehat"
]
},
"access_token": {
"title": "Access Token",
"type": "string",
"description": "Your Satusehat access token",
"writeOnly": true,
"minLength": 1,
"examples": [
"the-long-access-token-from-your-auth"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"baseUrl",
"clientId",
"clientSecret"
]
}