Create a Cloud Storage subscription

Create a Cloud Storage subscription where messages published to a topic populates a Cloud Storage bucket

Explore further

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

Code sample

C++

Before trying this sample, follow the C++ setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub C++ API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  namespace 
  
 pubsub 
  
 = 
  
 :: 
 google 
 :: 
 cloud 
 :: 
 pubsub 
 ; 
 namespace 
  
 pubsub_admin 
  
 = 
  
 :: 
 google 
 :: 
 cloud 
 :: 
 pubsub_admin 
 ; 
 []( 
 pubsub_admin 
 :: 
 SubscriptionAdminClient 
  
 client 
 , 
  
 std 
 :: 
 string 
  
 const 
&  
 project_id 
 , 
  
 std 
 :: 
 string 
  
 const 
&  
 topic_id 
 , 
  
 std 
 :: 
 string 
  
 const 
&  
 subscription_id 
 , 
  
 std 
 :: 
 string 
  
 const 
&  
 bucket 
 ) 
  
 { 
  
 google 
 :: 
 pubsub 
 :: 
 v1 
 :: 
 Subscription 
  
 request 
 ; 
  
 request 
 . 
 set_name 
 ( 
  
 pubsub 
 :: 
 Subscription 
 ( 
 project_id 
 , 
  
 subscription_id 
 ). 
 FullName 
 ()); 
  
 request 
 . 
 set_topic 
 ( 
 pubsub 
 :: 
 Topic 
 ( 
 project_id 
 , 
  
 topic_id 
 ). 
 FullName 
 ()); 
  
 request 
 . 
 mutable_cloud_storage_config 
 () 
 - 
> set_bucket 
 ( 
 bucket 
 ); 
  
 auto 
  
 sub 
  
 = 
  
 client 
 . 
 CreateSubscription 
 ( 
 request 
 ); 
  
 if 
  
 ( 
 ! 
 sub 
 ) 
  
 { 
  
 if 
  
 ( 
 sub 
 . 
 status 
 (). 
 code 
 () 
  
 == 
  
 google 
 :: 
 cloud 
 :: 
 StatusCode 
 :: 
 kAlreadyExists 
 ) 
  
 { 
  
 std 
 :: 
 cout 
 << 
 "The subscription already exists 
 \n 
 " 
 ; 
  
 return 
 ; 
  
 } 
  
 throw 
  
 std 
 :: 
 move 
 ( 
 sub 
 ). 
 status 
 (); 
  
 } 
  
 std 
 :: 
 cout 
 << 
 "The subscription was successfully created: " 
 << 
 sub 
 - 
> DebugString 
 () 
 << 
 " 
 \n 
 " 
 ; 
 } 
 

C#

Before trying this sample, follow the C# setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub C# API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  using 
  
  Google.Cloud.PubSub.V1 
 
 ; 
 using 
  
  Google.Protobuf.WellKnownTypes 
 
 ; 
 using 
  
 System 
 ; 
 public 
  
 class 
  
 CreateCloudStorageSubscriptionSample 
 { 
  
 public 
  
 Subscription 
  
 CreateCloudStorageSubscription 
 ( 
 string 
  
 projectId 
 , 
  
 string 
  
 topicId 
 , 
  
 string 
  
 subscriptionId 
 , 
  
 string 
  
 bucket 
 , 
  
 string 
  
 filenamePrefix 
 , 
  
 string 
  
 filenameSuffix 
 , 
  
 TimeSpan 
  
 maxDuration 
 ) 
  
 { 
  
  SubscriberServiceApiClient 
 
  
 subscriber 
  
 = 
  
  SubscriberServiceApiClient 
 
 . 
  Create 
 
 (); 
  
  TopicName 
 
  
 topicName 
  
 = 
  
  TopicName 
 
 . 
  FromProjectTopic 
 
 ( 
 projectId 
 , 
  
 topicId 
 ); 
  
  SubscriptionName 
 
  
 subscriptionName 
  
 = 
  
  SubscriptionName 
 
 . 
  FromProjectSubscription 
 
 ( 
 projectId 
 , 
  
 subscriptionId 
 ); 
  
 var 
  
 subscriptionRequest 
  
 = 
  
 new 
  
  Subscription 
 
  
 { 
  
 SubscriptionName 
  
 = 
  
 subscriptionName 
 , 
  
 TopicAsTopicName 
  
 = 
  
 topicName 
 , 
  
 CloudStorageConfig 
  
 = 
  
 new 
  
  CloudStorageConfig 
 
  
 { 
  
 Bucket 
  
 = 
  
 bucket 
 , 
  
 FilenamePrefix 
  
 = 
  
 filenamePrefix 
 , 
  
 FilenameSuffix 
  
 = 
  
 filenameSuffix 
 , 
  
 MaxDuration 
  
 = 
  
  Duration 
 
 . 
  FromTimeSpan 
 
 ( 
 maxDuration 
 ) 
  
 } 
  
 }; 
  
 var 
  
 subscription 
  
 = 
  
 subscriber 
 . 
  CreateSubscription 
 
 ( 
 subscriptionRequest 
 ); 
  
 return 
  
 subscription 
 ; 
  
 } 
 } 
 

