如何编辑实例组中的实例后缀?

时间:2018-03-07 18:18:53

标签: google-cloud-platform cloud google-compute-engine google-cloud-sdk

我的实例组会自动为我的实例添加随机后缀。

我想更改GCP实例组中的实例名称或后缀。我更喜欢带编号的后缀。

有可能吗?

Screenshot of my Google Cloud in the Instances Group section

1 个答案:

答案 0 :(得分:1)

无法控制属于实例组的实例的后缀。您可以在documentation中阅读甚至使用带有可选标记的SDK,您可以更改实例的base-name,但不会有关于后缀的提示。

--base-instance-name=BASE_INSTANCE_NAME

The base name to use for the Compute Engine
instances that will be created with the managed instance group. 
If not provided base instance name will be the prefix of instance group name.

此外,一旦创建了Compute Engine实例,就无法重命名它们。 在这里,您可以找到关于此功能的UserVoice主题。