-
Notifications
You must be signed in to change notification settings - Fork 25
/
API.json
175 lines (174 loc) · 7.11 KB
/
API.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"$schema": "http://json-schema.org/draft-03/schema#",
"title": "Ginger Base API",
"description": "Json schema for Ginger Base API",
"type": "object",
"gingerbasetype": {
"cpu_info": {
"description": "Configure CPU specifics for a VM.",
"type": "object",
"properties": {
"topology": {
"description": "Configure the guest CPU topology.",
"type": "object",
"properties": {
"sockets": {
"type": "integer",
"required": true,
"minimum": 1,
"error": "GGBHOST0005E"
},
"cores": {
"type": "integer",
"required": true,
"minimum": 1,
"error": "GGBHOST0005E"
},
"threads": {
"type": "integer",
"required": true,
"minimum": 1,
"error": "GGBHOST0005E"
}
}
}
}
}
},
"properties": {
"debugreports_create": {
"type": "object",
"error": "GGBDR0006E",
"properties": {
"name": {
"description": "The name for the debug report file.",
"type": "string",
"pattern": "^[_A-Za-z0-9-]*$",
"error": "GGBDR0007E"
}
}
},
"debugreport_update": {
"type": "object",
"properties": {
"name": {
"description": "New name of debug report",
"type": "string",
"pattern": "^[_A-Za-z0-9-]+$",
"error": "GGBDR0013E"
}
},
"additionalProperties": false
},
"repositories_create": {
"type": "object",
"properties": {
"repo_id": {
"description": "Repository ID used for YUM repository.",
"type": "string",
"error": "GGBREPOS0001E"
},
"baseurl": {
"description": "URL to the directory where the repodata directory of a repository is located. Can be an http://, ftp:// or file:// URL.",
"type": "string",
"error": "GGBREPOS0002E"
},
"config": {
"description": "Dictionary containing repository configuration",
"type": "object",
"error": "GGBREPOS0003E",
"properties": {
"dist": {
"description": "Distribution to DEB repository",
"type": "string",
"error": "GGBREPOS0004E"
},
"comps": {
"description": "List of components to DEB repository",
"type": "array",
"error": "GGBREPOS0005E",
"uniqueItems": true,
"items": {
"description": "Component name",
"type": "string",
"error": "GGBREPOS0006E"
}
},
"repo_name": {
"description": "YUM repository name",
"type": "string",
"error": "GGBREPOS0023E"
},
"mirrorlist": {
"description": "URL to a file containing a list of baseurls",
"type": "string",
"error": "GGBREPOS0007E"
},
"metalink": {
"description": "URL to a metalink file for the repomd.xml",
"type": "string",
"error": "GGBREPOS0029E"
}
}
}
},
"additionalProperties": false,
"error": "GGBAPI0001E"
},
"repository_update": {
"type": "object",
"properties": {
"baseurl": {
"description": "URL to the directory where the repodata directory of a repository is located. Can be an http://, ftp:// or file:// URL.",
"type": "string",
"error": "GGBREPOS0002E"
},
"config": {
"description": "Dictionary containing repository configuration",
"type": "object",
"error": "GGBREPOS0003E",
"properties": {
"dist": {
"description": "Distribution to DEB repository",
"type": "string",
"error": "GGBREPOS0004E"
},
"comps": {
"description": "List of components to DEB repository",
"type": "array",
"error": "GGBREPOS0005E",
"uniqueItems": true,
"items": {
"description": "Component name",
"type": "string",
"error": "GGBREPOS0006E"
}
},
"repo_name": {
"description": "Human-readable string describing the YUM repository.",
"type": "string",
"error": "GGBREPOS0008E"
},
"mirrorlist": {
"description": "URL to a file containing a list of baseurls for YUM repository",
"type": "string",
"error": "GGBREPOS0007E"
},
"gpgcheck": {
"description": "Indicates if a GPG signature check on the packages gotten from repository should be performed.",
"type": "boolean",
"error": "GGBREPOS0009E"
},
"gpgkey": {
"description": "URL pointing to the ASCII-armored GPG key file for the repository.",
"type": "string",
"error": "GGBREPOS0010E"
}
}
}
},
"additionalProperties": false,
"error": "GGBAPI0001E"
}
}
}