调用 AssociateAllowList 接口将目标 MongoDB 实例绑定到指定 IP 白名单。
异步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
AllowListIds | String[] | 是 | ["acl-c2402ba601374808aeb19d06acc2****","acl-b2a5bf3e471c433096232082c199****"] | 需要绑定实例的白名单 ID。 说明
|
InstanceIds | String[] | 是 | ["mongo-shard-011d2479****"] | 需要绑定白名单的实例 ID。 说明
|
无。
POST https://mongodb.volcengineapi.com/?Action=AssociateAllowList&Version=2022-01-01 HTTP/1.1 Host: mongodb.volcengineapi.com Content-Type: application/json; charset=utf-8 X-Date: 20201103T104027Z Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/mongodb/request,SignedHeaders=content-type;host;x-date,Signature=**** { "InstanceIds": [ "mongo-shard-011d2479****" ], "AllowListIds": [ "acl-c2402ba601374808aeb19d06acc2****,acl-b2a5bf3e471c433096232082c199****" ] }
{ "ResponseMetadata": { "RequestId": "20220316164600010225243081008D****", "Action": "AssociateAllowList", "Version": "2022-01-01", "Service": "mongodb", "Region": "cn-beijing" }, "Result": null }
更多详情,请参见错误码。