felix001
felix001

Reputation: 16741

GCE Snapshots via Commandline

When trying to create a snapshot via the command line on GCE (i.e google cloud) I get the following errors,

[root@william001 ~]# gcloud compute --project "####" disks snapshot "https://clients6.google.com/compute/v1/projects/####/zones/europe-west1-b/disks/william001" --zone "europe-west1-b" --snapshot-names "snapshot-2"
ERROR: (gcloud.compute.disks.snapshot) could not parse resource: [https://clients6.google.com/compute/v1/####/zones/europe-west1-b/disks/william001]

Any ideas, thanks.

Upvotes: 0

Views: 325

Answers (2)

Marilu
Marilu

Reputation: 983

It seems like you're using the equivalent command line that you get in the Developers Console. As Fabricio suggested, run the command as

gcloud compute --project "####" disks snapshot william001 --zone "europe-west1-b" --snapshot-names "snapshot-2"

Upvotes: 1

Fabricio Voznika
Fabricio Voznika

Reputation: 371

Try using "william001" only as your disk name.

Upvotes: 0

Related Questions