huawei-cloud-api-definitions-CSS 0.1.20240830

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"SetRDSBackupCnfReq":{"properties":{"deleteAuto":{"description":"表示关闭自动创建快照策略时,是否需要清除所有自动创建的快照。 默认为“false”,表示不会删除之前已自动创建的快照。 设置为true,表示在关闭自动创建快照策略的同时,删除所有已创建的快照。","type":"string"},"enable":{"description":"是否开启自动创建快照策略。\n- true:表示开启自动创建快照策略。\n- false:表示关闭自动创建快照策略。","example":"true","type":"string"},"indices":{"description":"需要备份的索引名。*代表所有索引。","example":"*","type":"string"},"keepday":{"description":"自定义设置快照保留的天数,范围是1~90。系统在半点时刻会自动删除超过保留天数的快照。\n\n> 当enable为true时该字段为必选字段","example":7,"type":"integer"},"period":{"description":"每天创建快照的时刻,只支持整点,后面需加上时区,格式为“HH:mm z”,“HH:mm”表示整点时间,“z”表示时区。\n比如“00:00 GMT+08:00”、“01:00 GMT+08:00”等。\n\n> 当enable为true时该字段为必选字段","example":"16:00 GMT+08:00","type":"string"},"prefix":{"description":"自动创建快照的名称前缀,需要用户自己手动输入。\n只能包含1~32位小写字母、数字、中划线或者下划线,并且以小写字母开头。\n\n> 当enable为true时该字段为必选字段","example":"snapshot","type":"string"}},"required":["enable"]}},"description":null,"group_id":"c917c7a19aa04328b7e47a1def0e0acd","host":"css.cn-north-4.myhuaweicloud.com","id":"04bd3f94e8df42e9abaf8236381f87fc","info_version":"v1","method":"post","name":"CreateAutoCreatePolicy","parameters":{},"paths":{"/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy":{"post":{"description":"该接口用于设置自动创建快照,默认一天创建一个快照。","operationId":"CreateAutoCreatePolicy","parameters":[{"description":"项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。","in":"path","name":"project_id","required":true,"type":"string","x-example":"6204a5bd270343b5885144cf9c8c158d"},{"description":"指定要自动创建快照的集群ID。","in":"path","name":"cluster_id","required":true,"type":"string","x-example":"ea244205-d641-45d9-9dcb-ab2236bcd07e"},{"in":"body","name":"SetRDSBackupCnfReq","required":true,"schema":{"$ref":"#/definitions/SetRDSBackupCnfReq"}}],"responses":{"200":{"description":"请求已成功。"},"406":{"description":"服务器无法根据客户端请求的内容特性完成请求。"}},"summary":"设置自动创建快照策略","tags":["快照管理接口"],"x-apiexplorer-hide":"N","x-is-registered":"Y","x-publishpath":"","x-request-examples-1":{"deleteAuto":"false","enable":"true","keepday":7,"period":"16:00 GMT+08:00","prefix":"snapshot"},"x-request-examples-description-1":"设置自动创建快照策略。","x-request-examples-text-1":{"deleteAuto":"false","enable":"true","keepday":7,"period":"16:00 GMT+08:00","prefix":"snapshot"},"x-request-examples-url":"POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/ea244205-d641-45d9-9dcb-ab2236bcd07e/index_snapshot/policy","x-request-examples-url-1":"POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/4f3deec3-efa8-4598-bf91-560aad1377a3/index_snapshot/policy","x-support-sdk":"Y"}}},"product_short":"CSS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"设置自动创建快照策略","tags":"快照管理接口","uri":null,"version":"2.0"}