文档中心 > API类目 > 聚石塔API

taobao.rds.db.createaccount (rds创建数据库账户)

rds创建数据库账户

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 RequestDbAccountModel 可选 入参对象
  • └ account_desc
  • String
  • 可选
  • 测试账户
  • 账户描述
  • └ account_name
  • String
  • 可选
  • xiaomao123
  • 账户名称
  • └ db_name
  • String
  • 可选
  • xiaomao_test
  • 新建db名称
  • └ instance_name
  • String
  • 可选
  • rm-rxcdxvdf12324
  • rds实例名称
  • └ password
  • String
  • 可选
  • !QAZ2ssd
  • 账户密码

响应参数

名称 类型 示例值 描述
result ResultSet {} result
  • └ results
  • String []
  • {}
  • results
  • └ total_results
  • Number
  • {}
  • totalResults
  • └ exception
  • String
  • null
  • exception
  • └ error_code
  • String
  • null
  • errorCode
  • └ error_msg
  • String
  • null
  • errorMsg

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RdsDbCreateaccountRequest req = new RdsDbCreateaccountRequest();
RdsDbCreateaccountRequest.RequestDbAccountModel obj1 = new RdsDbCreateaccountRequest.RequestDbAccountModel();
obj1.setAccountDesc("测试账户");
obj1.setAccountName("xiaomao123");
obj1.setDbName("xiaomao_test");
obj1.setInstanceName("rm-rxcdxvdf12324");
obj1.setPassword("!QAZ2ssd");
req.setParam0(obj1);
RdsDbCreateaccountResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rds_db_createaccount_response>
    <result>
        <results>
            <string>{}</string>
        </results>
        <total_results>{}</total_results>
        <exception>null</exception>
        <error_code>null</error_code>
        <error_msg>null</error_msg>
    </result>
</rds_db_createaccount_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部