AllocatePublicNetworkAddress
调用AllocatePublicNetworkAddress接口为MongoDB实例申请公网连接地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
DBInstanceId | String | 是 | dds-bpxxxxxxxx |
实例ID。 说明 当本参数传入的是分片集群实例ID时,还需要传入NodeId参数。
|
Action | String | 否 | AllocatePublicNetworkAddress |
要执行的操作,取值:AllocatePublicNetworkAddress。 |
NodeId | String | 否 | s-bpxxxxxxxx |
分片集群实例中Mongos节点ID、Shard节点ID或ConfigServer节点ID。 说明
|
AccessKeyId | String | 否 | LTAIgbTGpxxxxxx |
阿里云颁发给用户的访问服务所用的密钥ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | B6D17591-B48B-4D31-9CD6-9B9796B2270A |
请求ID。 |
示例
请求示例
http(s)://mongodb.aliyuncs.com/?Action=AllocatePublicNetworkAddress
&DBInstanceId=dds-bpxxxxxxxx
&<公共请求参数>
正常返回示例
XML
格式
<AllocatePublicNetworkAddressResponse>
<RequestId>B6D17591-B48B-4D31-9CD6-9B9796B2270A</RequestId>
</AllocatePublicNetworkAddressResponse>
JSON
格式
{
"RequestId":"B6D17591-B48B-4D31-9CD6-9B9796B2270A"
}
错误码
访问错误中心查看更多错误码。
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论