Creates a persistent disk in the specified project using the data in the request.
You can create a disk with a sourceImage, a sourceSnapshot, or create an empty 500 GB data disk by omitting all properties.
gce_make_disk(name, sourceImage = NULL, sizeGb = NULL, description = NULL, diskEncryptionKey = NULL, licenses = NULL, sourceSnapshot = NULL, sourceImageEncryptionKey = NULL, sourceSnapshotEncryptionKey = NULL, type = NULL, project = gce_get_global_project(), zone = gce_get_global_zone())
name
: Name of the resourcesourceImage
: The source image used to create this disksizeGb
: Size of the persistent disk, specified in GBdescription
: An optional description of this resourcediskEncryptionKey
: Encrypts the disk using a customer-supplied encryption keylicenses
: Any applicable publicly visible licensessourceSnapshot
: The source snapshot used to create this disksourceImageEncryptionKey
: The customer-supplied encryption key of the source imagesourceSnapshotEncryptionKey
: The customer-supplied encryption key of the source snapshottype
: URL of the disk type resource describing which disk type to use to create the diskproject
: Project ID for this requestzone
: The name of the zone for this requesta zone operation
You can also create a disk that is larger than the default size by specifying the sizeGb property.
Authentication scopes used by this function are:
Useful links