Skip to content

Latest commit

 

History

History
 
 

uuid

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Google Cloud Platform logo

Google Cloud Functions UUID sample

This sample shows a Google Cloud Function that uses a dependency from NPM, and is a handy way to generate a v4 UUID from the command-line.

View the documentation or the source code.

Deploy and Test

  1. Follow the Cloud Functions quickstart guide to setup Cloud Functions for your project.

  2. Clone this repository:

     git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
     cd nodejs-docs-samples/functions/uuid
    
  3. Deploy the uuid function with an HTTP trigger:

     gcloud functions deploy uuid --trigger-http
    
  4. Call the uuid function:

     gcloud functions call uuid
    

    You should see something like this in your console:

     executionId: abcd1234-0
     result: 0ef22088-07f2-44ca-9cef-cea8ff666d69