aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/multicloud-ocata/generic_sim/glance/responses.yml
blob: d8422352b132bf94f95c4c1b589b13f46a4f1232 (plain)
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
/v2/images:
  get:
    body: '{"images": [{"status": "active", "schema": "/v2/schemas/image",
      "virtual_size": null, "description": "", "tags": [], "container_format":
      "bare", "created_at": "2018-04-21T06:12:13Z", "disk_format": "raw",
      "updated_at": "2018-04-21T06:12:24Z", "visibility": "public", "id":
      "660709df-e90b-471f-ac57-d8c2555e573d", "owner": "b8f5d85bbcd84af28d7caa62d39f05c7",
      "protected": false, "min_ram": 0, "file": "/v2/images/660709df-e90b-471f-ac57-d8c2555e573d/file",
      "checksum": "683f86920d4c922cb5c55d99d646b895", "min_disk": 0, "size":
      1697597440, "self": "/v2/images/660709df-e90b-471f-ac57-d8c2555e573d", "store":
      "file", "name": "tis4-centos-guest"}], "first": "/v2/images", "schema":
      "/v2/schemas/images"}'
    content_type: application/json
    status_code: 200
/v2/schemas/image:
  get:
    body: '{"additionalProperties": {"type": "string"}, "name": "image",
      "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}",
      "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}],
      "properties": {"container_format": {"enum": [null, "ami", "ari", "aki",
      "bare", "ovf", "ova", "docker"], "type": ["null", "string"], "description":
      "Format of the container"}, "min_ram": {"type": "integer", "description":
      "Amount of ram (in MB) required to boot image."}, "ramdisk_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}$",
      "type": ["null", "string"], "description": "ID of image stored in Glance
      that should be used as the ramdisk when booting an AMI-style image.", "is_base":
      false}, "locations": {"items": {"required": ["url", "metadata"], "type":
      "object", "properties": {"url": {"type": "string", "maxLength":
      255}, "metadata": {"type": "object"}}}, "type": "array", "description":
      "A set of URLs to access the image file kept in external store"}, "file":
      {"readOnly": true, "type": "string", "description": "An image file
      url"}, "owner": {"type": ["null", "string"], "description": "Owner
      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}$",
      "type": "string", "description": "An identifier for the image"}, "size":
      {"readOnly": true, "type": ["null", "integer"], "description": "Size
      of image file in bytes"}, "os_distro": {"type": "string", "description":
      "Common name of operating system distribution as specified in https://docs.openstack.org/python-glanceclient/latest/cli/property-keys.html",
      "is_base": false}, "self": {"readOnly": true, "type": "string", "description":
      "An image self url"}, "disk_format": {"enum": [null, "ami", "ari",
      "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi", "iso",
      "ploop"], "type": ["null", "string"], "description": "Format of the
      disk"}, "os_version": {"type": "string", "description": "Operating
      system version as specified by the distributor", "is_base": false}, "direct_url":
      {"readOnly": true, "type": "string", "description": "URL to access
      the image file kept in external store"}, "schema": {"readOnly": true, "type":
      "string", "description": "An image schema url"}, "status": {"readOnly":
      true, "enum": ["queued", "saving", "active", "killed", "deleted",
      "pending_delete", "deactivated"], "type": "string", "description":
      "Status of the image"}, "tags": {"items": {"type": "string", "maxLength":
      255}, "type": "array", "description": "List of strings related to the
      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}$",
      "type": ["null", "string"], "description": "ID of image stored in Glance
      that should be used as the kernel when booting an AMI-style image.", "is_base":
      false}, "visibility": {"enum": ["community", "public", "private",
      "shared"], "type": "string", "description": "Scope of image accessibility"},
      "updated_at": {"readOnly": true, "type": "string", "description":
      "Date and time of the last image modification"}, "min_disk": {"type":
      "integer", "description": "Amount of disk space (in GB) required to boot
      image."}, "virtual_size": {"readOnly": true, "type": ["null", "integer"],
      "description": "Virtual size of image in bytes"}, "instance_uuid": {"type":
      "string", "description": "Metadata which can be used to record which instance
      this image is associated with. (Informational only, does not create an instance
      snapshot.)", "is_base": false}, "name": {"type": ["null", "string"],
      "description": "Descriptive name for the image", "maxLength": 255}, "checksum":
      {"readOnly": true, "type": ["null", "string"], "description": "md5
      hash of image contents.", "maxLength": 32}, "created_at": {"readOnly":
      true, "type": "string", "description": "Date and time of image registration"},
      "protected": {"type": "boolean", "description": "If true, image will
      not be deletable."}, "architecture": {"type": "string", "description":
      "Operating system architecture as specified in https://docs.openstack.org/python-glanceclient/latest/cli/property-keys.html",
      "is_base": false}}}'
    content_type: application/json
    status_code: 200