Prerequisites
If you already subscribed to the Trimble IoT v2.1 API Product in Trimble Cloud Console, you have access to the Device Bootstrap v1 API.
Follow the below steps to complete the Device Bootstrap prerequisites before moving to Configuring Device Public Key in Bootstrap and Generating Operational Certificate
Group creation in PROFILES
Section titled “Group creation in PROFILES”The device bootstrap API is tied to the device bootstrap client or application. To manage certificates through the device bootstrap API, integrators assign a role to authorize the device bootstrap application. To assign a role, a relationship is established between the device bootstrap application and the device by using the Profiles APIs.
-
Create a group in Profiles.
-
Create a relation between the group and the device bootstrap application (1). { .annotate }
-
Application Id : Stage(1) Production(2) { .annotate }
- c52b8687-6b7e-4da0-bc9e-39b1e0cb7871
- f22b77c0-b925-4ad8-930c-6bf21dae723b
-
-
Create a device identity in Profiles (with or without certificates).
Relation to Bootstrap Application
Section titled “Relation to Bootstrap Application”A group allows better management of devices. For granting permission to the Device bootstrap API, create a group relation request in Profiles.
- For subscribing to the Profiles service, refer to the Profiles Quickstart.
- For details on the group relation request, refer to the Profiles API documentation.
UUID of the Bootstrap Application
Section titled “UUID of the Bootstrap Application”| Stage UUID | c52b8687-6b7e-4da0-bc9e-39b1e0cb7871 |
| Prod UUID | f22b77c0-b925-4ad8-930c-6bf21dae723b |
Create a Relation between Group and Bootstrap Application
Section titled “Create a Relation between Group and Bootstrap Application”curl --location 'https://cloud.stage.api.trimblecloud.com/tcloud-profiles-stage/1.0/profiles/applications/<Stage/ProdUUID>/relations' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <Access Token>' \--data '{"targetProfileTrn": "trn:profiles:groups:<group id>","relationName": "manages","attributes": { "role": "admin" } }'