云数据库 RDS-设置跨区域备份策略:请求示例

时间:2024-12-20 17:08:15

请求示例

  • 更新MySQL或PostgreSQ L实例 的跨区域自动全量备份策略。
    PUT https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/backups/offsite-policy
    {
    	"policy_para": {
                    "backup_type": "auto",
    		"keep_days": 7,
    		"destination_region": "aaa",
    		"destination_project_id": "ba1f7fc8-3307-42a7-aa6f-42c8b9b8f85c"
    	}
    }
  • 关闭MySQL或PostgreSQL实例的跨区域自动全量备份策略。
    {
    	"policy_para": {
                    "backup_type": "auto",
    		"keep_days": 0,
    		"destination_region": "aaa",
    		"destination_project_id": "ba1f7fc8-3307-42a7-aa6f-42c8b9b8f85c"
    	}
    }
  • 更新SQL Server实例的跨区域备份策略。
    {
    	"policy_para": {
                    "backup_type": "all",
    		"keep_days": 7,
    		"destination_region": "aaa",
    		"destination_project_id": "ba1f7fc8-3307-42a7-aa6f-42c8b9b8f85c"
    	}
    }
  • 关闭SQL Server实例的跨区域备份策略。
    {
    	"policy_para": {
                    "backup_type": "all",
    		"keep_days": 0,
    		"destination_region": "aaa",
    		"destination_project_id": "ba1f7fc8-3307-42a7-aa6f-42c8b9b8f85c"
    	}
    }
support.huaweicloud.com/api-rds/rds_09_0014.html