blob: d8422352b132bf94f95c4c1b589b13f46a4f1232 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001/v2/images:
2 get:
3 body: '{"images": [{"status": "active", "schema": "/v2/schemas/image",
4 "virtual_size": null, "description": "", "tags": [], "container_format":
5 "bare", "created_at": "2018-04-21T06:12:13Z", "disk_format": "raw",
6 "updated_at": "2018-04-21T06:12:24Z", "visibility": "public", "id":
7 "660709df-e90b-471f-ac57-d8c2555e573d", "owner": "b8f5d85bbcd84af28d7caa62d39f05c7",
8 "protected": false, "min_ram": 0, "file": "/v2/images/660709df-e90b-471f-ac57-d8c2555e573d/file",
9 "checksum": "683f86920d4c922cb5c55d99d646b895", "min_disk": 0, "size":
10 1697597440, "self": "/v2/images/660709df-e90b-471f-ac57-d8c2555e573d", "store":
11 "file", "name": "tis4-centos-guest"}], "first": "/v2/images", "schema":
12 "/v2/schemas/images"}'
13 content_type: application/json
14 status_code: 200
15/v2/schemas/image:
16 get:
17 body: '{"additionalProperties": {"type": "string"}, "name": "image",
18 "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}",
19 "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}],
20 "properties": {"container_format": {"enum": [null, "ami", "ari", "aki",
21 "bare", "ovf", "ova", "docker"], "type": ["null", "string"], "description":
22 "Format of the container"}, "min_ram": {"type": "integer", "description":
23 "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"pattern":
24 "^([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}$",
25 "type": ["null", "string"], "description": "ID of image stored in Glance
26 that should be used as the ramdisk when booting an AMI-style image.", "is_base":
27 false}, "locations": {"items": {"required": ["url", "metadata"], "type":
28 "object", "properties": {"url": {"type": "string", "maxLength":
29 255}, "metadata": {"type": "object"}}}, "type": "array", "description":
30 "A set of URLs to access the image file kept in external store"}, "file":
31 {"readOnly": true, "type": "string", "description": "An image file
32 url"}, "owner": {"type": ["null", "string"], "description": "Owner
33 of the image", "maxLength": 255}, "id": {"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}$",
34 "type": "string", "description": "An identifier for the image"}, "size":
35 {"readOnly": true, "type": ["null", "integer"], "description": "Size
36 of image file in bytes"}, "os_distro": {"type": "string", "description":
37 "Common name of operating system distribution as specified in https://docs.openstack.org/python-glanceclient/latest/cli/property-keys.html",
38 "is_base": false}, "self": {"readOnly": true, "type": "string", "description":
39 "An image self url"}, "disk_format": {"enum": [null, "ami", "ari",
40 "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi", "iso",
41 "ploop"], "type": ["null", "string"], "description": "Format of the
42 disk"}, "os_version": {"type": "string", "description": "Operating
43 system version as specified by the distributor", "is_base": false}, "direct_url":
44 {"readOnly": true, "type": "string", "description": "URL to access
45 the image file kept in external store"}, "schema": {"readOnly": true, "type":
46 "string", "description": "An image schema url"}, "status": {"readOnly":
47 true, "enum": ["queued", "saving", "active", "killed", "deleted",
48 "pending_delete", "deactivated"], "type": "string", "description":
49 "Status of the image"}, "tags": {"items": {"type": "string", "maxLength":
50 255}, "type": "array", "description": "List of strings related to the
51 image"}, "kernel_id": {"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}$",
52 "type": ["null", "string"], "description": "ID of image stored in Glance
53 that should be used as the kernel when booting an AMI-style image.", "is_base":
54 false}, "visibility": {"enum": ["community", "public", "private",
55 "shared"], "type": "string", "description": "Scope of image accessibility"},
56 "updated_at": {"readOnly": true, "type": "string", "description":
57 "Date and time of the last image modification"}, "min_disk": {"type":
58 "integer", "description": "Amount of disk space (in GB) required to boot
59 image."}, "virtual_size": {"readOnly": true, "type": ["null", "integer"],
60 "description": "Virtual size of image in bytes"}, "instance_uuid": {"type":
61 "string", "description": "Metadata which can be used to record which instance
62 this image is associated with. (Informational only, does not create an instance
63 snapshot.)", "is_base": false}, "name": {"type": ["null", "string"],
64 "description": "Descriptive name for the image", "maxLength": 255}, "checksum":
65 {"readOnly": true, "type": ["null", "string"], "description": "md5
66 hash of image contents.", "maxLength": 32}, "created_at": {"readOnly":
67 true, "type": "string", "description": "Date and time of image registration"},
68 "protected": {"type": "boolean", "description": "If true, image will
69 not be deletable."}, "architecture": {"type": "string", "description":
70 "Operating system architecture as specified in https://docs.openstack.org/python-glanceclient/latest/cli/property-keys.html",
71 "is_base": false}}}'
72 content_type: application/json
73 status_code: 200