我如何知道我使用 Azure 存储的代码是否会受到即将于 2015 年 12 月移除的 API 版本的影响?

编程入门 行业动态 更新时间:2024-10-20 16:32:37
本文介绍了我如何知道我使用 Azure 存储的代码是否会受到即将于 2015 年 12 月移除的 API 版本的影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我收到了一封 来自 Microsoft 的电子邮件,称将在 2015 年 12 月删除较低版本的存储服务.

I've got an email from Microsoft saying lower versions of Storage Service are going to be removed in December 2015.

我们的应用程序使用 Azure SDK 1.8 和 2.0.

Our applications use Azure SDK 1.8 and 2.0.

我们如何确定我们是否受到此更改的影响?

How do we check for sure if we're impacted by this change?

推荐答案

我不知道如何解释那封信中的细节(不清楚最低要求的 SDK 版本是 2.0 还是 2.1),所以最好的办法是自己验证.启动 Fiddler 并运行有问题的代码,看看哪些 x-ms-version 标头附加到请求中.

I'm not sure how to interpret the details in that letter (not clear if the lowest required SDK version is 2.0 or 2.1), so the best bet is to validate it yourself. Start Fiddler and run the code in question and see which x-ms-version headers are attached to the request.

例如,您可以尝试 CloudBlob.DownloadToFile().Fiddler 会显示这样的请求:

For example, you might try CloudBlob.DownloadToFile(). Fiddler will show a request like this:

GET /path/to/specific/blob/here?timeout=600 HTTP/1.1

在请求标头中,您可能会看到这一点(如果您使用 SDK 1.8)

and among the request headers you might see this (if you use SDK 1.8)

x-ms-version: 2011-08-18

这意味着代码针对 API 版本 2011-08-18.由于将保留的最早 API 版本是 2012-02-12,这意味着您会受到影响.

which means that the code targets API version 2011-08-18. Since the earliest API version that will be kept is 2012-02-12 that would mean you're affected.

我不确定 SDK 2.0,但您可以使用相同的技术轻松地自行检查.

I'm not sure about SDK 2.0 but you can easily check it yourself using the same technique.

这篇关于我如何知道我使用 Azure 存储的代码是否会受到即将于 2015 年 12 月移除的 API 版本的影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-18 06:23:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/932731.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:将于   是否会   移除   版本   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!