Documentation Index

Fetch the complete documentation index at: https://cli-fin.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getCloudMysqlDatabaseList

Prev Next

Cloud DB for MySQL 인스턴스의 데이터베이스 목록을 조회합니다.

구문

getCloudMysqlDatabaseList 구문은 다음과 같습니다.

./ncloud vmysql getCloudMysqlDatabaseList \
    --cloudMysqlInstanceNo <instance-no> \
    --pageNo <page-no> \
    --pageSize <page-size> \
    [--regionCode <FKR>] \
    [--output <json|xml>]

옵션

getCloudMysqlDatabaseList 실행 시 지정할 수 있는 옵션을 설명합니다.

필수 옵션

getCloudMysqlDatabaseList의 필수 옵션입니다.

옵션 타입 필수 여부 설명
--cloudMysqlInstanceNo String Required Cloud DB for MySQL 인스턴스 번호
--pageNo Integer Required 페이지 번호
  • 0~N
--pageSize Integer Required 페이지당 항목 수
  • 1~N

공통 옵션

vmysql 명령에서 공통으로 사용하는 옵션에 대한 정보는 Cloud DB for MySQL 옵션을 참조해 주십시오.

예시

Cloud DB for MySQL 데이터베이스 목록 조회 요청이 성공하면 각 데이터베이스의 이름이 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vmysql getCloudMysqlDatabaseList \
    --cloudMysqlInstanceNo 12345678 \
    --pageNo 0 \
    --pageSize 10 \
    --regionCode FKR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "getCloudMysqlDatabaseListResponse": {
    "totalRows": 3,
    "cloudMysqlDatabaseList": [
      {
        "databaseName": "mysql-01"
      },
      {
        "databaseName": "mysql_test1"
      },
      {
        "databaseName": "mysql_test2"
      }
    ],
    "requestId": "c52eba25-d69c-4812-99d3-ba737e0152d4",
    "returnCode": "0",
    "returnMessage": "success"
  }
}