샘플 코드
    • PDF

    샘플 코드

    • PDF

    Article Summary

    Classic/VPC 환경에서 이용 가능합니다.

    Cloud Functions의 개념 이해 및 활용에 도움이 되는 다양한 샘플 코드를 확인할 수 있습니다.

    Node.js, Python 샘플 코드를 제공하며 다음과 같습니다. 모든 샘플 코드는 NAVER Cloud Platform GitHub에서 확인할 수 있습니다.

    주제설명상세 설명샘플 코드
    Cloud Functions 웹 액션HTTP REST API 구현Cloud Functions 웹 액션을 이용하여 DB에 학생 정보를 추가하거나 조회, 삭제, 갱신하는 REST API 구현Node.js
    Python
    Object Storage 연동버킷 생성/조회/삭제Object Storage SDK를 이용하여 버킷을 생성(create), 목록 조회(list), 삭제(delete)Node.js
    Python
    Object Storage 연동오브젝트 생성/조회/삭제Object Storage SDK를 이용하여 버킷 내 오브젝트를 생성(upload), 목록 조회(list), 삭제(delete)Node.js
    Python
    Cloud DB for MySQL 연동MySQL 데이터 CRUDStudent(studentId, name, age) 테이블 생성 및 데이터 삽입, 삭제, 갱신, 조회Node,js
    Python
    Cloud DB for MongoDB 연동MongoDB 데이터 저장MongoDB의 books 콜렉션에 책 정보(제목, 저자)를 저장Node.js
    Python
    Cloud DB for Redis 연동Redis 데이터 저장Redis에 Key/Value 데이터 저장Node.js
    Python
    Cloud IoT Core 연동IoT 데이터 보강 및 저장Cloud Functions IoT Trigger로 전달된 IoT 데이터와 Redis의 속성 정보를 추가하여 MongoDB에 저장Node.js
    Python
    Server 연동Server Instance 시작/정지Server 서비스 OpenAPI를 이용하여 서버 인스턴스를 시작 또는 정지Node.js
    Python
    Slack 연동Slack 알림 발송Cloud Functions GitHub Trigger를 이용하여 Commit이 발생하면 Slack으로 알람 전송Node.js
    Python

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.