{"base_path":"/","components":null,"consumes":"","definitions":{"CreateSnapshotResp":{"properties":{"success":{"description":"是否成功","type":"boolean"}},"type":"object"},"CreateSnapshotsRequestBody":{"properties":{"modules":{"description":"需要创建的snapshot类型,0表示元数据锁,1表示innodb等待锁,2表示最近发生的死锁","example":[2],"items":{"format":"int32","type":"integer"},"type":"array"}},"required":["modules"],"type":"object"},"ErrorResp":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]}},"description":null,"group_id":"7f831fc0dd494cfe86eff0b79e4f207d","host":"das.cn-north-4.myhuaweicloud.com","id":"9b83335a75f04f32ac5f77b84fd1f8a3","info_version":"v3","method":"post","name":"CreateSnapshots","parameters":{},"paths":{"/v3/{project_id}/connections/{connection_id}/instance/create-snapshot":{"post":{"consumes":["application/json"],"description":"创建快照","operationId":"CreateSnapshots","parameters":[{"description":"项目id","in":"path","name":"project_id","required":true,"type":"string"},{"description":"连接id","in":"path","name":"connection_id","required":true,"type":"string"},{"description":"需要的快照类型","in":"body","name":"CreateSnapshotsRequestBody","schema":{"$ref":"#/definitions/CreateSnapshotsRequestBody"}},{"description":"用户token","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"语言","enum":["zh-cn","en-us"],"in":"header","name":"X-Language","required":false,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"是否成功","examples":{"application/json":{"success":true}},"schema":{"$ref":"#/definitions/CreateSnapshotResp"}},"400":{"description":"BadRequest.","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"InternalServerError","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"创建快照","tags":["云DBA"],"x-api-type":"open-api","x-is-registered":"Y","x-request-examples-1":{"modules":[2]},"x-request-examples-description-1":"2表示最近死锁信息","x-request-examples-text-1":{"modules":[2]},"x-request-examples-url-1":"POST https://das.cn-north-1.myhuaweicloud.com/v3//63be57f43e114de790a9735d1c5bc95d/connections/dbfa1738-218a-470b-a191-1a9e0162fdca/instance/create-snapshot","x-support-sdk":"Y"}}},"product_short":"DAS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建快照","tags":"云DBA","uri":null,"version":"2.0"}