-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathio.edgehog.devicemanager.apps.CreateContainerRequest.json
118 lines (118 loc) · 4.45 KB
/
io.edgehog.devicemanager.apps.CreateContainerRequest.json
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"interface_name": "io.edgehog.devicemanager.apps.CreateContainerRequest",
"version_major": 0,
"version_minor": 1,
"type": "datastream",
"ownership": "server",
"aggregation": "object",
"mappings": [
{
"endpoint": "/container/id",
"type": "string",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Create Container Request id",
"doc": "Unique id for the container."
},
{
"endpoint": "/container/imageId",
"type": "string",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container image id",
"doc": "The id of the image to use when creating the container."
},
{
"endpoint": "/container/networkIds",
"type": "stringarray",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container network ids",
"doc": "The ids of the network to connect with the container."
},
{
"endpoint": "/container/volumeIds",
"type": "stringarray",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container volume ids",
"doc": "The ids of the volumes to mount on the container."
},
{
"endpoint": "/container/image",
"type": "string",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container image",
"doc": "TODO: this will be remove (by only sending the image_id), when it will be supported on the device."
},
{
"endpoint": "/container/hostname",
"type": "string",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container hostname",
"doc": "The hostname to use for the container, as a valid RFC 1123 hostname."
},
{
"endpoint": "/container/restartPolicy",
"type": "string",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container restart policy",
"doc": "The behavior to apply when the container exits. Possible values are: ['', 'no', 'always' 'unless-stopped', 'on-failure']"
},
{
"endpoint": "/container/env",
"type": "stringarray",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container environment",
"doc": "Array of KEY=value environment variables"
},
{
"endpoint": "/container/binds",
"type": "stringarray",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container binds",
"doc": "A list of volume bindings for this container. Each volume binding is a string in one of these forms: host-src:container-dest[:options], or volume-name:container-dest[:options]. The container-dest must be an absolute path."
},
{
"endpoint": "/container/networkMode",
"type": "string",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Network mode used for this container.",
"doc": "Supported standard values are: bridge, host, none, and container:<name|id>. Any other value is taken as a custom network's name to which this container should connect to. If you are using a different container engine than docker, there could be other values."
},
{
"endpoint": "/container/portBindings",
"type": "stringarray",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Container port bindings",
"doc": "Array of ip:[host_port:]container_port[/protocol] | [hostPort:]containerPort[/protocol]. Protocol is TCP by default"
},
{
"endpoint": "/container/privileged",
"type": "boolean",
"database_retention_policy": "use_ttl",
"database_retention_ttl": 31556952,
"reliability": "guaranteed",
"description": "Run privileged",
"doc": "Runs the exec process with extended privileges."
}
]
}