Management
In order for a T1C-API to be downloadable from and be able to register with the Distribution Service, a few steps must be executed.
Management User Interface
In development
REST API
We offer a Postman collection of the DS REST API which you can use. Below we will provide more information on the endpoints and their parameters.
Obtain IDP Token
For the management endpoints a user JSON web token is necessary. it can be obtained from the IDP and must be included in all management requests to the DS REST API as a bearer token
Example
Request
Note that the request is x-www-form-urlencoded
Property
Type
Description
client_id
String
The ID of the client you created in the IDP realm
username
String
The username of the user you created in the IDP realm
password
String
The password of the user you created in the IDP realm
The response will contain an access_token
property value which can be used in management requests made to the DS REST API.
Sample response
Create Or Update Version
It is necessary to create a version in order to have a valid registration API key for the installer packages
Example
Request
Property
Type
Description
id
String
recommended
Boolean
If set to true, older versions will display an OS dialog with a download link to this recommended version when performing an update check. If false, no dialog will be shown to the T1C-API user.
mandatory
Boolean
If set to true, every older version of the T1C-API performing an update check will display a message with a download link and shut down. This means that previous versions of the T1C-API will no longer function.
allowed
Boolean
If set to false, when T1C-API of that version will shut down after performing an update check. This differs from the mandatory
property in that this offers a mechanism to force users of a specific version to the latest version, without impacting users of other versions.
uris.os
Enum
Accepted values are: WIN32
, WIN64
, MACOS
,MACOSARM
, UNIX
. This determines for which OS the installer package is meant.
uris.uri
String
The URI for this versions installer package for a specific OS. The URI can be of a file hosted online or of a file hosted on the server filesystem, e.g. https://domain/path/package
or file:///path/package
installationApiKey
UUID
This is the API key that is included in the installer package for the initial registration. If not provided, a random UUID will be generated and added to the Kong
gateway registration consumer. This value must match the value in your installer packages.
Create Or Update Context Config
The context config contains variable configuration for the installed T1C-API packages
Example
Wildcards in the CORS allowlist are only supported from the T1C API/Proxy v3.2.6 onwards.
Request
Property
Type
Description
config.cors
Array[String]
The CORS allowlist. The T1C-API will automatically and dynamically update its own CORS allowlist when synchronizing with the DS API. If wildcardsAllowed
is set to true, you can use an *
as a wildcard for schemes, subdomains, or ports.
config.wildcardsAllowed
Boolean
Whether or not wildcards are allowed in the CORS allowlist. If set to false, only an exact match on the origin header will be allowed.
type
Enum
Multiple types of configuration exist, for the context config this will always be CONTEXT_CONFIG
versionId
String
Configurations are always tied to a version. This must match the id
property of an existing version. This means that configurations need to be (re)created for every new version.
id
UUID
If the id
property is specified, the request will perform an update operation instead of a create
Create Or Update File Digests Config
The file digests config contains a list of files and their MD5 digests. At startup, the T1C-API will verify that these files are unaltered and shut down if that is not the case. We recommend leaving it empty during testing.
Example
Request
Property
Type
Description
config.files
Array[Object]
The CORS allowlist. The T1C-API will automatically and dynamically update its own CORS allowlist when synchronizing with the DS API.
config.files.path
String
The path of the file. OS agnostic, use /
as a path separator
config.files.digest
String
The MD5 digest of the file
type
Enum
Multiple types of configuration exist, for the file digests this will always be FILE_DIGESTS
versionId
String
Configurations are always tied to a version. This must match the id
property of an existing version. This means that configurations need to be (re)created for every new version.
id
UUID
If the id
property is specified, the request will perform an update operation instead of a create
Create or Update SSL Keystore Config
The SSL keystore config contains the URI for the latest SSL keystore used by the T1C-API for it's local server. The T1C-API will check if it has the latest and unaltered SSL keystore at startup and replace it if necessary.
Example
Request
Property
Type
Description
config.uri
String
The URI for the SSL keystore. The URI can be of a file hosted online or of a file hosted on the server filesystem, e.g. https://domain/path/package
or file:///path/package
config.password
String
The keystore password
type
Enum
Multiple types of configuration exist, for the SSL keystore this will always be SSL_KEYSTORE
versionId
String
Configurations are always tied to a version. This must match the id
property of an existing version. This means that configurations need to be (re)created for every new version.
id
UUID
If the id
property is specified, the request will perform an update operation instead of a create
Create Or Update Organization
An organization is an entity that groups labels together. It is required in order to create a label
Example
Request
Property
Type
Description
name
String
The display name of the organization. The name will be used to create the organization ID by setting it to lower case and removing any non-alphanumeric characters. While the display name can later be changed, the ID is immutable.
id
String
If the id
property is specified, the request will perform an update operation instead of a create
Create Or Update Label
A label is analogous to an application in the DS API v2. In v3 a label is associated with an API key which applications can exchange for a temporary JSON web token that can be passed to the client. A label can be used by multiple applications, or a label can be created for each application.
Example
Request
Property
Type
Description
name
String
The display name of the label. The name will be used to create the label ID by setting it to lower case and removing any non-alphanumeric characters. While the display name can later be changed, the ID is immutable.
orgId
String
The organization ID; must match the id
property of an existing organization.
apiKey
UUID
The API key for the label. If absent, a random UUID will be generated. The API key will automatically be registered on the Kong
gateway. This key can be exchanged for an application token.
id
String
If the id
property is specified, the request will perform an update operation instead of a create
Label IDs must be unique across all organizations as the T1C-API is not aware of any organizational context, only labels.
Update CORS Configuration
Starting from v3.5.x, the CORS is configured centrally regardless of version and is enabled by default. If no allowed origins are configured or the centrally configured CORS filter is disabled, the old flow is used and the versioned context config will be used to update the T1C installations.
Example
Request
Property
Type
Description
enabled
Boolean
Whether the centrally configured dynamic CORS policy is enabled. If disabled all origins are allowed, and the versioned context configuration will be synced to devices. If enabled, the devices will receive the central configuration.
wildcardsAllowed
Boolean
Whether or not wildcards can be used in the allowed origins. If enabled, it is the administrator's responsibility to not configure an overly permissible origin.
credentialsSupport
Boolean
Disable/enable support for credentials (by default credentials support is enabled)
preflightMaxAgeHours
Integer
Set how long (in seconds) the results of a preflight request can be cached in a preflight result cache (by default 1 hour)
serveForbiddenOrigins
Boolean
Enable/disable serving requests with origins not in whitelist as non-CORS requests (by default they are forbidden)
Create Allowed Origin
Add an origin to the allowed origins list. Wildcards can be used if enabled in the general configuration.
Example
Request
Property
Type
Description
origin
String
The origin to allow
Update Allowed Origin
Update an allowed origin.
Example
Request
Property
Type
Description
origin
String
The origin to allow
Update Multiple CORS Allowed Origins
Update multiple allowed origins. If you provide an unknown/self-generated ID with a non-existing origin, the DS will create it instead. This method can be used to create multiple allowed origins in 1 request.
Example
Request
Property
Type
Description
id
String (UUID)
The ID of the allowed origin
origin
String
The origin to allow
Delete CORS Allowed Origin
Delete an allowed origin.
Example
Create CORS Exposed Header
Create a custom HTTP header to be exposed in the response (by default no headers are exposed)
Example
Request
Property
Type
Description
headerName
String
The header to expose
Update CORS Exposed Header
Update a custom HTTP headers to be exposed in the response
Example
Request
Property
Type
Description
headerName
String
The header to expose
Update Multiple CORS Exposed Headers
Update multiple custom HTTP headers to be exposed in the response. If you provide an unknown/self-generated ID with a non-existing header name, the DS will create it instead. This method can be used to create multiple exposed headers. in 1 request.
Example
Request
Property
Type
Description
id
String (UUID)
The ID of the exposed header name
headerName
String
The header name to expose
Delete CORS Exposed Header
Delete a custom HTTP headers to be exposed in the response
Example
Last updated