Go

Before trying this sample, follow the Go setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub Go API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  import 
  
 ( 
  
 "context" 
  
 "fmt" 
  
 "io" 
  
 "time" 
  
 "cloud.google.com/go/pubsub/v2" 
  
 "cloud.google.com/go/pubsub/v2/apiv1/pubsubpb" 
  
 "google.golang.org/protobuf/types/known/durationpb" 
 ) 
 // createCloudStorageSubscription creates a Pub/Sub subscription that exports messages to Cloud Storage. 
 func 
  
 createCloudStorageSubscription 
 ( 
 w 
  
 io 
 . 
 Writer 
 , 
  
 projectID 
 , 
  
 topic 
 , 
  
 subscription 
 , 
  
 bucket 
  
 string 
 ) 
  
 error 
  
 { 
  
 // projectID := "my-project-id" 
  
 // topic := "projects/my-project-id/topics/my-topic" 
  
 // subscription := "projects/my-project/subscriptions/my-sub" 
  
 // bucket := "my-bucket" // bucket must not have the gs:// prefix 
  
 ctx 
  
 := 
  
 context 
 . 
 Background 
 () 
  
 client 
 , 
  
 err 
  
 := 
  
 pubsub 
 . 
 NewClient 
 ( 
 ctx 
 , 
  
 projectID 
 ) 
  
 if 
  
 err 
  
 != 
  
 nil 
  
 { 
  
 return 
  
 fmt 
 . 
 Errorf 
 ( 
 "pubsub.NewClient: %w" 
 , 
  
 err 
 ) 
  
 } 
  
 defer 
  
 client 
 . 
 Close 
 () 
  
 sub 
 , 
  
 err 
  
 := 
  
 client 
 . 
 SubscriptionAdminClient 
 . 
 CreateSubscription 
 ( 
 ctx 
 , 
  
& pubsubpb 
 . 
 Subscription 
 { 
  
 Name 
 : 
  
 subscription 
 , 
  
 Topic 
 : 
  
 topic 
 , 
  
 CloudStorageConfig 
 : 
  
& pubsubpb 
 . 
 CloudStorageConfig 
 { 
  
 Bucket 
 : 
  
 bucket 
 , 
  
 FilenamePrefix 
 : 
  
 "log_events_" 
 , 
  
 FilenameSuffix 
 : 
  
 ".avro" 
 , 
  
 OutputFormat 
 : 
  
& pubsubpb 
 . 
 CloudStorageConfig_AvroConfig_ 
 { 
  
 AvroConfig 
 : 
  
& pubsubpb 
 . 
 CloudStorageConfig_AvroConfig 
 { 
  
 WriteMetadata 
 : 
  
 true 
 , 
  
 }, 
  
 }, 
  
 MaxDuration 
 : 
  
 durationpb 
 . 
 New 
 ( 
 1 
  
 * 
  
 time 
 . 
 Minute 
 ), 
  
 MaxBytes 
 : 
  
 1e8 
 , 
  
 }, 
  
 }) 
  
 if 
  
 err 
  
 != 
  
 nil 
  
 { 
  
 return 
  
 fmt 
 . 
 Errorf 
 ( 
 "failed to create cloud storage sub: %w" 
 , 
  
 err 
 ) 
  
 } 
  
 fmt 
 . 
 Fprintf 
 ( 
 w 
 , 
  
 "Created Cloud Storage subscription: %v\n" 
 , 
  
 sub 
 ) 
  
 return 
  
 nil 
 } 
 

