最近更新时间:2024.04.26 11:09:08
首次发布时间:2022.04.12 11:06:53
调用 DescribeAllowListDetail 接口查询目标白名单组的详细信息,包括 IP 地址和绑定的实例详情。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
AllowListId | String | 是 | acl-b2a5bf3e471c433096232082c199**** | 白名单 ID。 说明 您可以调用 DescribeAllowLists 接口查询指定地域下所有的白名单列表信息,包括白名单 ID。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
AllowListId | String | acl-d1fd76693bd54e658912e7337d5b**** | 白名单 ID。 |
AllowListName | String | test | 白名单名称。 |
AllowListDesc | String | test | 白名单的备注。 |
AllowListType | String | IPv4 | 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。 |
AllowList | String | 10.1.***.***,10.2.***.***/24 | 白名单内的 IP 地址列表。 |
AssociatedInstances | Array of AssociatedInstanceInfo | 请参见返回示例。 | 已绑定当前白名单的实例信息。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
VPC | String | vpc-2743n1ihbxla87fap8tap**** | 实例所属的私有网络 ID。 |
InstanceId | String | mongo-replica-e405f8e2**** | 已绑定当前白名单的实例 ID。 |
InstanceName | String | test | 已绑定当前白名单的实例名称。 |
POST https://mongodb.volcengineapi.com/?Action=DescribeAllowListDetail&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=**** { "AllowListId": "acl-04908986ad034ac0ba1fb1e3a754****" }
{ "ResponseMetadata": { "RequestId": "202203161507260102252431180088****", "Action": "DescribeAllowListDetail", "Version": "2022-01-01", "Service": "mongodb", "Region": "cn-beijing" }, "Result": { "AllowList": "10.1.***.***,10.2.***.***/24", "AllowListDesc": "test", "AllowListId": "acl-d1fd76693bd54e658912e7337d5b****", "AllowListName": "test", "AllowListType": "IPv4", "AssociatedInstances": [ { "InstanceId": "mongo-replica-e405f8e2****", "InstanceName": "test", "VPC": "vpc-3tgjebmlgq4e8i4m****" } ] } }