---
title: "샘플 코드"
slug: "cloudfunctions-samplecodes"
tags: ["샘플 코드"]
updated: 2026-08-20T09:03:25Z
published: 2026-08-20T09:03:25Z
canonical: "guide-gov.ncloud-docs.com/cloudfunctions-samplecodes"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://guide-gov.ncloud-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.
# 샘플 코드
Classic 환경에서 이용 가능합니다.
Cloud Functions의 개념 이해 및 활용에 도움이 되는 다양한 샘플 코드를 확인할 수 있습니다.
Node.js, Python 샘플 코드를 제공하며 다음과 같습니다. 모든 샘플 코드는 [NAVER Cloud Platform GitHub](https://github.com/NaverCloudPlatform/cloud-functions/tree/master/samples)에서 확인할 수 있습니다.
| 주제 | 설명 | 상세 설명 | 샘플 코드 |
| --- | --- | --- | --- |
| Cloud Functions 웹 액션 | HTTP REST API 구현 | Cloud Functions 웹 액션을 이용하여 DB에 학생 정보를 추가하거나 조회, 삭제, 갱신하는 REST API 구현 | [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 연동 | 버킷 생성/조회/삭제 | Object Storage SDK를 이용하여 버킷을 생성(create), 목록 조회(list), 삭제(delete) | [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 연동 | 오브젝트 생성/조회/삭제 | Object Storage SDK를 이용하여 버킷 내 오브젝트를 생성(upload), 목록 조회(list), 삭제(delete) | [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 연동 | MySQL 데이터 CRUD | Student(studentId, name, age) 테이블 생성 및 데이터 삽입, 삭제, 갱신, 조회 | [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 연동 | MongoDB 데이터 저장 | MongoDB의 books 콜렉션에 책 정보(제목, 저자)를 저장 | [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 연동 | Cloud DB for Cache 데이터 저장 | Cloud DB for Cache에 Key/Value 데이터 저장 | [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 연동 | Server Instance 시작/정지 | Server 서비스 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 연동 | Slack 알림 발송 | Cloud Functions GitHub Trigger를 이용하여 Commit이 발생하면 Slack으로 알람 전송 | [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) |