Create a persistent disk

Create a persistent disk

Explore further

For detailed documentation that includes this code sample, see the following:

Code sample

Terraform

To learn how to apply or remove a Terraform configuration, see Basic Terraform commands . For more information, see the Terraform provider reference documentation .

  # Using pd-standard because it's the default for Compute Engine 
 resource 
  
 "google_compute_disk" 
  
 "default" 
  
 { 
  
 name 
  
 = 
  
 "disk-data" 
  
 type 
  
 = 
  
 "pd-standard" 
  
 zone 
  
 = 
  
 "us-west1-a" 
  
 size 
  
 = 
  
 "5" 
 } 
 

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser .

Create a Mobile Website
View Site in Mobile | Classic
Share by: