Skip to main content

Edge Resources YAML Specification

potctl allows users to manage a Controller's list of Edge Resources. To learn more about Edge Resources, please see here.

The Edge Resource is defined as follows:

apiVersion: datasance.com/v3
kind: EdgeResource
metadata:
name: smart-door
namespace: default
spec:
name: smart-door
version: v1.0.0
description: Very smart door
interfaceProtocol: https
interface:
endpoints:
- name: open
method: PUT
url: /open
- name: close
method: PUT
url: /close
- name: destroy
method: DELETE
url: /endOfTheWorld
display:
name: Smart Door
icon: accessible-forward
custom: {}
FieldDescription
nameUser defined name
versionUser defined version
descriptionHuman readable description of the Edge Resource
interfaceProtocolProtocol the microservices must use to communicate with the resource. It also determines the schema of the interface key. Currently, one of: http, https, ws, wss
interfaceSpecification of the available communication interface
displayInformation about how to display the attached Edge Resource in the ECN-Viewer
display.nameDisplay label
display.iconName of the material icon to be used on the map (optional)
customFree object containing anything else the microservice might need to know about the resource.

HTTP, HTTPS, WS and WSS Interface specification

FieldDescription
endpointsArray of endpoint definition
endpoints.namename of the endpoint
endpoints.descriptiondescription of the endpoint
endpoints.methodOne of 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'
endpoints.urlURL of the endpoint
endpoints.requestTypemime-type of the request
endpoints.responseTypemime-type of the response
endpoints.requestPayloadExamplestringified request payload example
endpoints.responsePayloadExamplestringified response payload example