huawei-cloud-api-definitions-DAS 0.1.20260918

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"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"]},"SetTransactionSwitchResp":{"properties":{"switch_status":{"description":"开关状态","enum":["Enabled","Disabled"],"type":"string"}},"required":["switch_status"],"type":"object"},"TransactionSwitchReq":{"properties":{"datastore_type":{"description":"数据库类型。仅支持MySQL","enum":["MySQL"],"example":"MySQL","type":"string"},"switch_status":{"description":"开关状态","enum":["Enabled","Disabled"],"example":"Enabled","type":"string"}},"required":["switch_status","datastore_type"],"type":"object"}},"description":null,"group_id":"7f831fc0dd494cfe86eff0b79e4f207d","host":"das.cn-north-4.myhuaweicloud.com","id":"3bd2a3b9d9674966892cfbdd34857322","info_version":"v3","method":"post","name":"ChangeTransactionSwitchStatus","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/transaction/switch":{"post":{"description":"开启/关闭历史事务开关,仅支持MySQL引擎,并且依赖开启全量SQL或者慢SQL功能","operationId":"ChangeTransactionSwitchStatus","parameters":[{"description":"项目ID","in":"path","name":"project_id","required":true,"type":"string"},{"description":"实例ID","in":"path","name":"instance_id","required":true,"type":"string"},{"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"},{"description":"开关状态","in":"body","name":"ChangeTransactionSwitchStatusRequestBody","required":true,"schema":{"$ref":"#/definitions/TransactionSwitchReq"}}],"responses":{"200":{"description":"Success.","schema":{"$ref":"#/definitions/SetTransactionSwitchResp"}},"400":{"description":"Client error.","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"Client error.","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"开启/关闭历史事务开关","tags":["云DBA"],"x-das-is-publish":"#TransactionSwitchOpen_Placeholder#","x-is-registered":"Y","x-request-examples-1":{"datastore_type":"MySQL","switch_status":"Enabled"},"x-request-examples-description-1":"开启/关闭历史事务开关","x-request-examples-text-1":{"datastore_type":"MySQL","switch_status":"Enabled"},"x-request-examples-url-1":"POST https://das.cn-north-1.myhuaweicloud.com/v3/054c630ff780d4cc2f40c00d7f6fb21d/instances/d871e13ee1044e21a473330cd67047cbin01/transaction/switch","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"}