huawei-cloud-api-definitions-DAS 0.1.20260918

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"BatchSetSqlSwitchNewRequestBody":{"description":"批量设置SQL开关请求体","properties":{"engine_type":{"description":"数据库引擎类型","example":"mysql","type":"string"},"instance_ids":{"description":"实例ID列表","example":["12345"],"items":{"type":"string"},"type":"array"},"retention_hours":{"description":"保存时长","example":168,"format":"int64","type":"integer"},"switch_on":{"description":"是否开启","example":true,"type":"boolean"},"switch_type":{"description":"设置开关的类型,取值范围:fullsql、slowsql","example":"fullsql","type":"string"}},"required":["switch_on","engine_type","switch_type","instance_ids","retention_hours"],"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":"d8a8970ae0ac4990830c97618622b3e2","info_version":"v3","method":"post","name":"BatchSetSqlSwitchNew","parameters":{},"paths":{"/v3/{project_id}/instance/batch-set-sql-switch":{"post":{"description":"批量设置SQL开关","operationId":"BatchSetSqlSwitchNew","parameters":[{"description":"租户在某一Region下的项目ID","in":"path","name":"project_id","required":true,"type":"string"},{"description":"批量设置SQL开关请求体","in":"body","name":"BatchSetSqlSwitchNewRequestBody","required":true,"schema":{"$ref":"#/definitions/BatchSetSqlSwitchNewRequestBody"}}],"responses":{"200":{"description":"Success."},"400":{"description":"BadRequest.","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"InternalServerError.","schema":{"$ref":"#/definitions/ErrorResp"}}},"schemes":["https"],"summary":"批量设置SQL开关","tags":["APIG-SN-DAS"],"x-api-type":"open-api","x-is-registered":"Y","x-support-sdk":"Y"}}},"product_short":"DAS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量设置SQL开关","tags":"APIG-SN-DAS","uri":null,"version":"2.0"}