Available in Classic and VPC
You can find various sample codes that help you understand and use Cloud Functions concepts.
The following shows sample code for Node.js and Python: You can check all sample codes on NAVER Cloud Platform GitHub.
| Topic | Description | Detailed description | Sample code |
|---|---|---|---|
| REST API | Implement HTTP REST API. | Implement a REST API that adds, views, deletes, and updates student information in a DB using an API Gateway trigger. | Node.js Python |
| Object Storage integrations | Create/view/delete buckets. | Use the Object Storage SDK to create, list, and delete buckets. | Node.js Python |
| Object Storage integration | Create/view/delete objects. | Use the Object Storage SDK to upload objects to a bucket, list objects, and delete objects. | Node.js Python |
| Cloud DB for MySQL integrations | MySQL data CRUD. | Create the Student (studentId, name, age) table and insert, delete, update, and view data. | Node,js Python |
| Cloud DB for MongoDB integrations | Store MongoDB data. | Store book information (title, author) in MongoDB's books collection. | Node.js Python |
| Cloud DB for Cache integrations | Store data in Cloud DB for Cache. | Store key/value data in Cloud DB for Cache. | Node.js Python |
| Server integrations | Start/stop Server Instance. | Start or stop server instances using the Server service OpenAPI. | Node.js Python |
| Slack integrations | Send Slack notifications. | Send Slack notifications when commits occur using the Cloud Functions GitHub trigger. | Node.js Python |
| Data Flow integration | Run Data Flow workflows. | An action run by an Object Storage trigger calls the Data Flow workflow execution API. | Python |