Security group rules can be exported to a JSON file for local backup.

Procedure

  1. Log on to the ECS console.
  2. Click Security Groups in the left-side navigation pane.
  3. Select a region.
  4. On the Security Groups list page, find the target security group, and then click Add Rules in the Actions column.


  5. Click Export Rules to download and save the rules to a local JSON file.


    Note The JSON file name takes the following format:

    ecs_${region_id}_${groupID}.json

    If regionID is cn-qingdao, and groupID is sg-123, then the exported JSON file name is ecs_cn-qingdao_sg-123.json.