compute server update¶
任意パラメーター¶
パラメーター名 | データ形式 | デフォルト値 | パラメーター説明 |
---|---|---|---|
--name |
String | なし | 更新する名前 |
--property |
<key=value> | なし | サーバーに追加/変更するプロパティ(複数指定できます) |
コマンド使用例¶
$ ecl compute server update --property k=v e60085fc-f110-4874-ac84-bba74865c6c0
$ ecl compute server show e60085fc-f110-4874-ac84-bba74865c6c0
+--------------------------------------+-----------------------------------------------+
| Field | Value |
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | zone1_groupb |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | None |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-08-08T07:47:00.000000 |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | hoge0121=192.168.10.3 |
| config_drive | |
| created | 2016-08-08T07:46:57Z |
| flavor | 1CPU-4GB (1CPU-4GB) |
| hostId | 3dfa85b3fc0c0284e4a92d8253128a1a2289722e4a46f |
| | e26544d7352 |
| id | e60085fc-f110-4874-ac84-bba74865c6c0 |
| image | CentOS-7.1-1503_64_virtual-server_12 |
| | (df1944a7-ca45-4709-9ec6-e31664133650) |
| key_name | None |
| name | test |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| project_id | 3ac7407ad7ab4e2fa0665df71a4886e4 |
| properties | k='v', vmha='true' |
| security_groups | [{u'name': u'default'}] |
| status | ACTIVE |
| updated | 2016-08-08T07:47:00Z |
| user_id | 5e86848fbc63403daaeffc1b76b3a784 |
+--------------------------------------+-----------------------------------------------+