Java

Before trying this sample, follow the Java setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub Java API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  import 
  
 com.google.cloud.pubsub.v1. SubscriptionAdminClient 
 
 ; 
 import 
  
 com.google.protobuf. Duration 
 
 ; 
 import 
  
 com.google.pubsub.v1. CloudStorageConfig 
 
 ; 
 import 
  
 com.google.pubsub.v1. ProjectSubscriptionName 
 
 ; 
 import 
  
 com.google.pubsub.v1. ProjectTopicName 
 
 ; 
 import 
  
 com.google.pubsub.v1. Subscription 
 
 ; 
 import 
  
 java.io.IOException 
 ; 
 public 
  
 class 
 CreateCloudStorageSubscriptionExample 
  
 { 
  
 public 
  
 static 
  
 void 
  
 main 
 ( 
 String 
 ... 
  
 args 
 ) 
  
 throws 
  
 Exception 
  
 { 
  
 // TODO(developer): Replace these variables before running the sample. 
  
 String 
  
 projectId 
  
 = 
  
 "your-project-id" 
 ; 
  
 String 
  
 topicId 
  
 = 
  
 "your-topic-id" 
 ; 
  
 String 
  
 subscriptionId 
  
 = 
  
 "your-subscription-id" 
 ; 
  
 String 
  
 bucket 
  
 = 
  
 "your-bucket" 
 ; 
  
 String 
  
 filenamePrefix 
  
 = 
  
 "log_events_" 
 ; 
  
 String 
  
 filenameSuffix 
  
 = 
  
 ".text" 
 ; 
  
  Duration 
 
  
 maxDuration 
  
 = 
  
  Duration 
 
 . 
 newBuilder 
 (). 
 setSeconds 
 ( 
 300 
 ). 
 build 
 (); 
  
 createCloudStorageSubscription 
 ( 
  
 projectId 
 , 
  
 topicId 
 , 
  
 subscriptionId 
 , 
  
 bucket 
 , 
  
 filenamePrefix 
 , 
  
 filenameSuffix 
 , 
  
 maxDuration 
 ); 
  
 } 
  
 public 
  
 static 
  
 void 
  
 createCloudStorageSubscription 
 ( 
  
 String 
  
 projectId 
 , 
  
 String 
  
 topicId 
 , 
  
 String 
  
 subscriptionId 
 , 
  
 String 
  
 bucket 
 , 
  
 String 
  
 filenamePrefix 
 , 
  
 String 
  
 filenameSuffix 
 , 
  
  Duration 
 
  
 maxDuration 
 ) 
  
 throws 
  
 IOException 
  
 { 
  
 try 
  
 ( 
  SubscriptionAdminClient 
 
  
 subscriptionAdminClient 
  
 = 
  
  SubscriptionAdminClient 
 
 . 
 create 
 ()) 
  
 { 
  
  ProjectTopicName 
 
  
 topicName 
  
 = 
  
  ProjectTopicName 
 
 . 
 of 
 ( 
 projectId 
 , 
  
 topicId 
 ); 
  
  ProjectSubscriptionName 
 
  
 subscriptionName 
  
 = 
  
  ProjectSubscriptionName 
 
 . 
 of 
 ( 
 projectId 
 , 
  
 subscriptionId 
 ); 
  
  CloudStorageConfig 
 
  
 cloudStorageConfig 
  
 = 
  
  CloudStorageConfig 
 
 . 
 newBuilder 
 () 
  
 . 
 setBucket 
 ( 
 bucket 
 ) 
  
 . 
  setFilenamePrefix 
 
 ( 
 filenamePrefix 
 ) 
  
 . 
  setFilenameSuffix 
 
 ( 
 filenameSuffix 
 ) 
  
 . 
  setMaxDuration 
 
 ( 
 maxDuration 
 ) 
  
 . 
 build 
 (); 
  
  Subscription 
 
  
 subscription 
  
 = 
  
 subscriptionAdminClient 
 . 
 createSubscription 
 ( 
  
  Subscription 
 
 . 
 newBuilder 
 () 
  
 . 
 setName 
 ( 
 subscriptionName 
 . 
  toString 
 
 ()) 
  
 . 
 setTopic 
 ( 
 topicName 
 . 
  toString 
 
 ()) 
  
 . 
  setCloudStorageConfig 
 
 ( 
 cloudStorageConfig 
 ) 
  
 . 
 build 
 ()); 
  
 System 
 . 
 out 
 . 
 println 
 ( 
 "Created a CloudStorage subscription: " 
  
 + 
  
 subscription 
 . 
 getAllFields 
 ()); 
  
 } 
  
 } 
 } 
 

