Example:
$ curl -sSLO \
https://cloud-images.ubuntu.com/xenial/20170705/xenial-server-cloudimg-amd64-disk1.img
$ glance \
--os-image-api-version 2 \
image-create \
--name 'xenial-server-cloudimg-amd64-20170705' \
--disk-format qcow2 \
--container-format bare \
--file xenial-server-cloudimg-amd64-disk1.img
+------------------+---------------------------------------+
| Property | Value |
+------------------+---------------------------------------+
| checksum | fe1c3a4ee770ea90685216e8162025a4 |
| container_format | bare |
| created_at | 2017-07-06T16:30:10Z |
| disk_format | qcow2 |
| id | 5fc97b5c-8d61-41ec-951b-53ffb10e999a |
| min_disk | 0 |
| min_ram | 0 |
| name | xenial-server-cloudimg-amd64-20170705 |
| owner | a3a5b790cfa24e328c31e87a25874194 |
| protected | False |
| size | 287571968 |
| status | active |
| tags | [] |
| updated_at | 2017-07-06T16:30:12Z |
| virtual_size | None |
| visibility | shared |
+------------------+---------------------------------------+