image create¶
任意パラメーター¶
パラメーター名 | データ形式 | デフォルト値 | パラメーター説明 |
---|---|---|---|
--container-format |
container-format | bare | Image container format (default: bare) |
--disk-format |
disk-format | raw | Image disk format (default: raw) |
--min-disk |
disk-gb | なし | Minimum disk size needed to boot image, in gigabytes |
--min-ram |
ram-mb | なし | Minimum RAM size needed to boot image, in megabytes |
--file |
file | なし | Upload image from local file |
--volume |
volume | なし | Create image from a volume |
--force |
なし | なし | Force image creation if volume is in use (only meaningful with –volume) |
--protected |
なし | なし | Prevent image from being deleted |
--unprotected |
なし | なし | Allow image to be deleted (default) |
--public |
なし | なし | Image is accessible to the public |
--private |
なし | なし | Image is inaccessible to the public (default) |
--property |
key=value | なし | Set a property on this image (repeat option to set multiple properties) |
--tag |
tag | なし | Set a tag on this image (repeat option to set multiple tags) |
--project |
project | なし | Set an alternate project on this image (name or ID) |
--project-domain |
project-domain | なし | Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. |
コマンド使用例¶
$ ecl image create --file image.raw test-image
+------------------+------------------------------------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------------------------------------+
| checksum | 6d0bb00954ceb7fbee436bb55a8397a9 |
| container_format | bare |
| created_at | 2016-08-03T00:29:56Z |
| disk_format | raw |
| file | /v2/images/56236018-d468-4e96-91b7-aaf9c484a7eb/file |
| id | 56236018-d468-4e96-91b7-aaf9c484a7eb |
| min_disk | 0 |
| min_ram | 0 |
| name | test-image |
| owner | ef5778e553a24d789c15c689e30adf5d |
| properties | .virtual_server.os.pod='other', locations='[{u'url': |
| | u's3://5d89e0283ae8f7f4e383:zzxp08nBv0RZ4MMHbV4eJTnm3JlObmiJvsZcpxhY@object- |
| | storage- |
| | jp1.ecl.ntt.com.local/jp1-kw1-glance00001/56236018-d468-4e96-91b7-aaf9c484a7eb', |
| | u'metadata': {}}]' |
| protected | False |
| schema | /v2/schemas/image |
| size | 100 |
| status | active |
| tags | |
| updated_at | 2016-08-03T00:29:56Z |
| visibility | private |
+------------------+------------------------------------------------------------------------------------+