Security group rules can be exported to a JSON file for local backup.
- Log on to the ECS console.
- Click Security Groups in the left-side navigation pane.
- Select a region.
- On the Security Groups list page, find the target security group, and then click Add Rules in the Actions column.
- Click Export Rules to download and save the rules to a local JSON file.
Note The JSON file name takes the following format:
If regionID is cn-qingdao, and groupID is sg-123, then the exported JSON file name is ecs_cn-qingdao_sg-123.json.