检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
listSubscriptionUrnsPolling1, }, { Order: int32(2), SubscriptionUrns: listSubscriptionUrnsPolling,
listSubscriptionUrnsPolling1, }, { Order: int32(2), SubscriptionUrns: listSubscriptionUrnsPolling,
在使用消息通知服务之前,请先注册华为账号并开通华为云、实名认证。 如果您已开通华为云并进行实名认证,请忽略此步骤。 为账户充值。 请保证账户有足够金额。具体操作,请参见账户充值。 步骤一:创建主题 登录控制台,进入创建主题页面。 配置主题参数。
subscriptions Array of PollingPolicySubscriptionDetails objects 订阅终端urn列表。
订阅确认V2接口(废弃) 用途 订阅确认接口 接口 PUT /v2/{tenant_id}/notifications/topics/{topic_urn}/subscriptions/{subscription_urn}/confirmation PUT /v2/{tenant_id
bytes.Buffer{} buf.WriteString("message\n" + msg.Message + "\n") buf.WriteString("message_id\n" + msg.MessageId + "\n") // msg中存在Subject字段不存在的场景
DELETE 请求服务器删除指定资源,如删除对象等。 HEAD 请求服务器资源头部。 PATCH 请求服务器更新资源的部分内容。 当资源不存在的时候,PATCH可能会去创建一个新的资源。
请求订阅 操作场景 如果订阅者未收到订阅请求消息,用户可以再次请求订阅,请求订阅的流控规则请见订阅确认流控说明。可一次向一个或多个订阅终端发送确认请求。 请求订阅 登录管理控制台。 在管理控制台左上角单击图标,选择区域和项目。 在页面左上角单击图标,选择“管理与监管” > “消息通知服务
Action\":[\"SMN:Publish\",\"SMN:QueryTopicDetail\"],\"Resource\":\"{topic_urn}\"},{\"Sid\":\"__org_path_pub_0\",\"Effect\":\"Allow\",\"Principal
https://ip地址/smn/subscription/confirm?
400 SMN.0014 Parameter: SubscriptionUrn is invalid. 参数:SubscriptionUrn 无效。 请输入有效的subscription_urn。
Click the following URL to confirm subscription:(If you do not want to subscribe to this topic, ignore this message.
发送“POST https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions”。 其中,topic_urn可在2.c的返回体中获取。
Click the following URL to confirm subscription:(If you do not want to subscribe to this topic, ignore this message.
", "name": "IAMUser", "description": "IAM User Description", "areacode": "", "phone": "", "
access_policy" : "{\"Version\":\"2016-09-07\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__user_pub_0\",\"Effect\":\"Allow\",\"Principal
发送“POST https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions”。 其中,topic_urn可在2.c的返回体中获取。
发送“POST https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions”。 其中,topic_urn可在2.b的返回体中获取。
表3 请求Body参数 参数 是否必选 参数类型 描述 platform_principal 是 String 对于HMS平台是APP ID,只能包含英文字母和数字,最大20个字符。
钉钉机器人协议支持通过at字段实现@群组成员。当您需要@群成员时,可以在isAtAll字段中传入布尔值,表示是否需要@群组内所有人。您可以在atMobiles字段中传入需要@的人的手机号列表,或在atUserIds字段中传入需要@的钉钉userID列表。