Onboard Service¶
The Onboard Service is a gRPC & Go based Edge Core activator. This service communicates with all other services and provides the necessary configurations for the Edge Device to successfully onboard.
Table of Contents¶
Onboard.proto¶
Agent¶
Agent section in IEM Onboarding JSON file.
Field | Type | Label | Description |
---|---|---|---|
name | string | ||
proxy | string | repeated | |
agentId | string | ||
security | Security |
Device¶
Security section in IEM Onboarding JSON file.
Field | Type | Label | Description |
---|---|---|---|
Network | siemens.iedge.dmapi.network.v1.NetworkSettings | ||
ntpServer | string | repeated | |
dockerIP | string | ||
customConfiguration | google.protobuf.Any | Device Builder specific custom configuraiton. |
DeviceConfiguration¶
Corresponding proto message for JSON file that had downloaded from IEM. Onboarding JSON file needs to be converted to this type first. Compatible with IEM Onboarding JSON schema, since all field names are same. For more information please refer to IEM Onboarding JSON scheme.
Field | Type | Label | Description |
---|---|---|---|
Device | Device | Device seciton in IEM Onboarding JSON file. | |
onboarding | Onboarding | Onboarding section in IEM Onboarding JSON file. | |
agents | Agent | repeated | Agent section in IEM Onboarding JSON file. |
proxies | ProxySettings | repeated | Proxy section in IEM Onboarding JSON file. |
Onboarding¶
Onboarding section in IEM Onboarding JSON file.
Field | Type | Label | Description |
---|---|---|---|
localUserName | string | ||
localPassword | string | ||
deviceName | string | ||
deviceId | string | ||
platformActualName | string | ||
softwarePlatformName | string | ||
potalUrl | string | ||
nodeId | string | ||
userId | string | ||
deviceType | string | ||
swPlatformId | string | ||
platformId | string | ||
isActivationConfirmed | bool | ||
deviceRole | string |
OnboardingStatus¶
Type indicates the Onboarding Status.
Field | Type | Label | Description |
---|---|---|---|
isOnboarded | bool | true if onboarding is successful,otherwise false. | |
message | string | Additonal information for onboarding status. |
ProxySettings¶
Field | Type | Label | Description |
---|---|---|---|
proxyId | string | ||
proxyType | string | ||
host | string | ||
protocol | string | ||
authenticationType | string | ||
user | string | ||
password | string | ||
noProxy | string | ||
customPorts | int32 | repeated |
Security¶
Security section in IEM Onboarding JSON file.
Field | Type | Label | Description |
---|---|---|---|
baseUrl | string | ||
clientCredentialProfile | string | repeated | |
ca_chain | string |
OnboardService¶
Onboard service ,uses a UNIX Domain Socket "/var/run/devicemodel/onboard.sock" for GRPC communication. protoc generates both client and server instance for this Service. GRPC Status codes : https://developers.google.com/maps-booking/reference/grpc-api/status_codes .
Method Name | Request Type | Response Type | Description |
---|---|---|---|
OnboardWithUSB | DeviceConfiguration | .google.protobuf.Empty | Starts onboarding sequence,applies all settings via ApplyConfiguration() and finally calls EdgeCoreRuntime REST API to onboard the device. |
ApplyConfiguration | DeviceConfiguration | .google.protobuf.Empty | Applies all settings. Does not call EdgeCoreRuntime REST API.Applicable for UI Onboarding. |
SetOnboardingStatus | OnboardingStatus | .google.protobuf.Empty | Sets state for device onboard status.In Onboarding from UI, EdgeCoreRuntime calls this method to set the onboarding status. |
ListenOnboardState | .google.protobuf.Empty | OnboardingStatus stream | Server stream for onboarding status changes. |