Call the SyncAllowList API to synchronize the IPs of security groups bound to the whitelist.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
AllowListId | String | Yes | acl-7cc722a6fd794193b71948613758**** | The ID of the whitelist that needs to be synchronized. |
DryRun | Boolean | No | false | Whether to preview changes to the security groups in the whitelist. Valid values:
tip This parameter is required. |
Name | Type | Example | Description |
|---|---|---|---|
ChangeObjects | Object[] | null | Information about changes to the security groups bound to the whitelist. tip When the request parameter |
AddedIpList | String[] | null | The newly added IPs in the security group. If no IPs are added, the value is null. |
BindMode | String | AssociateEcsIp | The mode of associating a security group. Valid values:
|
HasChanged | Boolean | false | Whether there are changes in the IP addresses within the security group. Valid values:
|
HasDeleted | Boolean | false | Whether any IP addresses have been removed from the security group. Valid values:
|
NewIpList | String[] | [ "0.0.0.0/0"
] | The collection of IPs in the security group after synchronization. |
OldIpList | String[] | [ "0.0.0.0/0"
] | The collection of IPs in the security group before synchronization. |
RemovedIpList | String[] | null | The removed IPs from the security group. If no IPs are removed, the value is null. |
SecurityGroupId | String | sg-2zecpzrl456v4610wgmq2**** | The ID of the security group. |
SecurityGroupName | String | SecurityGroup_Test | The name of the security group. |
POST /?Action=SyncAllowList&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds-mysql.cn-beijing.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "AllowListId": "acl-7cc722a6fd794193b71948613758****", "DryRun": false }
{ "ResponseMetadata": { "RequestId": "2025030712131826F34509F381596F3CC0-c6c4ad", "Action": "SyncAllowList", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": { "ChangeObjects": null } }
For more details, refer to Error codes.