You need to enable JavaScript to run this app.
导航
DescribeInstanceAllowLists
最近更新时间:2024.11.08 10:12:21首次发布时间:2024.11.08 10:12:21

调用 DescribeInstanceAllowLists 接口查询目标实例绑定的白名单信息。

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述

InstanceId

String

vedbm-ca12cbqv****

实例 ID。

说明

您可以调用 DescribeDBInstances 接口查询目标地域下所有实例的基本信息,包括实例 ID。

返回参数

名称类型示例值描述
AuthorizedAllowListsArray of AllowListInfo请参见返回示例已绑定的白名单信息列表,详细信息,请参见 AllowListInfo
UnauthorizedAllowListNumInteger0无权限的白名单数量。

请求示例

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
    }
}

错误码

更多详情,请参见错误码