Node.js

Before trying this sample, follow the Node.js setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub Node.js API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  /** 
  
 * 
  
 TODO 
 ( 
 developer 
 ): 
  
 Uncomment 
  
 these 
  
 variables 
  
 before 
  
 running 
  
 the 
  
 sample 
 . 
  
 */ 
 // 
  
 const 
  
 topicName 
  
 = 
  
 'YOUR_TOPIC_NAME' 
 ; 
 // 
  
 const 
  
 subscriptionName 
  
 = 
  
 'YOUR_SUBSCRIPTION_NAME' 
 ; 
 // 
  
 const 
  
 bucket 
  
 = 
  
 'YOUR_BUCKET_ID' 
 ; 
 // 
  
 const 
  
 filenamePrefix 
  
 = 
  
 'YOUR_FILENAME_PREFIX' 
 ; 
 // 
  
 const 
  
 filenameSuffix 
  
 = 
  
 'YOUR_FILENAME_SUFFIX' 
 ; 
 // 
  
 const 
  
 maxDuration 
  
 = 
  
 60 
 ; 
 // 
  
 Imports 
  
 the 
  
 Google 
  
 Cloud 
  
 client 
  
 library 
 const 
  
 { 
 PubSub 
 } 
  
 = 
  
 require 
 ( 
 '@google-cloud/pubsub' 
 ); 
 // 
  
 Creates 
  
 a 
  
 client 
 ; 
  
 cache 
  
 this 
  
 for 
  
 further 
  
 use 
 const 
  
 pubSubClient 
  
 = 
  
 new 
  
 PubSub 
 (); 
 async 
  
 function 
  
 createCloudStorageSubscription 
 ( 
  
 topicName 
 , 
  
 subscriptionName 
 , 
  
 bucket 
 , 
  
 filenamePrefix 
 , 
  
 filenameSuffix 
 , 
  
 maxDuration 
 , 
 ) 
  
 { 
  
 const 
  
 options 
  
 = 
  
 { 
  
 cloudStorageConfig 
 : 
  
 { 
  
 bucket 
 , 
  
 filenamePrefix 
 , 
  
 filenameSuffix 
 , 
  
 maxDuration 
 : 
  
 { 
  
 seconds 
 : 
  
 maxDuration 
 , 
  
 }, 
  
 }, 
  
 }; 
  
 await 
  
 pubSubClient 
  
 . 
 topic 
 ( 
 topicName 
 ) 
  
 . 
 createSubscription 
 ( 
 subscriptionName 
 , 
  
 options 
 ); 
  
 console 
 . 
 log 
 ( 
  
 ` 
 Created 
  
 subscription 
  
 $ 
 { 
 subscriptionName 
 } 
  
 with 
  
 a 
  
 cloud 
  
 storage 
  
 configuration 
 . 
 ` 
 , 
  
 ); 
 } 
 

