You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--billing-period string Billing period (hourly, monthly), default is hourly (default "hourly")
64
-
--boot-from.image string Image ID to boot from (you can use 'ovhcloud cloud reference list-images' to get the image ID)
64
+
--boot-from.image string Image ID to boot from (you can use 'ovhcloud cloud reference list-images' to get the image ID or 'ovhcloud cloud instance snapshot ls' to get the snapshots)
Copy file name to clipboardExpand all lines: doc/ovhcloud_cloud_instance_snapshot.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,4 +32,7 @@ Manage snapshots of the given instance
32
32
*[ovhcloud cloud instance](ovhcloud_cloud_instance.md) - Manage instances in the given cloud project
33
33
*[ovhcloud cloud instance snapshot abort](ovhcloud_cloud_instance_snapshot_abort.md) - Abort the snapshot creation of the given instance
34
34
*[ovhcloud cloud instance snapshot create](ovhcloud_cloud_instance_snapshot_create.md) - Create a snapshot of the given instance
35
+
*[ovhcloud cloud instance snapshot delete](ovhcloud_cloud_instance_snapshot_delete.md) - Delete a specific instance snapshot in the current cloud project
36
+
*[ovhcloud cloud instance snapshot get](ovhcloud_cloud_instance_snapshot_get.md) - Get a specific instance snapshot in the current cloud project
37
+
*[ovhcloud cloud instance snapshot list](ovhcloud_cloud_instance_snapshot_list.md) - List all instance snapshots in the current cloud project
instanceCreateCmd.Flags().StringVar(&cloud.InstanceCreationParameters.BootFrom.ImageID, "boot-from.image", "", "Image ID to boot from (you can use 'ovhcloud cloud reference list-images' to get the image ID)")
78
+
instanceCreateCmd.Flags().StringVar(&cloud.InstanceCreationParameters.BootFrom.ImageID, "boot-from.image", "", "Image ID to boot from (you can use 'ovhcloud cloud reference list-images' to get the image ID or 'ovhcloud cloud instance snapshot ls' to get the snapshots)")
79
79
instanceCreateCmd.Flags().StringVar(&cloud.InstanceCreationParameters.BootFrom.VolumeID, "boot-from.volume", "", "Volume ID to boot from")
@@ -367,12 +367,16 @@ There are three ways to define the installation parameters:
367
367
}
368
368
instanceCmd.AddCommand(snapshotCmd)
369
369
370
-
snapshotCmd.AddCommand(&cobra.Command{
370
+
snapshotCreateCmd:=&cobra.Command{
371
371
Use: "create <instance_id> <snapshot_name>",
372
372
Short: "Create a snapshot of the given instance",
373
373
Run: cloud.CreateInstanceSnapshot,
374
374
Args: cobra.ExactArgs(2),
375
-
})
375
+
}
376
+
snapshotCreateCmd.Flags().StringVar(&cloud.InstanceSnapshotSpec.DistantSnapshotName, "distant-snapshot-name", "", "Name of the snapshot in the distant region (for cross region snapshot)")
377
+
snapshotCreateCmd.Flags().StringVar(&cloud.InstanceSnapshotSpec.DistantRegionName, "distant-region-name", "", "Name of the distant region (for cross region snapshot)")
0 commit comments