標籤: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服務管理版本控制