Node.js

Before trying this sample, follow the Node.js setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub Node.js API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  /** 
 * 
 TODO 
 ( 
 developer 
 ): 
 Uncomment 
 these 
 variables 
 before 
 running 
 the 
 sample 
 . 
 */ 
 // 
 const 
 topicName 
 = 
 'YOUR_TOPIC_NAME' 
 ; 
 // 
 const 
 subscriptionName 
 = 
 'YOUR_SUBSCRIPTION_NAME' 
 ; 
 // 
 const 
 bucket 
 = 
 'YOUR_BUCKET_ID' 
 ; 
 // 
 const 
 filenamePrefix 
 = 
 'YOUR_FILENAME_PREFIX' 
 ; 
 // 
 const 
 filenameSuffix 
 = 
 'YOUR_FILENAME_SUFFIX' 
 ; 
 // 
 const 
 maxDuration 
 = 
 60 
 ; 
 // 
 Imports 
 the 
 Google 
 Cloud 
 client 
 library 
 import 
  
 { 
 CreateSubscriptionOptions 
 , 
 PubSub 
 } 
 from 
  
 '@google-cloud/pubsub' 
 ; 
 // 
 Creates 
 a 
 client 
 ; 
 cache 
 this 
 for 
 further 
 use 
 const 
 pubSubClient 
 = 
 new 
 PubSub 
 (); 
 async 
 function 
 createCloudStorageSubscription 
 ( 
 topicName 
 : 
 string 
 , 
 subscriptionName 
 : 
 string 
 , 
 bucket 
 : 
 string 
 , 
 filenamePrefix 
 : 
 string 
 , 
 filenameSuffix 
 : 
 string 
 , 
 maxDuration 
 : 
 number 
 , 
 ) 
 { 
 const 
 options 
 : 
 CreateSubscriptionOptions 
 = 
 { 
 cloudStorageConfig 
 : 
 { 
 bucket 
 , 
 filenamePrefix 
 , 
 filenameSuffix 
 , 
 maxDuration 
 : 
 { 
 seconds 
 : 
 maxDuration 
 , 
 }, 
 }, 
 }; 
 await 
 pubSubClient 
 . 
 topic 
 ( 
 topicName 
 ) 
 . 
 createSubscription 
 ( 
 subscriptionName 
 , 
 options 
 ); 
 console 
 . 
 log 
 ( 
 ` 
 Created 
 subscription 
 $ 
 { 
 subscriptionName 
 } 
 with 
 a 
 cloud 
 storage 
 configuration 
 . 
 ` 
 , 
 ); 
 } 
 

PHP

Before trying this sample, follow the PHP setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub PHP API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  use Google\Cloud\PubSub\PubSubClient; 
 /** 
 * Creates a Pub/Sub GCS subscription. 
 * 
 * @param string $projectId  The Google project ID. 
 * @param string $topicName  The Pub/Sub topic name. 
 * @param string $subscriptionName  The Pub/Sub subscription name. 
 * @param string $bucket The Cloud Storage bucket name without any prefix like "gs://". 
 */ 
 function create_cloud_storage_subscription($projectId, $topicName, $subscriptionName, $bucket) 
 { 
 $pubsub = new PubSubClient([ 
 'projectId' => $projectId, 
 ]); 
 $topic = $pubsub->topic($topicName); 
 $subscription = $topic->subscription($subscriptionName); 
 $config = ['bucket' => $bucket]; 
 $subscription->create([ 
 'cloudStorageConfig' => $config 
 ]); 
 printf('Subscription created: %s' . PHP_EOL, $subscription->name()); 
 } 
 

Python

