名前
gdcloud compute instances remove-metadata - 仮想マシン インスタンスのメタデータを削除します。
概要
gdcloud compute instances remove-metadata INSTANCE_NAME [flags]
EXAMPLES
To remove metadata for key "example-key" for a virtual machine instance named "example-instance" in project "example-project", run:
gdcloud compute instances remove-metadata example-instance --project example-project --keys=key1,key2
To remove all metadata from an instance named "example-instance", run:
gdcloud compute instances remove-metadata example-instance --project example-project --all
オプションのフラグ
--all count If set, all metadata entries are removed.
For example, --all. At least one of the flags --all or --keys is required.
--keys stringArray List of comma-separated key entries that must be removed from the metadata of the virtual machine instance.
For example, --keys=key1, key2. At least one of the flags --all or --keys is required.
GDCLOUD ワイドフラグ
これらのフラグは、すべてのコマンドで使用できます: --configuration
、--format
、--help
、--project
、--quiet
。
詳細については、gdcloud CLI リファレンスの概要ページをご覧ください。