VPC 환경에서 이용 가능합니다.
개요
Cloud DB for MySQL 인스턴스에 DB User를 추가합니다.
요청
요청 파라미터
파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
---|---|---|---|---|
regionCode | No | String | 리전 코드
|
|
cloudMysqlInstanceNo | Yes | String | Cloud DB for MySQL 인스턴스 번호
|
|
cloudMysqlUserList.N.name | Yes | List<String> | 영문자, 숫자, 언더바(_), 하이픈(-) 문자만 허용하며 반드시 영어로 시작해야 함
|
MySQL 유저 ID |
cloudMysqlUserList.N.hostIp | Yes | List<String> | MySQL 유저 host
|
|
cloudMysqlUserList.N.password | Yes | List<String> | 영어, 숫자, 특수문자 3개 항목에 대해 1자 이상 포함되어야 함
|
MySQL 유저 패스워드 |
cloudMysqlUserList.N.authority | Yes | List<String> | MySQL 유저 권한
|
|
cloudMysqlUserList.N.isSystemTableAccess | No | List<Boolean> | 시스템 테이블 접근 가능 여부
|
|
output | No | String | 응답 결과의 포맷 타입
|
예시
요청 예시
ncloud vmysql addCloudMysqlUserList --regionCode KR --cloudMysqlInstanceNo ****890 --cloudMysqlUserList "name='testuser', hostIp='%', password='********', authority='DDL'"
응답 예시
<addCloudMysqlUserListResponse>
<requestId>d35c01cf-e77a-44a9-a2b9-1fd1f9572750</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</addCloudMysqlUserListResponse>