Before trying this sample, follow the Python setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub Python API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  from 
  
 google.cloud 
  
 import 
 pubsub_v1 
 from 
  
 google.protobuf 
  
 import 
 duration_pb2 
 # TODO(developer) 
 # project_id = "your-project-id" 
 # topic_id = "your-topic-id" 
 # subscription_id = "your-subscription-id" 
 # bucket = "my-bucket" 
 filename_prefix 
 = 
 "log_events_" 
 filename_suffix 
 = 
 ".avro" 
 # Either CloudStorageConfig.AvroConfig or CloudStorageConfig.TextConfig 
 # defaults to TextConfig 
 avro_config 
 = 
 pubsub_v1 
 . 
 types 
 . 
  CloudStorageConfig 
 
 . 
  AvroConfig 
 
 ( 
 write_metadata 
 = 
 True 
 ) 
 publisher 
 = 
 pubsub_v1 
 . 
  PublisherClient 
 
 () 
 subscriber 
 = 
 pubsub_v1 
 . 
  SubscriberClient 
 
 () 
 topic_path 
 = 
 publisher 
 . 
 topic_path 
 ( 
 project_id 
 , 
 topic_id 
 ) 
 subscription_path 
 = 
 subscriber 
 . 
 subscription_path 
 ( 
 project_id 
 , 
 subscription_id 
 ) 
 max_duration 
 = 
 duration_pb2 
 . 
  Duration 
 
 () 
 max_duration 
 . 
 FromSeconds 
 ( 
 300 
 ) 
 cloudstorage_config 
 = 
 pubsub_v1 
 . 
 types 
 . 
  CloudStorageConfig 
 
 ( 
 bucket 
 = 
 bucket 
 , 
 filename_prefix 
 = 
 filename_prefix 
 , 
 filename_suffix 
 = 
 filename_suffix 
 , 
 avro_config 
 = 
 avro_config 
 , 
 # Min 1 minutes, max 10 minutes 
 max_duration 
 = 
 max_duration 
 , 
 # Min 1 KB, max 10 GiB 
 max_bytes 
 = 
 10000000 
 , 
 ) 
 # Wrap the subscriber in a 'with' block to automatically call close() to 
 # close the underlying gRPC channel when done. 
 with 
 subscriber 
 : 
 subscription 
 = 
 subscriber 
 . 
 create_subscription 
 ( 
 request 
 = 
 { 
 "name" 
 : 
 subscription_path 
 , 
 "topic" 
 : 
 topic_path 
 , 
 "cloud_storage_config" 
 : 
 cloudstorage_config 
 , 
 } 
 ) 
 print 
 ( 
 f 
 "CloudStorage subscription created: 
 { 
 subscription 
 } 
 ." 
 ) 
 print 
 ( 
 f 
 "Bucket for subscription is: 
 { 
 bucket 
 } 
 " 
 ) 
 print 
 ( 
 f 
 "Prefix is: 
 { 
 filename_prefix 
 } 
 " 
 ) 
 print 
 ( 
 f 
 "Suffix is: 
 { 
 filename_suffix 
 } 
 " 
 ) 
 

Ruby

Before trying this sample, follow the Ruby setup instructions in the Pub/Sub quickstart using client libraries . For more information, see the Pub/Sub Ruby API reference documentation .

To authenticate to Pub/Sub, set up Application Default Credentials. For more information, see Set up authentication for a local development environment .

  # topic_id        = "your-topic-id" 
 # subscription_id = "your-subscription-id" 
 # bucket = "your-bucket" 
 pubsub 
  
 = 
  
 Google 
 :: 
 Cloud 
 :: 
  Pubsub 
 
 . 
 new 
 subscription_admin 
  
 = 
  
 pubsub 
 . 
 subscription_admin 
 subscription 
  
 = 
  
 subscription_admin 
 . 
 create_subscription 
  
 \ 
  
 name 
 : 
  
 pubsub 
 . 
 subscription_path 
 ( 
 subscription_id 
 ), 
  
 topic 
 : 
  
 pubsub 
 . 
 topic_path 
 ( 
 topic_id 
 ), 
  
 cloud_storage_config 
 : 
  
 { 
  
 bucket 
 : 
  
 bucket 
  
 } 
 puts 
  
 "Cloud storage subscription 
 #{ 
 subscription_id 
 } 
 created." 
 

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: