-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimage_schema.json
222 lines (222 loc) · 5.12 KB
/
image_schema.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
{
"properties": {
"schema": {
"description": "(READ-ONLY)",
"type": "string"
},
"self": {
"description": "(READ-ONLY)",
"type": "string"
},
"direct_url": {
"description": "URL to access the image file kept in external store (READ-ONLY)",
"type": "string"
},
"architecture": {
"is_base": false,
"description": "Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html",
"type": "string"
},
"protected": {
"description": "If true, image will not be deletable.",
"type": "boolean"
},
"os_version": {
"is_base": false,
"description": "Operating system version as specified by the distributor",
"type": "string"
},
"disk_format": {
"description": "Format of the disk",
"type": [
"null",
"string"
],
"enum": [
null,
"ami",
"ari",
"aki",
"vhd",
"vmdk",
"raw",
"qcow2",
"vdi",
"iso"
]
},
"created_at": {
"description": "Date and time of image registration (READ-ONLY)",
"type": "string"
},
"checksum": {
"maxLength": 32,
"description": "md5 hash of image contents. (READ-ONLY)",
"type": [
"null",
"string"
]
},
"name": {
"maxLength": 255,
"description": "Descriptive name for the image",
"type": [
"null",
"string"
]
},
"os_distro": {
"is_base": false,
"description": "Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html",
"type": "string"
},
"visibility": {
"description": "Scope of image accessibility",
"type": "string",
"enum": [
"public",
"private"
]
},
"locations": {
"description": "A set of URLs to access the image file kept in external store",
"type": "array",
"items": {
"properties": {
"metadata": {
"type": "object"
},
"url": {
"maxLength": 255,
"type": "string"
}
},
"type": "object",
"required": [
"url",
"metadata"
]
}
},
"ramdisk_id": {
"is_base": false,
"description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.",
"type": [
"null",
"string"
],
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$"
},
"min_ram": {
"description": "Amount of ram (in MB) required to boot image.",
"type": "integer"
},
"container_format": {
"description": "Format of the container",
"type": [
"null",
"string"
],
"enum": [
null,
"ami",
"ari",
"aki",
"bare",
"ovf",
"ova"
]
},
"kernel_id": {
"is_base": false,
"description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.",
"type": [
"null",
"string"
],
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$"
},
"tags": {
"description": "List of strings related to the image",
"type": "array",
"items": {
"maxLength": 255,
"type": "string"
}
},
"status": {
"description": "Status of the image (READ-ONLY)",
"type": "string",
"enum": [
"queued",
"saving",
"active",
"killed",
"deleted",
"pending_delete"
]
},
"updated_at": {
"description": "Date and time of the last image modification (READ-ONLY)",
"type": "string"
},
"owner": {
"maxLength": 255,
"description": "Owner of the image",
"type": [
"null",
"string"
]
},
"file": {
"description": "(READ-ONLY)",
"type": "string"
},
"min_disk": {
"description": "Amount of disk space (in GB) required to boot image.",
"type": "integer"
},
"virtual_size": {
"description": "Virtual size of image in bytes (READ-ONLY)",
"type": [
"null",
"integer"
]
},
"id": {
"description": "An identifier for the image",
"type": "string",
"pattern": "^([0-9a-fA-F]){24}$"
},
"size": {
"description": "Size of image file in bytes (READ-ONLY)",
"type": [
"null",
"integer"
]
},
"instance_uuid": {
"is_base": false,
"description": "ID of instance used to create this image.",
"type": "string"
}
},
"links": [
{
"rel": "self",
"href": "{self}"
},
{
"rel": "enclosure",
"href": "{file}"
},
{
"rel": "describedby",
"href": "{schema}"
}
],
"name": "image",
"additionalProperties": {
"type": "string"
}
}