-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathio.edgehog.devicemanager.fileTransfer.DeviceToServer.json
More file actions
70 lines (70 loc) · 2.43 KB
/
io.edgehog.devicemanager.fileTransfer.DeviceToServer.json
File metadata and controls
70 lines (70 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"interface_name": "io.edgehog.devicemanager.fileTransfer.DeviceToServer",
"version_major": 0,
"version_minor": 1,
"type": "datastream",
"ownership": "server",
"aggregation": "object",
"description": "File transfer from a Device to a Server",
"doc": "Request a file transfer operation. Providing an URL where the device will upload a file with an HTTP PUT request, the source of the file to upload is implementation specific.",
"mappings": [
{
"endpoint": "/request/id",
"type": "string",
"reliability": "guaranteed",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 3600,
"description": "Transfer ID for the file"
},
{
"endpoint": "/request/url",
"type": "string",
"reliability": "guaranteed",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 3600,
"description": "The URL to upload the file to"
},
{
"endpoint": "/request/httpHeaderKey",
"type": "string",
"reliability": "guaranteed",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 3600,
"description": "Keys for the HTTP headers, must be in the order of the values"
},
{
"endpoint": "/request/httpHeaderValue",
"type": "string",
"reliability": "guaranteed",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 3600,
"description": "Values for the HTTP headers, must be in the order of the keys"
},
{
"endpoint": "/request/compression",
"type": "string",
"reliability": "guaranteed",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 3600,
"description": "Compression to upload multiple files",
"doc": "Optional enum string for the file compression with default value empty, other values are: ['tar.gz']"
},
{
"endpoint": "/request/progress",
"type": "boolean",
"reliability": "guaranteed",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 3600,
"description": "Flag to enable the progress reporting of the download."
},
{
"endpoint": "/request/source",
"type": "string",
"reliability": "guaranteed",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 3600,
"description": "Source for the file",
"doc": "Device-specific field, some default values are storage and streaming."
}
]
}