Guest User

glance help command

a guest
Jul 6th, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. glance help image-create
  2. usage: glance image-create [--id <IMAGE_ID>] [--name <NAME>] [--store <STORE>]
  3. [--disk-format <DISK_FORMAT>]
  4. [--container-format <CONTAINER_FORMAT>]
  5. [--owner <TENANT_ID>] [--size <SIZE>]
  6. [--min-disk <DISK_GB>] [--min-ram <DISK_RAM>]
  7. [--location <IMAGE_URL>] [--file <FILE>]
  8. [--checksum <CHECKSUM>] [--copy-from <IMAGE_URL>]
  9. [--is-public {True,False}]
  10. [--is-protected {True,False}]
  11. [--property <key=value>] [--human-readable]
  12. [--progress]
  13.  
  14. Create a new image.
  15.  
  16. Optional arguments:
  17. --id <IMAGE_ID> ID of image to reserve.
  18. --name <NAME> Name of image.
  19. --store <STORE> Store to upload image to.
  20. --disk-format <DISK_FORMAT>
  21. Disk format of image. Acceptable formats: ami, ari,
  22. aki, vhd, vmdk, raw, qcow2, vdi, and iso.
  23. --container-format <CONTAINER_FORMAT>
  24. Container format of image. Acceptable formats: ami,
  25. ari, aki, bare, and ovf.
  26. --owner <TENANT_ID> Tenant who should own image.
  27. --size <SIZE> Size of image data (in bytes). Only used with '--
  28. location' and '--copy_from'.
  29. --min-disk <DISK_GB> Minimum size of disk needed to boot image (in
  30. gigabytes).
  31. --min-ram <DISK_RAM> Minimum amount of ram needed to boot image (in
  32. megabytes).
  33. --location <IMAGE_URL>
  34. URL where the data for this image already resides. For
  35. example, if the image data is stored in swift, you
  36. could specify 'swift+http://tenant%3Aaccount:key@auth_
  37. url/v2.0/container/obj'. (Note: '%3A' is ':' URL
  38. encoded.)
  39. --file <FILE> Local file that contains disk image to be uploaded
  40. during creation. Alternatively, images can be passed
  41. to the client via stdin.
  42. --checksum <CHECKSUM>
  43. Hash of image data used Glance can use for
  44. verification. Provide a md5 checksum here.
  45. --copy-from <IMAGE_URL>
  46. Similar to '--location' in usage, but this indicates
  47. that the Glance server should immediately copy the
  48. data and store it in its configured image store.
  49. --is-public {True,False}
  50. Make image accessible to the public.
  51. --is-protected {True,False}
  52. Prevent image from being deleted.
  53. --property <key=value>
  54. Arbitrary property to associate with image. May be
  55. used multiple times.
  56. --human-readable Print image size in a human-friendly format.
  57. --progress Show upload progress bar.
  58.  
  59.  
  60. openstack@opens-controller:~$ cd /home/openstack/Documents/
  61. openstack@opens-controller:~/Documents$ ls
  62. admin-openrc.sh demo-openrc.sh images
  63. openstack@opens-controller:~/Documents$ clear
  64. **************************************
  65. openstack@opens-controller:~/Documents$ source admin-openrc.sh
  66.  
  67.  
  68. ************************************************
  69.  
  70.  
  71. openstack@opens-controller:~/Documents$ cd images/
  72.  
  73.  
  74. openstack@opens-controller:~/Documents/images$ glance help image-create
  75. usage: glance image-create [--property <key=value>] [--file <FILE>]
  76. [--progress]
  77. <unavailable>
  78.  
  79. Create a new image.
  80.  
  81. Positional arguments:
  82. <unavailable> Please run with connection parameters set to retrieve
  83. the schema for generating help for this command
  84.  
  85. Optional arguments:
  86. --property <key=value>
  87. Arbitrary property to associate with image. May be
  88. used multiple times.
  89. --file <FILE> Local file to save downloaded image data to. If this
  90. is not specified the image data will be written to
  91. stdout.
  92. --progress Show upload progress bar.
Advertisement
Add Comment
Please, Sign In to add comment