调用 DescribeInstanceAllowLists 接口查询目标实例绑定的白名单信息。
同步请求。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | vedbm-ca12cbqv**** | 实例 ID。 说明 您可以调用 DescribeDBInstances 接口查询目标地域下所有实例的基本信息,包括实例 ID。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
AuthorizedAllowLists | Array of AllowListInfo | 请参见返回示例。 | 已绑定的白名单信息列表,详细信息,请参见 AllowListInfo。 |
UnauthorizedAllowListNum | Integer | 0 | 无权限的白名单数量。 |
POST /?Action=DescribeInstanceAllowLists&Version=2022-01-01 HTTP/1.1 Accept: application/json Content-Type: application/json Host: vedbm.volcengineapi.com X-Date: 20220614T114308Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20220614/cn-beijing/vedbm/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645**** { "InstanceId": "vedbm-gzwdsf9b****" }
{ "ResponseMetadata": { "RequestId": "202409021650558653A3C0C89983125907-cc5e22", "Action": "DescribeInstanceAllowLists", "Version": "2022-01-01", "Service": "vedbm", "Region": "cn-beijing" }, "Result": { "AuthorizedAllowLists": [ { "AllowListDesc": "test-allowlist", "AllowListIPNum": 1, "AllowListId": "acl-1d91b0eb97484131822e6368fb1e****", "AllowListName": "allowlist", "AllowListType": "IPv4", "AssociatedInstanceNum": 1, "ProjectName": "default" }, { "AllowListDesc": "", "AllowListIPNum": 3, "AllowListId": "acl-a08f0804b7c24a01ae861ac16db3****", "AllowListName": "dbw_unique_group_name", "AllowListType": "IPv4", "AssociatedInstanceNum": 73, "ProjectName": "default" } ], "UnauthorizedAllowListNum": 0 } }
更多详情,请参见错误码。