我已将软件打包到容器中。我需要通过 Azure 容器服务将容器放入集群。该软件有一个目录的输出/src/data/,我想访问整个目录的内容。
搜索后,我必须解决。
我需要访问和管理 Azure 集群上的输出目录。换句话说,我需要一个救世主。
其他答案对我不起作用.我的问题是关于整数.
Integer i1 = new Integer(11);
Integer i2 ;
i2 = i1;
System.out.println(i1+" "+i2);
i1 = 233;
System.out.println(i1+" "+i2);
//~ 11 11
//~ 233 11
Run Code Online (Sandbox Code Playgroud)
我想让i1和i2相关.
我想通过python Request访问我的文件服务,在列表共享页面的引导下,我是REST和python Request的新手。我的输入是
headers= {'x-ms-date': '2018-04-17 06:22:15.181620', 'Authorization': 'SharedKey zedongstorageaccount:codecodecodeFiTzubX9tvC3G3PcDYzR2cX/TMjkOu4JhsvQffS+xTDDBQ==', 'x-ms-version': '2017-07-29'}
url = 'https://zedongstorageaccount.file.core.windows.net/?comp=list'
r=requests.get(url,headers=headers)
Run Code Online (Sandbox Code Playgroud)
但是得到错误,r.content的输出:
b'\xef\xbb\xbf<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:ef98f282-f01a-0042-3e24-d62397000000\nTime:2018-04-17T08:16:21.9635335Z</Message><AuthenticationErrorDetail>The Date header in the request is incorrect.</AuthenticationErrorDetail></Error>'
Run Code Online (Sandbox Code Playgroud)
我也尝试过标题{'x-ms-date': '2018-04-17 06:22:15.181620', 'Authorization': 'SharedKey zedongnewstorageaccount:NJYYtabOIj5D1R+xb0PpmXrjCldf6NA6oLkYReAKFiTzubX9tvC3G3PcDYzR2cX/TMjkOu4JhsvQffS+xTDDBQ==', 'x-ms-version': '2017-07-29'},因为我不知道Authorization和是否account在同一行中。我还尝试了许多版本x-ms-version。但是所有400或403响应。
错误在哪里?是否可以通过Azure REST API来构建我的应用程序?(我使用google关键字,所有页面都涉及到构建REST API和azure官方文档)
rest azure azure-storage python-requests azure-storage-files