Cloud DB for MySQL 개요

Cloud DB for MySQL은 세계적으로 가장 많이 사용되는 관계형 데이터베이스 MySQL을 이용한 완전 관리형 클라우드 데이터베이스 서비스입니다. Cloud DB for MySQL에서는 데이터베이스 관리 기능에 대한 API를 RESTful 형태로 제공합니다.

Cloud DB for MySQL API에서 공통으로 사용하는 요청 형식과 응답 형식을 설명합니다.

공통 요청 형식을 설명합니다.

API URL

요청 API URL은 다음과 같습니다.

https://fin-ncloud.apigw.fin-ntruss.com/vmysql/v2
HTTP

요청 헤더

요청 헤더에 대한 설명은 다음과 같습니다.

필드 필수 여부 설명
x-ncp-apigw-timestamp Required 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간(밀리초)
  • API Gateway 서버와 5분 이상 시간차 발생 시 유효하지 않은 요청으로 간주
  • x-ncp-apigw-api-key Required 네이버 클라우드 플랫폼의 API Gateway 서비스에서 발급받은 키
    x-ncp-iam-access-key Required 네이버 클라우드 플랫폼에서 발급받은 Access Key
  • Access Key 발급 및 확인: 인증키 생성 참조
  • 서브 계정의 Access Key 발급 및 확인: 서브 계정 생성 참조
  • x-ncp-apigw-signature-v1 Required 네이버 클라우드 플랫폼에서 발급받은 Access Key에 맵핑되는 Secret Key 및 HMAC 암호화 알고리즘(HmacSHA256)으로 요청 정보를 암호화한 후 Base64로 인코딩한 서명
  • Secret Key 발급 및 확인: 인증키 생성 참조
  • 서명 생성: 시그니처 생성 참조
  • 공통 응답 형식을 설명합니다.

    응답 상태 코드

    Cloud DB for MySQL API는 네이버 클라우드 플랫폼의 공통 응답 상태 코드를 사용합니다. 네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud API 응답 상태 코드를 참조해 주십시오.

    Cloud DB for MySQL API 서비스에서 제공하는 API에 대한 설명은 다음과 같습니다.

    API 설명
    addCloudMysqlDatabaseList Cloud DB for MySQL 인스턴스에 Database 추가
    addCloudMysqlUserList Cloud DB for MySQL 인스턴스에 DB User 추가
    changeCloudMysqlServerSpec Cloud DB for MySQL 인스턴스의 DB 서버 스펙 변경
    changeCloudMysqlUserList Cloud DB for MySQL 인스턴스의 DB User 수정
    createCloudMysqlInstance Cloud DB for MySQL 인스턴스 생성
    createCloudMysqlRecoveryInstance Cloud DB for MySQL 인스턴스에 Recovery 서버 인스턴스 생성
    createCloudMysqlSlaveInstance Cloud DB for MySQL 인스턴스에 Slave 서버 인스턴스 생성
    deleteCloudMysqlDatabaseList Cloud DB for MySQL 인스턴스의 Database 삭제
    deleteCloudMysqlInstance Cloud DB for MySQL 인스턴스 삭제
    deleteCloudMysqlServerInstance Cloud DB for MySQL 서버 인스턴스 삭제
    deleteCloudMysqlUserList Cloud DB for MySQL 인스턴스의 DB User 삭제
    exportBackupToObjectStorage Cloud DB for MySQL 인스턴스의 백업 파일을 Object Storage로 전송
    exportDbServerLogToObjectStorage Cloud DB for MySQL 인스턴스의 데이터베이스 서버 로그 파일을 Object Storage로 전송
    getCloudMysqlBackupDetailList Cloud DB for MySQL 인스턴스의 백업 상세 리스트 조회
    getCloudMysqlBackupList Cloud DB for MySQL 인스턴스의 백업 리스트 조회
    getCloudMysqlDatabaseList Cloud DB for MySQL 인스턴스의 Database 리스트 조회
    getCloudMysqlEventHistoryList Cloud DB for MySQL 인스턴스의 이벤트 내역 리스트 조회
    getCloudMysqlImageProductList Cloud DB for MySQL 상품 코드 리스트 조회
    getCloudMysqlInstanceDetail Cloud DB for MySQL 인스턴스 상세 정보 조회
    getCloudMysqlInstanceList Cloud DB for MySQL 인스턴스 리스트 조회
    getCloudMysqlProductList 사용 가능한 Cloud DB for MySQL 서버 스펙 코드 리스트 조회
    getCloudMysqlRecoveryTime Cloud DB for MySQL 인스턴스의 복원이 가능한 시간을 조회
    getCloudMysqlTargetSubnetList 사용할 수 있는 Subnet 리스트를 조회
    getCloudMysqlTargetVpcList 사용할 수 있는 VPC 리스트를 조회
    getCloudMysqlUserList Cloud DB for MySQL 인스턴스의 DB User 리스트 조회
    getDbServerLogList Cloud DB for MySQL 인스턴스의 데이터베이스 서버 로그 리스트 조회
    rebootCloudMysqlServerInstance Cloud DB for MySQL 서버 인스턴스 재시작

    Cloud DB for MySQL API에 대한 사용자의 이해를 돕기 위해 다양한 연관 리소스를 제공하고 있습니다.