Documentation Index

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

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

getCloudMysqlDatabaseList

Prev Next

VPC環境で利用できます。

概要

Cloud DB for MySQLのインスタンスの Databaseリストを照会します。

リクエスト

リクエストパラメータ

パラメータ名 要否 タイプ 制約事項 説明
regionCode No String - リージョンコード
regionCodeは、getRegionListアクションを通じて取得可能
Default: getRegionList照会結果の最初のリージョンを選択
cloudMysqlInstanceNo Yes String - Cloud DB for MySQLのインスタンス番号
cloudMysqlInstanceNoは、getCloudMysqlInstanceListアクションを通じて取得可能
pageNo Yes Integer Min: 0 - ページング結果のページ番号
結果値を、pageNo、pageSizeを利用してページング処理可能
pageSize Yes Integer Min: 1 - ページング時に表示する各ページのサイズ
結果値を、pageNo、pageSizeを利用してページング処理可能
output No String - レスポンス結果のフォーマットタイプ
Options : xml | json
Default : json

レスポンス

レスポンスデータのタイプ

  • CloudMysqlDatabaseListタイプ
CloudMysqlDatabaseList extends CommonResponse
private Integer totalRows;
private List<CloudMysqlDatabase> cloudMysqlDatabaseList = new ArrayList<>();
CloudMysqlDatabase
private String databaseName;

リクエスト例

ncloud vmysql getCloudMysqlDatabaseList --regionCode KR --cloudMysqlInstanceNo ****890 --pageNo 0 --pageSize 10

レスポンス例

<getCloudMysqlDatabaseListResponse>
    <requestId>32993542-96c8-4899-91d8-3a273960b79c</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>1</totalRows>
    <cloudMysqlDatabaseList>
        <cloudMysqlDatabase>
            <databaseName>mysql_test</databaseName>
        </cloudMysqlDatabase>
    </cloudMysqlDatabaseList>
</getCloudMysqlDatabaseListResponse>