VPC環境で利用できます。
Cloud DB for MySQLインスタンスに登録されている DB User情報を変更します。
リクエスト
リクエスト形式を説明します。リクエスト形式は次の通りです。
メソッド | URI |
---|---|
GET, POST | /changeCloudMysqlUserList |
リクエストヘッダ
Cloud DB for MySQL (VPC) APIで共通して使用されるヘッダの詳細は、Cloud DB for MySQL (VPC)のリクエストヘッダをご参照ください。
リクエストパラメータ
パラメータの説明は次の通りです。
フィールド | タイプ | 必須の有無 | 説明 |
---|---|---|---|
regionCode |
String | Optional | リージョンコード
|
cloudMysqlInstanceNo |
String | Required | Cloud DB for MySQLインスタンス番号 |
cloudMysqlUserList.N.name |
List<String> | Required | DB User情報変更対象のユーザー IDリスト
|
cloudMysqlUserList.N.hostIp |
List<String> | Required | MySQL Serverにアクセスする IPアドレスリスト
|
cloudMysqlUserList.N.password |
List<String> | Optional | DB Userアカウントパスワード
|
cloudMysqlUserList.N.authority |
List<String> | Required | DB User権限
|
cloudMysqlUserList.N.isSystemTableAccess |
List<Boolean> | Optional | システムテーブルにアクセス可能かどうか
|
responseFormatType |
String | Optional | レスポンス結果の形式
|
リクエスト例
リクエストのサンプルコードは次の通りです。
curl --location --request GET 'https://ncloud.apigw.ntruss.com/vmysql/v2/changeCloudMysqlUserList
?regionCode=KR
&cloudMysqlInstanceNo=****890
&cloudMysqlUserList.1.name=testuser
&cloudMysqlUserList.1.hostIp=%
&cloudMysqlUserList.1.password=********
&cloudMysqlUserList.1.authority=CRUD
&cloudMysqlUserList.1.isSystemTableAccess=true'
--header 'x-ncp-apigw-timestamp: {Timestamp}'
--header 'x-ncp-iam-access-key: {Access Key}'
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
レスポンス
レスポンス形式を説明します。
レスポンスステータスコード
NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、Ncloud APIのレスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
responseFormatType=json
の場合
{
"changeCloudMysqlUserListResponse": {
"requestId": "eb46ade8-****-****-****-133bcbc382c1",
"returnCode": "0",
"returnMessage": "success"
}
}
responseFormatType=xml
(デフォルト)の場合
<?xml version="1.0" encoding="UTF-8"?>
<changeCloudMysqlUserListResponse>
<requestId>eb46ade8-****-****-****-133bcbc382c1</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</changeCloudMysqlUserListResponse>