--- title: "Sample code" slug: "cloudfunctions-samplecodes" tags: ["Cloud Functions examples", "Cloud Functions"] updated: 2026-10-08T06:53:14Z published: 2026-10-08T06:53:14Z canonical: "guide.ncloud-docs.com/cloudfunctions-samplecodes" --- > ## Documentation Index > Fetch the complete documentation index at: https://guide.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Sample code 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](https://github.com/NaverCloudPlatform/cloud-functions/tree/master/samples). | 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](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/rest-api) [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/rest-api) | | Object Storage integrations | Create/view/delete buckets. | Use the Object Storage SDK to create, list, and delete buckets. | [Node.js](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/object-storage/bucket) [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/object-storage/bucket) | | 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](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/object-storage/object) [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/object-storage/object) | | Cloud DB for MySQL integrations | MySQL data CRUD. | Create the Student (studentId, name, age) table and insert, delete, update, and view data. | [Node,js](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/mysql/db-crud) [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/mysql/db-crud) | | Cloud DB for MongoDB integrations | Store MongoDB data. | Store book information (title, author) in MongoDB's books collection. | [Node.js](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/mongodb) [Python](https://github.com/NaverCloudPlatform/cloud-functions/tree/master/samples/python/mongodb) | | Cloud DB for Cache integrations | Store data in Cloud DB for Cache. | Store key/value data in Cloud DB for Cache. | [Node.js](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/cache) [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/cache) | | Server integrations | Start/stop Server Instance. | Start or stop server instances using the Server service OpenAPI. | [Node.js](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/server/control-server-instance) [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/server/control-server-instance) | | Slack integrations | Send Slack notifications. | Send Slack notifications when commits occur using the Cloud Functions GitHub trigger. | [Node.js](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/nodejs/slack) [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/slack) | | Data Flow integration | Run Data Flow workflows. | An action run by an Object Storage trigger calls the Data Flow workflow execution API. | [Python](https://github.com/NaverCloudPlatform/cloud-functions/blob/master/samples/python/dataflow/workflow/execute-workflow) |