为云数据库 Tair(兼容 Redis)实例申请公网连接地址。
接口说明
该 API 对应的控制台操作请参见申请公网连接地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
kvstore:AllocateInstancePublicConnection |
create |
*DBInstance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID。 |
r-bp1zxszhcgatnx**** |
| ConnectionStringPrefix |
string |
是 |
公网连接地址的前缀,需由小写英文字母与数字组成,以小写字母开头,长度为 8~40 个字符。 说明
公网连接地址格式为: |
r-bp1zxszhcgatnx**** |
| Port |
string |
是 |
实例的服务端口号,取值范围:1024~65535。 |
6379 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
20C8341E-B5AD-4B24-BD82-D73241522ABF |
示例
正常返回示例
JSON格式
{
"RequestId": "20C8341E-B5AD-4B24-BD82-D73241522ABF"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingInstanceId | InstanceId is mandatory for this action. | |
| 400 | MissingConnectionString | ConnectionStringPrefix is mandatory for this action. | |
| 400 | MissingPort | Port is mandatory for this action. | |
| 400 | NetTypeExists | Specified net type already existed. | 指定的网络类型已经存在 |
| 400 | InvalidConnectionString.Format | Specified connection string is not valid. | 连接串非法,请选用新的 |
| 400 | NewSSLAlreadyEnabled | new SSL have already been enabled. | 实例已经启用了新的SSL |
| 403 | SSLNotSupportNetType | SSL instance does not support create public network. | SSL实例不支持创建公共网络。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。