简体   繁体   中英

Need to delete only IP address form AWS WAF IP-set using cmd

Im using a CLI cmd to delete a IP address from AWS WAF IP-set, but the cmd deleting a whole IP-sets, I just need to delete a IP address not Ip-sets, give me a solution for this, I need this very emergency, I have hope I will get the solution from stack overflow frnds.

 aws wafv2 delete-ip-set --name sam_pro --scope REGIONAL --id c3a24360-4f25-4399-aac5-c4967b451492 --lock-token f38b26a3-e3a0-4575-a3e7-4b2b74752dad 

If you want to delete individual IP within a IP set, you have to update the entire set with the IP you want to remove. It's structured in JSON. The command delete-ip-set deletes entire set, not individual IP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM