huawei-cloud-api-definitions-MSGSMS 0.1.20250110

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"SmsTemplateResp":{"properties":{"app_key":{"description":"应用key","example":"******3baZf4c856O4Qrbqvui3K2","maxLength":128,"minLength":1,"type":"string"},"app_name":{"description":"应用名称","example":"auto_test7890","maxLength":64,"minLength":1,"type":"string"},"brackets":{"description":"中括号类型\n支持枚举值:\n CN: 中文类型\n GB: 英文类型","example":"GB","maxLength":16,"minLength":1,"type":"string"},"country_name":{"description":"国家名称列表,返回发送国家前三名的国家名称,国家名称间以\"~\"分隔","example":"country","maxLength":1024,"minLength":0,"type":"string"},"create_time":{"description":"创建时间[yyyy-MM-dd HH:mm:ss]","example":"2022-08-12 07:14:18","maxLength":20,"minLength":1,"type":"string"},"customer_id":{"description":"租户customer id","example":"******c55c3c4526b2ed7a0213bc9871","maxLength":64,"minLength":1,"type":"string"},"flow_status":{"description":"流程状态","example":"Reviewing","maxLength":32,"minLength":1,"type":"string"},"has_variable":{"description":"是否有变量","example":"No","maxLength":4,"minLength":0,"type":"string"},"id":{"description":"模板主键ID,用于获取、修改、删除模板以及查询模板变量的唯一标识","example":"******bb-d48c-4c4d-b3da-baa8e4664852","maxLength":64,"minLength":1,"type":"string"},"is_support_multiomp":{"description":"是否支持多OMP","example":false,"type":"boolean"},"region":{"description":"地域\n1. cn:国内\n2. intl:国际","example":"cn","maxLength":16,"minLength":1,"type":"string"},"review_desc":{"description":"审核意见","example":"test","maxLength":300,"minLength":0,"type":"string"},"review_order":{"description":"审核人账号","example":"test","maxLength":32,"minLength":0,"type":"string"},"send_country1":{"description":"发送国家1","example":"country1","format":"int64","maximum":2147483647,"minimum":0,"type":"integer"},"send_country2":{"description":"发送国家2","example":"country2","format":"int64","maximum":2147483647,"minimum":0,"type":"integer"},"send_country3":{"description":"发送国家3","example":"country3","format":"int64","maximum":2147483647,"minimum":0,"type":"integer"},"sign_id":{"description":"签名主键id","example":"******b9-4141-4e2d-9838-14889c32a4bf","maxLength":64,"minLength":1,"type":"string"},"site":{"description":"站点","example":"cn","maxLength":16,"minLength":1,"type":"string"},"status":{"description":"模板状态","example":"Normal","maxLength":32,"minLength":1,"type":"string"},"template_content":{"description":"模板内容","example":"test","maxLength":500,"minLength":1,"type":"string"},"template_desc":{"description":"申请描述","example":"test","maxLength":500,"minLength":0,"type":"string"},"template_id":{"description":"模板ID","example":"******d1-196f-495f-abbe-42240469b8fc","maxLength":64,"minLength":1,"type":"string"},"template_name":{"description":"模板名称","example":"auto_test789","maxLength":128,"minLength":1,"type":"string"},"template_type":{"description":"模板类型","example":"NOTIFY_TYPE","maxLength":32,"minLength":1,"type":"string"},"tenant":{"$ref":"#/definitions/TenantBasic"},"universal_template":{"description":"是否是通用模板","example":0,"format":"int32","maximum":2147483647,"minimum":0,"type":"integer"},"update_time":{"description":"更新时间[yyyy-MM-dd HH:mm:ss]","example":"2022-08-12 07:14:18","maxLength":20,"minLength":1,"type":"string"},"urge_desc":{"description":"催审描述","example":"test","maxLength":500,"minLength":0,"type":"string"},"urge_status":{"description":"催审状态","example":"NO","maxLength":8,"minLength":1,"type":"string"},"urge_time":{"description":"催审时间","example":"2022-08-12 07:14:18","maxLength":20,"minLength":1,"type":"string"}},"title":"SmsTemplateResp"},"TemplatePageQueryResponse":{"properties":{"results":{"description":"查询结果","items":{"$ref":"#/definitions/SmsTemplateResp"},"maxItems":10000,"minItems":0,"type":"array"},"total":{"description":"总数","example":1,"format":"int64","maximum":2147483647,"minimum":0,"type":"integer"}},"title":"TemplatePageQueryResponse","type":"object"},"TenantBasic":{"properties":{"customer_id":{"description":"租户custom id","example":"******c55c3c4526b2ed7a0213bc9871","maxLength":64,"minLength":1,"type":"string"},"customer_name":{"description":"租户custom name","example":"****05","maxLength":128,"minLength":1,"type":"string"},"enterprise_name":{"description":"租户企业名称","example":"华为技术有限公司","maxLength":128,"minLength":1,"type":"string"}},"title":"TenantBasic","type":"object"}},"description":null,"group_id":"6ec12426d3234d80b6da21f8367b6607","host":"msgsms.cn-north-4.myhuaweicloud.com","id":"c347321031cd42b3b31c6d3dffbf43e9","info_version":"v2","method":"get","name":"ListTemplateDetails","parameters":{"Content-Type":{"default":"application/json;charset=utf8","description":"请求体参数类型,该字段必须设置为:application/json;charset=utf8","in":"header","maxLength":255,"minLength":1,"name":"Content-Type","required":true,"type":"string","x-example":"application/json;charset=utf8"},"X-Auth-Token":{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)","in":"header","maxLength":32768,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"******JKoZIhvcNAQcCoIIDgzCCXXXXX"},"project_id":{"description":"项目ID。获取方法请参见 [获取帐号、用户、项目的名称和ID](https://support.huaweicloud.com/api-msgsms/sms_05_0020.html)。","in":"path","name":"project_id","pattern":"^[a-fA-F0-9]{1,32}$","required":true,"type":"string","x-example":"******c55c3c4526b2ed7a0213bc9871"}},"paths":{"/v2/{project_id}/msgsms/templates":{"get":{"deprecated":false,"description":"该接口用于用户查询已创建的模板信息。","operationId":"ListTemplateDetails","parameters":[{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Content-Type"},{"$ref":"#/parameters/project_id"},{"description":"应用key","in":"query","maxLength":128,"minLength":1,"name":"app_key","required":false,"type":"string","x-example":"auto_test789"},{"description":"应用名称","in":"query","maxLength":64,"minLength":1,"name":"app_name","required":false,"type":"string","x-example":"auto_test789"},{"description":"开始时间","in":"query","maxLength":20,"minLength":1,"name":"start_time","required":false,"type":"string","x-example":"2023-03-14 08:21:48"},{"description":"结束时间","in":"query","maxLength":20,"minLength":1,"name":"end_time","required":false,"type":"string","x-example":"2023-03-15 08:21:48"},{"default":10,"description":"数量","format":"int32","in":"query","maximum":500,"minimum":1,"name":"limit","required":false,"type":"integer","x-example":10},{"default":0,"description":"偏移量","format":"int32","in":"query","maximum":2147483647,"minimum":0,"name":"offset","required":false,"type":"integer","x-example":0},{"description":"流程状态\n1. Adopted: 通过\n2. Reviewing: 审核中\n3. Reject: 拒绝","in":"query","maxLength":64,"minLength":1,"name":"flow_status","required":false,"type":"string","x-example":"Reviewing"},{"description":"是否存在变量","in":"query","name":"has_variable","pattern":"(Yes)|(No)","required":false,"type":"string","x-example":"(No)"},{"description":"地域\n1. cn:国内\n2. intl:国际","in":"query","maxLength":20,"minLength":1,"name":"region","required":false,"type":"string","x-example":"cn"},{"description":"签名名称","in":"query","maxLength":128,"minLength":1,"name":"sign_name","required":false,"type":"string","x-example":"auto_test789"},{"description":"排序方式\n1. desc:降序\n2. asc:升序","in":"query","maxLength":20,"minLength":1,"name":"sort_dir","required":false,"type":"string","x-example":"desc"},{"description":"排序字段","in":"query","maxLength":64,"minLength":1,"name":"sort_key","required":false,"type":"string","x-example":"create_time"},{"description":"模板ID","in":"query","maxLength":64,"minLength":1,"name":"template_id","required":false,"type":"string","x-example":"460a2427-37eb-4229-bee9-0eba4d8a897f"},{"description":"模板名称","in":"query","maxLength":128,"minLength":1,"name":"template_name","required":false,"type":"string","x-example":"auto_test789"},{"description":"模板类型\n1. VERIFY_CODE_TYPE: 验证码类\n2. PROMOTION_TYPE: 推广类\n3. NOTIFY_TYPE: 通知类","in":"query","maxLength":32,"minLength":1,"name":"template_type","required":false,"type":"string","x-example":"NOTIFY_TYPE"}],"produces":["*/*"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TemplatePageQueryResponse"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}},"schemes":["https"],"summary":"查询短信模板","tags":["TemplateManagement"],"x-api-type":"open-api","x-imports":["com.huawei.cloud.common.operation.*;","com.huawei.cloud.common.log.SourceType;"],"x-internal":false,"x-is-registered":"Y","x-methodAnnotations":["@Operation(name = \"用户查询短信模板\", action = OperateType.QUERY, resource = \"console.root.message.msgtemplate\", requireLog = true, source = SourceType.API)"],"x-service":"messageService","x-support-sdk":"Y"}}},"product_short":"MSGSMS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询短信模板","tags":"短信签名模板API","uri":null,"version":"2.0"}