huawei-cloud-api-definitions-DAS 0.1.20260918

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"AddEmailTemplateRequestBody":{"properties":{"datastore_type":{"description":"数据库类型","example":"MySQL","maxLength":64,"minLength":1,"type":"string"},"email":{"description":"邮箱地址","example":"test@example.com","maxLength":1024,"minLength":0,"type":"string"},"group_id":{"description":"实例组ID列表","example":[10],"items":{"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"maxItems":16,"minItems":0,"type":"array"},"health_rank":{"description":"健康等级列表","example":["dangerous"],"items":{"maxLength":32,"minLength":1,"type":"string"},"maxItems":16,"minItems":0,"type":"array"},"inspection_time":{"description":"诊断时间,12:00-12:00(默认)或00:00-00:00","example":"12:00","maxLength":16,"minLength":1,"type":"string"},"obs_bucket_name":{"description":"OBS桶名","example":"obs-bucket-test","maxLength":1024,"minLength":1,"type":"string"},"send_time":{"description":"发送时间","example":"04:00","maxLength":16,"minLength":1,"type":"string"},"service_uri":{"description":"服务地址","example":"https://console.ulanqab.huawei.com/das?locale=zh-cn&region=cn-north-7","type":"string"},"template_name":{"description":"邮件模板名称","example":"test_template_name","maxLength":64,"minLength":1,"type":"string"},"time_zone":{"description":"时区","example":"Asia/Shanghai","maxLength":50,"minLength":0,"type":"string"},"topic":{"description":"主题名称","example":"test_topic","maxLength":1024,"minLength":0,"type":"string"},"topic_urn":{"description":"主题标识符","example":"urn:smn:regionId:8bad8a40e0f7462f8c1676e3f93a8183:test_topic","maxLength":1024,"minLength":0,"type":"string"}},"required":["datastore_type","template_name","group_id","health_rank","inspection_time","send_time","time_zone"],"type":"object"},"AddEmailTemplateResp":{"properties":{"success":{"description":"是否成功","example":true,"type":"boolean"},"template_id":{"description":"邮件模板ID","example":10,"format":"int32","maximum":2147483647,"minimum":1,"type":"integer"}},"required":["success","template_id"],"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":"eecec756648f476ebf55e420f67a6183","info_version":"v3","method":"post","name":"AddEmailTemplate","parameters":{},"paths":{"/v3/{project_id}/batch-inspection/email-template":{"post":{"description":"新增邮件模板","operationId":"AddEmailTemplate","parameters":[{"description":"项目ID","in":"path","maxLength":1024,"minLength":1,"name":"project_id","required":true,"type":"string"},{"description":"请求体","in":"body","name":"AddEmailTemplateRequestBody","required":true,"schema":{"$ref":"#/definitions/AddEmailTemplateRequestBody"}}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"check_result":true}},"schema":{"$ref":"#/definitions/AddEmailTemplateResp"}},"400":{"description":"Client error.","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"Server error.","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"新增邮件模板","tags":["云DBA"],"x-api-type":"open-api","x-das-is-publish":"#AddEmailTemplate_Placeholder#","x-is-registered":"Y","x-request-examples-url-1":"POST https://das.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/batch-inspection/email-template","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"}