在 google 计算中创建磁盘时出错(未找到资源“... diskTypes/{pd-ssd}”
Error to create a disk in google compute (The resource '... diskTypes/{pd-ssd}' was not found
我尝试在 Google Compute 中创建一个磁盘。这是过程和错误:
gcloud compute disks create test --type={pd-ssd}
For the following disks:
- [test]
choose a zone:
[1] asia-east1-a
[2] asia-east1-c
[3] asia-east1-b
[4] europe-west1-c
[5] europe-west1-b
[6] europe-west1-d
[7] us-central1-a
[8] us-central1-b
[9] us-central1-c
[10] us-central1-f
Please enter your numeric choice: 9
NAME ZONE SIZE_GB TYPE STATUS
ERROR: (gcloud.compute.disks.create) Some requests did not succeed:
- The resource 'projects/devco-979/zones/us-central1-c/diskTypes/{pd-ssd}' was not found
为什么会这样?
去掉大括号:
gcloud compute disks create test --type=pd-ssd
编辑:
根据您为 gcloud compute disk-types list 提供的输出,您无权访问 pd-ssd 驱动器。这通常是因为您仍在免费套餐中。如果您升级到付费服务,您将获得 pd-ssd 驱动器。
我尝试在 Google Compute 中创建一个磁盘。这是过程和错误:
gcloud compute disks create test --type={pd-ssd}
For the following disks:
- [test]
choose a zone:
[1] asia-east1-a
[2] asia-east1-c
[3] asia-east1-b
[4] europe-west1-c
[5] europe-west1-b
[6] europe-west1-d
[7] us-central1-a
[8] us-central1-b
[9] us-central1-c
[10] us-central1-f
Please enter your numeric choice: 9
NAME ZONE SIZE_GB TYPE STATUS
ERROR: (gcloud.compute.disks.create) Some requests did not succeed:
- The resource 'projects/devco-979/zones/us-central1-c/diskTypes/{pd-ssd}' was not found
为什么会这样?
去掉大括号:
gcloud compute disks create test --type=pd-ssd
编辑:
根据您为 gcloud compute disk-types list 提供的输出,您无权访问 pd-ssd 驱动器。这通常是因为您仍在免费套餐中。如果您升级到付费服务,您将获得 pd-ssd 驱动器。