閱讀529 返回首頁    go 微信


請求結構__調用方式_API使用手冊_消息服務-阿裏雲

服務地址

MNS 服務在多個地域部署,都分別提供了公網訪問地址和阿裏雲私網訪問地址。如表所示:

區域 公網訪問地址 私網訪問地址 VPC私網訪問地址
華北1 http(s)://{AccountId}.mns.cn-qingdao.aliyuncs.com https://{AccountId}.mns.cn-qingdao-internal.aliyuncs.com 暫無
華北2 http(s)://{AccountId}.mns.cn-beijing.aliyuncs.com https://{AccountId}.mns.cn-beijing-internal.aliyuncs.com https://{AccountId}.mns.cn-beijing-internal-vpc.aliyuncs.com
華東1 http(s)://{AccountId}.mns.cn-hangzhou.aliyuncs.com https://{AccountId}.mns.cn-hangzhou-internal.aliyuncs.com https://{AccountId}.mns.cn-hangzhou-internal-vpc.aliyuncs.com
華東2 http(s)://{AccountId}.mns.cn-shanghai.aliyuncs.com https://{AccountId}.mns.cn-shanghai-internal.aliyuncs.com https://{AccountId}.mns.cn-shanghai-internal-vpc.aliyuncs.com
華南1 http(s)://{AccountId}.mns.cn-shenzhen.aliyuncs.com https://{AccountId}.mns.cn-shenzhen-internal.aliyuncs.com https://{AccountId}.mns.cn-shenzhen-internal-vpc.aliyuncs.com
亞太(新加坡) http(s)://{AccountId}.mns.ap-southeast-1.aliyuncs.com https://{AccountId}.mns.ap-southeast-1-internal.aliyuncs.com https://{AccountId}.mns.ap-southeast-1-internal-vpc.aliyuncs.com
美國矽穀 http(s)://{AccountId}.mns.us-west-1.aliyuncs.com https://{AccountId}.mns.us-west-1-internal.aliyuncs.com https://{AccountId}.mns.us-west-1-internal-vpc.aliyuncs.com
亞太東北1(日本) http(s)://{AccountId}.mns.ap-northeast-1.aliyuncs.com https://{AccountId}.mns.ap-northeast-1-internal.aliyuncs.com
亞太東南2(悉尼) http(s)://{AccountId}.mns.ap-southeast-2.aliyuncs.com https://{AccountId}.mns.ap-southeast-2-internal.aliyuncs.com
歐洲中部1(法蘭克福) http(s)://{AccountId}.mns.eu-central-1.aliyuncs.com https://{AccountId}.mns.eu-central-1-internal.aliyuncs.com
中東東部1(迪拜) http(s)://{AccountId}.mns.me-east-1.aliyuncs.com https://{AccountId}.mns.me-east-1-internal.aliyuncs.com

AccountID 是阿裏雲注冊用戶的帳號 ID,在阿裏雲官網可以查看。為了幫助保護用戶的數據安全,MNS在公網提供了Https的接口,隻需要把公網訪問地址的https://換成https://即可。

通信協議

支持通過 HTTP 協議進行請求通信。

請求方法

使用 HTTP 的 PUT、 POST、 GET、 DELETE 等 HTTP Method 發送不同的請求,詳情參考 隊列接口規範主題接口規範 章節。

請求組成

向 MNS 發送 HTTP 請求完成某個 API接口操作,發送的請求需要帶上正確的請求參數、請求頭以及請求正文。

請求編碼

請求及返回結果都使用 UTF-8 字符集進行編碼。

最後更新:2016-12-11 20:58:22

  上一篇:go NotifyContentFormat__基本概念_API使用手冊_消息服務-阿裏雲
  下一篇:go 公共參數__調用方式_API使用手冊_消息服務-阿裏雲