ADLS Gen 2 REST API的帮助 [英] ADLS Gen 2 REST API's help

查看:69
本文介绍了ADLS Gen 2 REST API的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



b

我正在尝试使用Path创建adls gen2 rest api重命名文件和目录。我正在返回一个错误,说我错过了必需的http标头。我包括的标题是"x-ms-rename-source","x-ms-date"和"x-ms-date"。和"x-ms-version"。
我假设这是一个简单的修复,但我不确定从文档(https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create)到底是什么需要其他标题吗?


非常感谢任何帮助!




解决方案

你好Ewan,


我认为你错过了"内容长度"和"授权"头。


例如:


curl -i -X PUT -H" x-ms-version:2018-11-09" ; -H"content-length:0" -H"授权:承载


ACCESS_TOKEN" " https://


STORAGE_ACCOUNT_NAME.dfs.core.windows.net/mydata?resource=filesystem"


希望这有帮助。


Hi all,



I am trying to use the Path create adls gen2 rest api to rename a file and also a directory. I am being returned an error saying I am missing a required http header. Headers I have included are "x-ms-rename-source", "x-ms-date" and "x-ms-version". I am assuming this is an easy fix but I'm not sure from the documentation (https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create) exactly what other header is required?

Any help is greatly appreciated!


解决方案

Hi Ewan,

I think you are missing "Content-length" and "Authorization" headers.

For example :

curl -i -X PUT -H "x-ms-version: 2018-11-09" -H "content-length: 0" -H "Authorization: Bearer


ACCESS_TOKEN" "https://


STORAGE_ACCOUNT_NAME.dfs.core.windows.net/mydata?resource=filesystem"

Hope this helps.


这篇关于ADLS Gen 2 REST API的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