最近更新时间:2022.12.09 17:18:33
首次发布时间:2022.09.22 21:18:51
调用 CreateAllowList 接口创建白名单。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
AllowListName | String | 是 | test | 白名单名称,名称需同时满足如下要求:
|
AllowListDesc | String | 否 | test | 白名单的备注信息,长度不可超过 200 个字符。 |
AllowListType | String | 否 | IPv4 | 白名单内的 IP 地址类型。当前仅支持 IPv4 地址。 |
AllowList | String | 是 | 10.1.1.1,10.2.3.0/24 | 输入 IP 地址或 CIDR 格式的 IP 地址段。 说明
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
AllowListId | String | acl-d1fd76693bd54e658912e7337d5b**** | 白名单 ID 。 |
POST /?Action=CreateAllowList&Version=2018-01-01 HTTP/1.1 Accept: application/json Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20180614T114308Z Authorization: HMAC-SHA256 Credential=AKIAIAGMBG4SXSQQ****/20180614/cn-beijing/rds_mysql/request, SignedHeaders=accept;content-type;host;x-date, Signature=6a593bf5f59e7c1109fb205c739d1cff4c672fe2d251963f4d48c8701d16**** {"AllowListName":"test","AllowList": "10.1.1.1,10.2.3.0/24"}
正常返回示例
{ "ResponseMetadata": { "RequestId": "20220916143231010225099008069A****", "Action": "CreateAllowList", "Version": "2018-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": { "AllowListId": "acl-d1fd76693bd54e658912e7337d5b****" } }