为上下文服务指定物理 ReplicaSet 开通公网连接
接口说明
该接口用于在回滚任务前,确认无任何活跃连接以保障操作安全。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| DBInstanceName |
string |
是 |
实例名称。 |
pxsp-********* |
| ConnectionStringPrefix |
string |
否 |
公网连接串前缀 |
pxc-************** |
| Port |
string |
否 |
端口 |
3306 |
| NodeType |
string |
否 |
目标节点类型:service 或 dashboard |
dn |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
Id of the request |
C458B1E8-1683-3645-B154-6BA32080EEA |
| Data |
object |
任务详情。 |
|
| DBInstanceId |
integer |
实例 ID |
pxsp-xxxxxxxxxx |
| DBInstanceName |
string |
实例 Id |
pxc-hzjasd**** |
| DBInstanceNetType |
integer |
地址链接串的网络类型 |
1 |
| Vip |
string |
策略防护的高防实例 IP。 |
https://anchashi.aliyun-inc.coM |
| ConnectionString |
string |
地址链接串 |
test2.polarx.huhehaote.rds.aliyuncs.com |
| Port |
string |
地址端口 |
3300 |
| TaskId |
integer |
任务 ID。 |
2209883 |
| NodeType |
string |
目标节点类型:service 或 dashboard |
service |
| Context0InstanceName |
string |
上下文服务实例名称 |
context0-example |
| AccessDeniedDetail |
object |
访问被拒绝的详细原因。 |
|
| AuthAction |
string |
说明如上。 |
xxx |
| AuthPrincipalType |
string |
说明如上。 |
222 |
| AuthPrincipalOwnerId |
string |
鉴权主体 OwnerId |
111 |
| AuthPrincipalDisplayName |
string |
请求中用于鉴权的身份标识。 |
xxx |
| PolicyType |
string |
策略类型 |
PRIORITY |
| NoPermissionType |
string |
NoPermissionType |
ImplicitDeny |
| EncodedDiagnosticMessage |
string |
编码诊断信息。 |
AQEAAAAAaKPfwjY0MzMyODRGLUZCQkQtNTA1RS04MUUxLTc5NTkzODk2MUIzMg== |
示例
正常返回示例
JSON格式
{
"RequestId": "C458B1E8-1683-3645-B154-6BA32080EEA",
"Data": {
"DBInstanceId": 0,
"DBInstanceName": "pxc-hzjasd****",
"DBInstanceNetType": 1,
"Vip": "https://anchashi.aliyun-inc.coM",
"ConnectionString": "test2.polarx.huhehaote.rds.aliyuncs.com",
"Port": "3300",
"TaskId": 2209883,
"NodeType": "service",
"Context0InstanceName": "context0-example"
},
"AccessDeniedDetail": {
"AuthAction": "xxx",
"AuthPrincipalType": "222",
"AuthPrincipalOwnerId": "111",
"AuthPrincipalDisplayName": "xxx",
"PolicyType": "PRIORITY",
"NoPermissionType": "ImplicitDeny",
"EncodedDiagnosticMessage": "AQEAAAAAaKPfwjY0MzMyODRGLUZCQkQtNTA1RS04MUUxLTc5NTkzODk2MUIzMg=="
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。