CreateRdsPostgreSQLDataSource - 创建 RDS PostgreSQL 数据源
该接口用于创建 RDS PostgreSQL 数据源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
oceanbase:CreateRdsPostgreSQLDataSource |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
数据源的名称。 |
data_name |
| InstanceId |
string |
是 |
数据库实例的 ID。 |
g_abcdefj*** |
| DatabaseName |
string |
是 |
数据库的名称。 |
db_name |
| UserName |
string |
是 |
数据库用户的名称。 |
user_name |
| Password |
string |
是 |
数据库用户的密码,需要使用 Base64 编码。 |
cGFzc193b3JK |
| Description |
string |
否 |
自定义描述信息。 |
this is a test database |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| Success |
boolean |
是否调用成功。 |
true |
| ErrorDetail |
object |
错误详情。 |
|
| Code |
string |
错误码。 |
INNER_ERROR |
| Level |
string |
错误等级,包括 FATAL、ERROR、WARNING 和 CRITICAL。 |
ERROR |
| Message |
string |
错误描述。 |
A system error occurred. |
| ExtraContext |
object |
用于填充 Message 中的占位符。 |
|
|
any |
用于填充 Message 中的占位符。 |
null |
|
| MessageMcmsKey |
string |
错误信息的 Key。 |
null |
| MessageMcmsContext |
object |
用于填充 MessageMcmsKey 中的占位符。 |
|
|
string |
用于填充 MessageMcmsKey 中的占位符。 |
null |
|
| Reason |
string |
错误原因。 |
null |
| ReasonMcmsKey |
string |
错误原因的 Key。 |
null |
| ReasonMcmsContext |
object |
错误原因的上下文。 |
|
|
string |
错误原因的上下文。 |
null |
|
| Proposal |
string |
建议。 |
null |
| ProposalMcmsKey |
string |
建议内容的 Key。 |
null |
| ProposalMcmsContext |
object |
建议内容的上下文。 |
|
|
string |
建议内容的上下文。 |
null |
|
| UpstreamErrorDetail |
any |
上游错误详情,用于处理 HTTP 请求。 |
null |
| Code |
string |
错误码。 |
INNER_ERROR |
| Message |
string |
错误描述。 |
A system error occurred. |
| Advice |
string |
建议。 |
Contact the administrator. |
| RequestId |
string |
请求 ID。 |
EE205C00-30E4-****-****-87E3A8A2AA0C |
| PageNumber |
integer |
页序号,分页查询时生效。 |
1 |
| PageSize |
integer |
页大小,分页查询时生效。 |
10 |
| TotalCount |
integer |
总数,分页查询时生效。 |
100 |
| Cost |
string |
请求耗时,单位为秒。 |
30 |
| Data |
string |
数据源的 ID。 |
e_5anwndq |
示例
正常返回示例
JSON格式
{
"Success": true,
"ErrorDetail": {
"Code": "INNER_ERROR",
"Level": "ERROR",
"Message": "A system error occurred.",
"ExtraContext": {
"key": "null"
},
"MessageMcmsKey": "null",
"MessageMcmsContext": {
"key": "null"
},
"Reason": "null",
"ReasonMcmsKey": "null",
"ReasonMcmsContext": {
"key": "null"
},
"Proposal": "null",
"ProposalMcmsKey": "null",
"ProposalMcmsContext": {
"key": "null"
},
"UpstreamErrorDetail": "null"
},
"Code": "INNER_ERROR",
"Message": "A system error occurred.",
"Advice": "Contact the administrator.",
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 100,
"Cost": "30",
"Data": "e_5anwndq"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。