edge-controller
Create Or Update Edge (saveEdge)
Create or update the Edge. When creating edge, platform generates Edge Id as time-based UUID. The newly created edge id will be present in the response. Specify existing Edge id to update the edge. Referencing non-existing Edge Id will cause 'Not Found' error.
Edge name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the edge names and non-unique 'label' field for user-friendly visualization purposes.Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Edge entity.
Available for users with 'TENANT_ADMIN' authority.
post/api/edge
Request body
Example request
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "EDGE"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"customerId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "CUSTOMER"
},
"rootRuleChainId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_CHAIN"
},
"name": "Silo_A_Edge",
"type": "Silos",
"label": "Silo Edge on far field",
"additionalInfo": {}
}Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "EDGE"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"customerId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "CUSTOMER"
},
"rootRuleChainId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_CHAIN"
},
"name": "Silo_A_Edge",
"type": "Silos",
"label": "Silo Edge on far field",
"additionalInfo": {}
}