Windows Azure服務管理版本控制

來源:互聯網
上載者:User

標籤:operation   windows   continue   multiple   provided   azure   

1.Windows Azure‘s Service Management Versioning

    Operations provided by the Service Management API may have multiple versions. You must specify the version of an operation that you want to use by setting the x-ms-version request header. Requests without an x-ms-version header will be rejected and return a (400) Bad Request response. If your service calls an older version of an operation, you can choose to continue calling the older version, or modify your code to call a newer version. Any differences in functionality between versions are outlined in the documentation for the API call.

    注:

    Windows Azure是一個公有平台,所以為了滿足不同版本的應用提供了不同版本的API,那麼如何去告訴Http請求調用哪一個版本的API呢?上面說佈建要求頭的x-ms-version參數。不管你是老版本的還是新版本的,只要你設定了要求標頭的x-ms-version參數就可以根據設定的參數調用相應的API.


The x-ms-version request header value must be specified in the format YYYY-MM-DD. 

For example:

Request Headers:x-ms-version: 2011-02-25


總結:

    雲平台是一個公用服務的平台,所以需要保留各個版本的API以滿足所有企業和個人的應用調用需要,同時更好的滿足應用的升級和擴充,調用時只要在要求標頭中將x-ms-version參數進行賦值,以便知道用那一個版本的API。

本文出自 “愛咖啡” 部落格,請務必保留此出處http://4837471.blog.51cto.com/4827471/1575222

Windows Azure服務管理版本控制

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.