检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
SMN创建Topic的API SMN添加订阅的API SMN发送消息的API 具体步骤 Token认证,具体操作请参考认证鉴权。 创建Topic。发送“POST https://{SMN_Endpoint}/v2/{project_id}/notifications/topics”。 在Request He
您可以在API Explorer中调试该接口。 操作步骤 Token认证,具体操作请参考认证鉴权。 创建Topic。 发送“POST https://{SMN_Endpoint}/v2/{project_id}/notifications/topics”。 在Request He
“functionstage”:FunctionGraph(函数)传输协议,endpoint为一个函数。 “http”、“https”:HTTP/HTTPS传输协议,endpoint为URL。 subscription_urn String 订阅者的唯一资源标识。 owner String
请求示例 GET https://{SMN_Endpoint}/ null 响应示例 状态码:200 OK { "versions" : { "id" : "v2", "links" : [ { "href" : "https://127.0.0
请求示例 GET https://{SMN_Endpoint}/v2 null 响应示例 状态码:200 OK { "version" : { "id" : "v2", "links" : [ { "href" : "https://127.0.0
“functionstage”:FunctionGraph(函数)传输协议,endpoint为一个函数。 “http”、“https”:HTTP/HTTPS传输协议,endpoint为URL。 subscription_urn String 订阅者的唯一资源标识。 owner String
信长度限制为490字,超出则可能被运营商拦截。向短信终端发送消息时消息内容不能包含“[]”或者“【】”符号。 如果使用“HTTP”或“HTTPS”协议接收消息,用户的HTTP(S)要开通防火墙策略,允许SMN访问,SMN通过公网发送消息到HTTP(S)终端节点。消息通知服务会自动
将不允许发送该模板。 使用模板格式发送消息时,需要选择模板名称,名称选定后,系统会按照Default、SMS、Email、HTTP、HTTPS、FunctionGraph(函数)、FunctionGraph(工作流)的协议顺序,将该模板名称下不同协议的所有模板内容中的{tag}
message。 message_structure 否 String Json格式的字符串。支持“email”、“sms”、“http”、“https”、“functiongraph”、“functionstage”、“dingding”、“wechat”、“feishu”、“weli
取的用户Token。有了Token之后,您就可以使用Token认证调用其他API。 建议在配置文件或者环境变量中密文存放,使用时解密,确保安全。 图1 管理员创建IAM用户响应消息头 响应消息体(可选) 该部分可选。响应消息体通常以结构化格式(如JSON或XML)返回,与响应消息
SMN对外发送消息的源IP地址不固定,且有随时更换的可能。请勿将消息源IP地址作白名单限制,否则可能导致无法接收到SMN消息。 基于网络安全考虑,SMN默认不支持使用华为云内网地址接收消息。 消息通知服务SMN对某些具体指标进行了约束和规范,您在使用时注意不要超过相应的限制值,以免程序出现异常。
code String 服务异常错误信息编码。 message String 服务异常错误信息描述。 请求示例 App消息发布 POST https://{SMN_Endpoint}/v2/{project_id}/notifications/endpoints/{endpoint_urn}/publish
code String 服务异常错误信息编码。 message String 服务异常错误信息描述。 请求示例 删除主题 DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/urn:smn:regio
符串名称。 值 当“类型”取值为“协议”时,在下拉框中选择需要限定消息发布的协议类型,提供的选项为“短信”、“邮件”、“HTTP”、“HTTPS”、“FunctionGraph(函数)”、“FunctionGraph(工作流)。 当“类型”取值为“String Array”时,值
String 服务异常错误信息编码。 message String 服务异常错误信息描述。 请求示例 删除所有主题策略 DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/{topic_urn}/attributes
服务异常错误信息编码。 message String 服务异常错误信息描述。 请求示例 删除Application endpoint DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/endpoints/{endpoint_urn}
code String 服务异常错误信息编码。 message String 服务异常错误信息描述。 请求示例 删除平台应用 DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/applications/{application_urn}
String 服务异常错误信息编码。 message String 服务异常错误信息描述。 请求示例 删除指定名称的主题策略 DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/{topic_urn}/a
error_code String 返回信息对应的代码。 error_msg String 服务异常错误信息描述。 请求示例 解绑云日志 DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/urn:smn:regio
服务异常错误信息编码。 message String 服务异常错误信息描述。 请求示例 更新Application endpoint POST https://{SMN_Endpoint}/v2/{project_id}/notifications/applications/{applic