日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

SendMessage - 向云消息隊列 MQTT 版發送單條消息

更新時間:

從服務端應用向云消息隊列 MQTT 版發送單條消息。

接口說明

  • SendMessage 接口為服務端應用調用,與 MQTT 客戶端發送消息互補。服務端和客戶端的使用場景區別,請參見開發指南使用指引
  • 調用 SendMessage 接口發送的消息不支持流轉至云消息隊列 RocketMQ 版。若需要通過 MQTT 服務端將消息流轉至云消息隊列 RocketMQ 版,請使用 SDK 發送消息SendMessage 接口的 QPS 限制為 1000。更多信息,請參見 QPS 限制
  • 每成功調用一次 SendMessage 接口,都會計算為一次消息 TPS,從而影響您的計費。計費詳情,請參見計費說明

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

當前API暫無授權信息透出。

請求參數

名稱類型必填描述示例值
MqttTopicstring

云消息隊列 MQTT 版的 Topic,即消息發送的目標 Topic。

TopicA
InstanceIdstring

云消息隊列 MQTT 版實例的 ID,一定要和客戶端實際使用的實例 ID 匹配。您可以在控制臺實例詳情頁面的基礎信息區域查看。

post-cn-0pp12gl****
Payloadstring

消息內容,即消息負載。建議自行做 Base64 編碼,避免傳輸不可見字符。

test
說明 更多參數說明請參見公共參數服務接入點

返回參數

名稱類型描述示例值
object
MsgIdstring

消息的唯一標識,消息發送成功后服務端會返回消息 ID。

0B736D997B7F45FF54E61C1C1B58****
RequestIdstring

公共參數,每個請求的 ID 都是唯一的。

020F6A43-19E6-4B6E-B846-44EB31DF****

示例

正常返回示例

JSON格式

{
  "MsgId": "0B736D997B7F45FF54E61C1C1B58****",
  "RequestId": "020F6A43-19E6-4B6E-B846-44EB31DF****"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400CheckAccountInfoFailedAn error occurred while checking the account information by the STS token.解析STS Token賬號信息失敗。
400InstancePermissionCheckFailedAn error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings.實例權限校驗失敗,請確認MQTT實例的所屬關系以及授權策略。
400ParameterCheckFailedAn error occurred while validating the parameters. The parameters may be missing or invalid.參數校驗失敗,可能缺失或者傳入值非法。
400PermissionCheckFailedAn error occurred while validating the resource permissions. Please check the account that created the instance, topic, and GroupId, and check their permission settings.資源權限校驗失敗,請檢查實例、Topic和Group ID的所屬權限和授權策略。
400InvalidParameter.%sAn error occurred while validating the parameter. The parameter may be missing or invalid.參數校驗失敗,可能缺失或者傳入值非法。
404ApiNotSupportThe specified API is not supported.當前接口不支持,請檢查。
500InternalErrorAn error occurred while processing your request. Try again later.MQTT后端服務異常,請重試。
500SendMessageFailedA storage exception occurred while sending the message. Please try again.由于后端存儲異常,消息發送失敗,請重試。
500SystemOverFlowAn error occurred while processing your request. Please try again.系統限流,請重試。

訪問錯誤中心查看更多錯誤碼。

變更歷史

變更時間變更內容概要操作
暫無變更歷史