AllocateInstancePublicConnection
调用AllocateInstancePublicConnection为Redis实例申请外网连接地址。
该API对应的控制台操作请参见外网连接。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
ConnectionStringPrefix | String | 是 | r-bp1xxxxxxxxxxxxx |
外网连接地址的前缀,需由小写英文字母与数字组成,以小写字母开头,长度为8~64个字符。 Redis外网连接地址格式为: |
InstanceId | String | 是 | r-bp1xxxxxxxxxxxxx |
实例ID。 |
Port | String | 是 | 6379 |
Redis服务端口,取值范围:1024~65535。 |
Action | String | 否 | AllocateInstancePublicConnection |
系统规定参数,取值:AllocateInstancePublicConnection。 |
AccessKeyId | String | 否 | Lxxxxxxxxxxxxxxw |
阿里云颁发给用户的访问服务所用的密钥ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 20C8341E-B5AD-4B24-BD82-D73241522ABF |
请求ID。 |
示例
请求示例
https://r-kvstore.aliyuncs.com/
?Action=AllocateInstancePublicConnection
&ConnectionStringPrefix=r-bp1xxxxxxxxxxxxx
&InstanceId=r-bp1xxxxxxxxxxxxx
&Port=6379
&<公共请求参数>
正常返回示例
XML
格式
<AllocateInstancePublicConnectionResponse>
<RequestId>20C8341E-B5AD-4B24-BD82-D73241522ABF</RequestId>
</AllocateInstancePublicConnectionResponse>
JSON
格式
{
"RequestId":"20C8341E-B5AD-4B24-BD82-D73241522ABF"
}
错误码
访问错误中心查看更多错误码。
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论