腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Powershell
Invoke-RestMethod
分页
powershell
、
invoke-restmethod
在互联网的帮助下,我能够创建下面的
powershell
脚本。但结果并不完整,它只显示了100个用户。在四处寻找之后,我发现我可能应该对
分页
做些什么,但是我不能让它工作。graph.microsoft.com/.default" Client_Secret = $clientSecret$Data =
Invoke-Re
浏览 31
提问于2021-07-14
得票数 0
回答已采纳
1
回答
调用--当OutFile使用PassThru时,PassThru方法为空
rest
、
powershell
、
output
、
powershell-cmdlet
使用
PowerShell
4.0和
Invoke-RestMethod
。我在-OutFile和-PassThru选项上遇到了麻烦。这里,我调用了一个rest,试图将响应保存到文件中,并将其反序列化为一个
powershell
对象。"
POWERSHELL
VERSION $($host.Version.ToString())" $date =
Invoke-RestMethod
"http://date.jsontest.com"Test # 1, c
浏览 9
提问于2017-03-24
得票数 9
1
回答
从IFCONFIG.CO中提取外部IP的Oneliner
powershell
我用
powershell
编写了一个很好的小函数,但是我觉得它非常笨拙,我相信一定有更聪明的方法来做到这一点。为了学习,我能做些什么来改善这一点呢?function WhatsMyIPreturn ((
Invoke-RestMethod
-Uri http://ifconfig.co).split("`n") | where {$_ -match
浏览 0
提问于2015-11-11
得票数 3
回答已采纳
2
回答
powershell
raspbian从ps1执行
Invoke-RestMethod
powershell
、
raspberry-pi
、
raspbian
、
powershell-core
我正在编写一个
powershell
脚本,以便通过
Invoke-RestMethod
连接到api。对api的调用是公开的,无需身份验证。它在
powershell
中工作,但无法在ps1脚本中执行它。我的操作系统是带有
powershell
核心6.1.3的raspianpi@raspberry:~/Documents $ pwsh
PowerShell
6.1.3PS /home/pi/Documents>
浏览 4
提问于2019-09-22
得票数 0
1
回答
如何从
powershell
中为bash设置环境变量?
bash
、
visual-studio
、
powershell
、
.net-core
、
environment-variables
: InvalidOperation: (Method: GET, Reques\u2026
PowerShell
/6.2.3}:HttpRequestMessage) [
Invoke-RestMethod
dur:~/
powershell
/helloPSTwitt
浏览 2
提问于2020-01-23
得票数 8
1
回答
通过Invoke测试dsc拉取服务器-RestMethod意外关闭
powershell
、
iis
、
powershell-dsc
在浏览器中,我可以使用以下URL访问该服务但是,使用
PowerShell
的同一个
Invoke-RestMethod
-Uri https://dsc.mydomain.com:8080/PSDSCPullServer.svc/$metadata -Verbose
Invoke-RestMethod<
浏览 5
提问于2017-11-09
得票数 1
2
回答
来自批处理调用的
PowerShell
-command -RestMethod方法
powershell
、
batch-file
、
cmd
这在
PowerShell
命令提示符下工作:
Invoke-RestMethod
-Uri "http://127.0.0.1:8989/api/series" -Method Get -Header @
powershell
.exe -command "& {
Invoke-RestMethod
-Uri "http://127.0.0.1:8989/api/series" -Method
浏览 1
提问于2016-06-13
得票数 1
回答已采纳
1
回答
Rest API调用适用于curl,但不适用于
PowerShell
powershell
、
rest
、
curl
、
dynamics-crm
、
bearer-token
$select=name" -H "Authorization: Bearer xxxxx" 并希望在
PowerShell
中实现它
Invoke-RestMethod
"https://host.crm.dynamics.com-Headers @{Authorization = "Bearer xxxxx"} ` -Method Get 我也尝试过用
Powershell
中的Invoke-WebRequest和curl版
浏览 4
提问于2020-01-27
得票数 1
回答已采纳
1
回答
运行
Invoke-RestMethod
时出现超时错误
asp.net-web-api
、
powershell-3.0
我在
PowerShell
上运行
Invoke-RestMethod
来调用Web API方法。它可以工作,但大约一分钟后,我得到一个超时错误。我真的希望
PowerShell
能等到被调用的方法完成。testName=5.5.4.382.1 with 0-byte payload+
Invoke-Re
浏览 0
提问于2014-11-18
得票数 8
回答已采纳
1
回答
Invoke-RestMethod
返回401 -
Powershell
7中未授权的
powershell
、
powershell-core
、
invoke-restmethod
我遇到了一个问题,试图在
PowerShell
7中使用
Invoke-RestMethod
命令。我可以让它在
PowerShell
5.1中很好地运行,但是7给出了一条401未经授权的消息。下面是
PowerShell
5.1的命令:
Invoke-RestMethod
"http://internalServer/api/job?name=testJob" -Method GET -UseDefaultCredentials -ContentType
浏览 6
提问于2021-09-01
得票数 1
回答已采纳
1
回答
Powershell
根据
powershell
版本完全删除命令符标志。
powershell
、
powershell-5.1
、
powershell-7.3
在
Powershell
7中,对
Invoke-RestMethod
进行了一些更改。我编写了一些模块,它们是几个调用-RestMethod调用的包装器,以简化我的同事与API的交互。在
Powershell
5.1中,这段代码运行良好:
Invoke-RestMethod
-Method Get -Uri "http://localhost/MyServer/MyApi" -UseDefaultCredentials在
Powershell
7中,这会
浏览 8
提问于2022-11-29
得票数 2
回答已采纳
2
回答
调用-当cmd中的cURL正常工作时,RestMethod返回“无效用户”
powershell
、
curl
、
post
、
automation
我试图使用
Invoke-RestMethod
在
PowerShell
中运行一个
PowerShell
命令,但是它不能正常工作。这提供了以下输出:
Invoke-RestMethod
: {"error":"Invalid user .+ FullyQu
浏览 2
提问于2021-06-10
得票数 1
回答已采纳
1
回答
使用
powershell
连接到WebHDFS :如何设置不同的凭据
powershell
、
webhdfs
我正在通过
powershell
连接te WebHDFS,并且一直在检索一些错误。我认为401错误是由于凭据的原因。我使用的代码是:
Invoke-RestMethod
-UseDefaultCredentials -Method Put -inFile c:\Users\petter\Documents\example.txtop=CREATE" 如何在"
Invoke-RestMethod
“下的凭证中设置不同的参数?我检索到的THe错误是:
Invoke-RestMethod
: The remote
浏览 19
提问于2021-01-22
得票数 0
1
回答
使用API token制作API时出现授权错误
powershell
、
authentication
、
http-headers
、
authorization
、
httpwebrequest
我不熟悉API调用,我正在使用
Powershell
进行API调用,并且我的应用程序有一个api令牌格式如下当我在
powershell
中运行以下命令时:
Invoke-RestMethod
-uri "https://custom.net/users" -H "Authorization: ApiTo
浏览 33
提问于2020-05-19
得票数 0
回答已采纳
1
回答
通过
powershell
将数据大容量到ElasticSearch,但抛出异常
powershell
、
elasticsearch
当我通过
powershell
将数据导入ElasticSearch时,总是会抛出异常,有谁能帮我?','_id':'4'}}`n{'title': 'this is a test', 'text': 'test', 'date': '2016-01-02'}".Replace("'","`"")
Invoke-RestMethod</
浏览 3
提问于2016-08-08
得票数 0
回答已采纳
1
回答
曲棍球上传错误:
Invoke-RestMethod
:基础连接已关闭:无法建立
rest
、
powershell
、
proxy
、
hockeyapp
我正在尝试上传appx到曲棍球应用程序使用
PowerShell
脚本。当我运行
PowerShell
脚本时,出现以下错误: cript.ps1:20 char:13 + $response =
Invoke-RestMethod
+
浏览 13
提问于2017-08-18
得票数 0
1
回答
Azure Devops API使用
powershell
脚本获取所有项目、团队和成员
azure
、
powershell
、
api
、
azure-devops
、
azure-devops-rest-api
我正在创建一个
powershell
脚本,该脚本连接到Azure Devops API服务,以获取所有项目、团队和团队成员。但是,由于API只返回1000个结果,所以我对团队的
分页
有一些问题。$top_param=1000 $ProjectsResult =
Invoke-RestMethod
$top=$($top_param)&$skip=$($skip_param)&qu
浏览 0
提问于2021-10-11
得票数 1
1
回答
Invoke-RestMethod
Link方法不支持
powershell
我正在使用一个API与
PowerShell
Invoke-RestMethod
cmdlet接口。其中一个API端点需要"Link“方法,但是
Invoke-RestMethod
不支持该方法。错误消息:
Invoke-RestMethod
:无法绑定参数‘方法’。无法将值“链接”转换为"Microsoft.
PowerShell
.Commands.WebRequestMethod".类型错误:“无法将标识符名称链接与有效枚举数名称相匹配。
浏览 0
提问于2019-07-02
得票数 1
回答已采纳
1
回答
方法放入
Powershell
,问题: 400格式错误转换,
rest
、
powershell
、
http-status-code-400
在
Powershell
中运行脚本时,
Invoke-RestMethod
PUT命令输出 >
Invoke-RestMethod
: 400 MalformedCONTENTThe data request+
Invoke-RestMethod
-Method PUT -Uri http://##.##.###.#:8022/reader/bl ...+ CategoryInfo : Inva
浏览 25
提问于2019-01-21
得票数 0
回答已采纳
1
回答
无法从批处理文件以CMD模式运行
PowerShell
脚本
c#
、
powershell
、
batch-file
、
cmd
我为
PowerShell
创建了一个FileWatcher脚本。我需要在C#中执行它。我试过很多种方法,但都没成功。我甚至创建了一个批处理文件来执行我的脚本。但是它仍然不能工作,只是控制台被打开和关闭。下面是我的
PowerShell
脚本:$filter = '*.csv' $fsw = New-Object IO.FileSystemWatcher $folder,FilePath D:\outp.txt -Append -InputObject "The file '
浏览 2
提问于2017-03-20
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
PowerShell系列(一):PowerShell介绍和cmd命令行的区别
powershell运行netcat
PowerShell之Switch
Windows PowerShell 工具
Powershell And Metasploit(上)
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券