External Server Connection Configuration Provisioning APIs
|
This API usage is available only for Thales Ops to manage platform configurations. |
|
The API "/eim/v1/injection-configurations" is now deprecated since release-3.8.0. Earlier This API was intended to provision Injection Servers. |
The TAC server may need to connect to external servers, such as an MQTT broker or an LwM2M server, when using Injection Mode for eIM package transfer. OTA Servers are needed as a ShoulderTap server to generate and send SMS triggers when the device is not immediately available.
ShoulderTap enables TAC to trigger communication with an eUICC device through an external OTA platform when direct communication with the device is not immediately available. The configured OTA platform generates and sends SMS triggers, allowing the IPA to initiate communication and execute pending operations.
These APIs facilitate the provisioning, retrieval, and management of external server connection configurations within the TAC system.
|
These external servers can be either an Injection Server or a ShoulderTap Server. Injection Server can be either an MQTT broker or an LwM2M server. ShoulderTap Server can be an OTA (SMS) server. |
1. Create Connection Configuration
This POST API is used to provision a new connection configuration for the current tenant.
1.1. HTTP Request
POST /eim/v1/provisioning/connections
1.1.2. Header Parameters
The request header content-type must be set to JSON.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
Must be |
1.1.3. Request Body
The request body describes the connection configuration details that you want to provision.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
Protocol |
M |
Communication protocol used for connection. Refer to SupportedProtocol |
|
String |
M |
Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$. |
|
String |
C |
Name of the protocol provider. It is mandatory for LWM2M server. |
|
Boolean |
O |
Indicates whether this configuration is the default connection configuration for the tenant. |
|
Boolean |
C |
Indicates whether shoulder-tap functionality is enabled for this configuration. Either |
|
Boolean |
C |
Indicates whether the connection configuration is used for injection mode. Either |
|
Json |
0 |
RFU. |
|
Json |
C |
Configuration Details specific to protocol. Host and Port are mandatory for MQTT. Refer to ConfigurationDetail |
Example Request Body for MQTT Broker:
{
"protocol": "MQTT",
"label": "secure-thales-ota-conn-4",
"is_default": false,
"is_shoulder_tap": false,
"is_injection": true,
"additional_info": {
"protocolVersion": "5.0",
"clientId": "client-123"
},
"configuration": {
"host": "mqtt.eim.thales.com",
"port": 8883,
"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"connect_timeout": 60,
"clean_session": true,
"keep_alive": 30,
"user_name": "abc",
"password": "changeit",
"qos": 2,
"topics": {
"esipa": {
"incoming_topic": "ipa-to-eim",
"outgoing_topic": "eim-to-ipa"
},
"shoulder_tap": {
"incoming_topic": "ipa-to-eim-trig",
"outgoing_topic": "eim-to-ipa-trig"
}
}
}
}
Example Request Body for OTA(SMS) Server:
{
"protocol": "SMS",
"label": "thales-ota",
"is_default": false,
"is_shoulder_tap": true,
"is_injection": false
}
Example Request Body for LWM2M Server:
{
"protocol": "LWM2M",
"label": "test1.lwm2m.abc.io",
"is_default": false,
"is_shoulder_tap": false,
"is_injection": true,
"provider_name": "test1.lwm2m.abc.io"
}
1.2. HTTP Response
1.2.2. Response Body
The response body provides the details of the provisioned connection configuration.
| Parameter Name | Data Type | Description |
|---|---|---|
|
Protocol |
Communication protocol used for connection. Refer to SupportedProtocol |
|
String |
Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$. |
|
String |
Name of the protocol provider. It is mandatory for LWM2M server. |
|
Boolean |
Indicates whether this configuration is the default connection configuration for the tenant. |
|
Boolean |
Indicates whether shoulder-tap functionality is enabled for this configuration. Either |
|
Boolean |
Indicates whether the connection configuration is used for injection mode. Either |
|
Json |
RFU. |
|
Json |
Configuration Details specific to protocol. Host and Port are mandatory for MQTT. Refer to ConfigurationDetail |
{
"message": "Connection Configuration Created Successfully!",
"tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"response_object": {
"protocol": "MQTT",
"additional_info": {
"protocolVersion": "5.0",
"clientId": "client-123"
},
"is_default": false,
"is_shoulder_tap": false,
"is_injection": true,
"configuration": {
"host": "mqtt.eim.thales.com",
"port": 8883,
"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"connect_timeout": 60,
"clean_session": true,
"keep_alive": 30,
"user_name": "abc",
"password": "changeit",
"qos": 2,
"topics": {
"esipa": {
"incoming_topic": "ipa-to-eim",
"outgoing_topic": "eim-to-ipa"
},
"shoulder_tap": {
"incoming_topic": "ipa-to-eim-trig",
"outgoing_topic": "eim-to-ipa-trig"
}
}
},
"label": "secure-thales-ota-conn-4"
}
}
1.2.3. Error Response
| Code | Description |
|---|---|
|
Bad Request : Invalid connection configuration parameters. |
|
Conflict. Connection Configuration Already Exists. |
|
Internal server error. |
{
"code": xxxx,
"message": xxxx,
"details": xxxx
}
2. Get Server Configuration
This GET API is used to retrieve the details of a specific Connection server configuration using its label.
2.1. HTTP Request
GET /eim/v1/provisioning/connections/label/{label}
2.1.2. Path Parameters
The URI path must include the unique label of the connection configuration.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
Unique label of the connection configuration. |
2.2. HTTP Response
2.2.2. Response Body
| Parameter Name | Data Type | Description |
|---|---|---|
|
Protocol |
Communication protocol used for connection. Refer to SupportedProtocol |
|
String |
Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$. |
|
String |
Name of the protocol provider. It is mandatory for LWM2M server. |
|
Boolean |
Indicates whether this configuration is the default connection configuration for the tenant. |
|
Boolean |
Indicates whether shoulder-tap functionality is enabled for this configuration. Either |
|
Boolean |
Indicates whether the connection configuration is used for injection mode. Either |
|
Json |
RFU. |
|
Json |
Configuration Details specific to protocol. Host and Port are mandatory for MQTT. Refer to ConfigurationDetail |
{
"message": "Connection Configuration Found!",
"tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"response_object": {
"protocol": "MQTT",
"provider_name": "secure-thales-ota",
"additional_info": {
"connectionType": "MQTT",
"protocolVersion": "5.0",
"clientId": "client-123"
},
"is_default": false,
"is_shoulder_tap": true,
"is_injection": false,
"configuration": {
"host": "mqtt.eim.thales.com",
"port": 8883,
"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"connect_timeout": 60,
"clean_session": true,
"keep_alive": 30,
"user_name": "abc",
"password": "changeit",
"qos": 2,
"topics": {
"esipa": {
"incoming_topic": "ipa-to-eim",
"outgoing_topic": "eim-to-ipa"
},
"shoulder_tap": {
"incoming_topic": "ipa-to-eim-trig",
"outgoing_topic": "eim-to-ipa-trig"
}
}
},
"label": "secure-thales-ota-conn-4"
}
}
3. Get All Server Configurations
This GET API is used to retrieve all connection configurations for the current tenant. Optionally, the response can be filtered by communication protocol.
3.1. HTTP Request
GET /eim/v1/provisioning/connections
3.2. HTTP Response
3.2.2. Response Body
Returns a list of connection configurations.
{
"message": "Connection Configuration Found!",
"tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"response_object": [
{
"protocol": "MQTT",
"additional_info": {
"protocolVersion": "5.0",
"clientId": "client-123"
},
"is_default": false,
"is_shoulder_tap": false,
"is_injection": true,
"configuration": {
"host": "mqtt.eim.thales.com",
"port": 8883,
"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"connect_timeout": 60,
"clean_session": true,
"keep_alive": 30,
"user_name": "abc",
"password": "changeit",
"qos": 2,
"topics": {
"esipa": {
"incoming_topic": "ipa-to-eim",
"outgoing_topic": "eim-to-ipa"
},
"shoulder_tap": {
"incoming_topic": "ipa-to-eim-trig",
"outgoing_topic": "eim-to-ipa-trig"
}
}
},
"label": "secure-thales-ota-conn-3"
},
{
"protocol": "LWM2M",
"provider_name": "test1.lwm2m.abc.io",
"is_default": false,
"is_shoulder_tap": false,
"is_injection": true,
"label": "test1.lwm2m.abc.io"
},
{
"protocol": "SMS",
"is_default": false,
"is_shoulder_tap": true,
"is_injection": false,
"label": "thales-ota"
}
]
}
4. Patch Server Configuration
This PATCH API is used to partially update an existing connection configuration. Only the fields present in the request body are updated.
4.1. HTTP Request
PATCH /eim/v1/provisioning/connections/label/{label}
4.1.1. Path Parameters
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
M |
Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$. |
4.1.2. Request Body
The request body contains only the fields to be updated.
{
"protocol": "MQTT",
"provider_name": "secure-thales-ota",
"is_shoulder_tap": false,
"is_injection": true,
"additional_info": {
"protocolVersion": "5.0",
"clientId": "client-123"
},
"configuration": {
"host": "mqtt.eim.thales.com",
"port": 8883,
"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"connect_timeout": 60,
"clean_session": true,
"keep_alive": 30,
"user_name": "abc",
"password": "changeit",
"qos": 2,
"topics": {
"esipa": {
"incoming_topic": "ipa-to-eim",
"outgoing_topic": "eim-to-ipa"
},
"shoulder_tap": {
"incoming_topic": "ipa-to-eim-trig",
"outgoing_topic": "eim-to-ipa-trig"
}
}
}
}
4.2. HTTP Response
4.2.2. Response Body
Returns the updated connection configuration.
{
"message": "Connection Configuration Updated Successfully!",
"tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
"response_object": {
"protocol": "MQTT",
"provider_name": "secure-thales-ota",
"additional_info": {
"connectionType": "MQTT",
"protocolVersion": "5.0",
"clientId": "client-123"
},
"is_default": false,
"is_shoulder_tap": false,
"is_injection": true,
"configuration": {
"host": "mqtt.eim.thales.com",
"port": 8883,
"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"connect_timeout": 60,
"clean_session": true,
"keep_alive": 30,
"user_name": "abc",
"password": "changeit",
"qos": 2,
"topics": {
"esipa": {
"incoming_topic": "ipa-to-eim",
"outgoing_topic": "eim-to-ipa"
},
"shoulder_tap": {
"incoming_topic": "ipa-to-eim-trig",
"outgoing_topic": "eim-to-ipa-trig"
}
}
},
"label": "secure-thales-ota-conn-4"
}
}
5. Delete Server Configuration
This DELETE API is used to remove an existing connection configuration identified by its label.
5.1. HTTP Request
DELETE /eim/v1/provisioning/connections/label/{label}
6. SupportedProtocol
Specifies the communication protocol used by the connection configuration.
| Value | Description |
|---|---|
|
Uses an SMS-based OTA platform to perform ShoulderTap operations. |
|
Uses an MQTT broker to perform Injection operations. |
|
Uses an LWM2M server to perform Injection operations. |
7. ConfigurationDetail
The request body describes the connection configuration details that you want to provision.
| Parameter Name | Data Type | Presence | Description |
|---|---|---|---|
|
String |
C |
Host of the connection server. Mandatory for MQTT protocol. |
|
Integer |
C |
Port of the connection server. Mandatory for MQTT protocol. |
|
String |
O |
CA Certificate to make connection with the server. RFU. |
|
String |
O |
Client Certificate to make connection with the server. RFU. |
|
String |
O |
Private Key needed for TLS/SSL. RFU. |
|
String |
O |
Certificate in pfx format to make connection with the server. RFU. |
|
Integer |
0 |
The maximum time (in seconds) a client waits for a network connection to be established with the broker before giving up. RFU. |
|
Boolean |
O |
A connection setting that tells the broker whether to save or discard client data when the connection drops. RFU. |
|
Integer |
0 |
A time interval (in seconds) set during the connection handshake that ensures the client and broker know the network connection is still open and healthy. RFU. |
|
String |
0 |
Username if needed to make connection with the server. RFU. |
|
String |
0 |
Password if needed to make connection with the server. RFU. |
|
Integer |
0 |
Quality of Service (QoS) in MQTT is an agreement between a sender and a receiver that defines the reliability guarantee for message delivery. RFU. |
|
Json |
0 |
Incoming and Outgoing topics for MQTT protocol. RFU |
{
"host": "mqtt.eim.thales.com",
"port": 8883,
"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
"connect_timeout": 60,
"clean_session": true,
"keep_alive": 30,
"user_name": "abc",
"password": "changeit",
"qos": 2,
"topics": {
"esipa": {
"incoming_topic": "ipa-to-eim",
"outgoing_topic": "eim-to-ipa"
},
"shoulder_tap": {
"incoming_topic": "ipa-to-eim-trig",
"outgoing_topic": "eim-to-ipa-trig"
}
}
}
|
Tenant deployment configurations should have same label that would be provisioned through External Server Configuration Provisioning API. |
For Example, following configurations have below labels with respective protocols:
LWM2M: test1.lwm2m.xyz.io, test1.lwm2m.abc.io
MQTT: test1.mqtt.io
SMS: test1.sms.io
Example Tenant Configurations:
global:
externalDependencies:
connectors:
lwm2m:
avsystem:
# Planned for test suite
"test1.lwm2m.xyz.io":
name: lwm2m-server-mock
enabled: false
mutualAuth: false
protocol: https
hosts:
- ${localhost}
port: 8200
domain: /change.me/
motive:
# Planned for test suite
"test1.lwm2m.abc.io":
name: lwm2m-server-mock
enabled: false
mutualAuth: false
protocol: https
hosts:
- ${localhost}
port: 8210
domain: /change.me/
mqtt:
standard:
"test1.mqtt.io":
enabled: false
name: mqtt1
mutualAuth: false
protocol: mqtts
hosts:
- ${localhost}
port: 8250
sms:
cota:
"test1.sms.io":
name: cota-mock
enabled: false
mutualAuth: false
protocol: https
hosts:
- ${localhost}
port: 8220
