腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(4219)
视频
沙龙
1
回答
Invoke-RestMethod
PowerShell
Google
DDNS
powershell
、
rest
、
api
、
dynamic
、
dns
我似乎在使用
Google
的
DDNS
服务更新我的IP这个看似基本的脚本上遇到了很多问题。#Fetch current IP address$ip =
Invoke-RestMethod
-Uri $ipuri$uri = "https://username:passwo
浏览 16
提问于2020-04-13
得票数 1
回答已采纳
1
回答
SDK调用的
Google
端点列表
google-cloud-platform
、
google-api
、
google-cloud-sdk
我们以前已经生成了一个清单,谷歌的API端点使用的SDK通过对源回购。既然这似乎是不可用的,是否还有其他人找到了获得这样一个列表的方法?我们需要能够在我们的公司防火墙/代理上白名单这些端点。
浏览 5
提问于2020-03-11
得票数 1
回答已采纳
3
回答
Powershell
Invoke-RestMethod
Authorization头
powershell
、
authorization
、
basic-authentication
、
powershell-4.0
、
invoke-restmethod
在使用
Powershell
调用
Invoke-RestMethod
时,如下所示:
Invoke-RestMethod
-Method Get -Uri "https://
google
.com/api/GetData
浏览 7
提问于2019-01-15
得票数 7
2
回答
访问
Powershell
中的
Google
google-maps
、
powershell
我需要做的是: 任何帮助都会很好!谢谢:)
浏览 1
提问于2012-01-09
得票数 2
回答已采纳
1
回答
通过GKE Rest API进行身份验证
kubernetes
、
google-kubernetes-engine
我正在尝试使用
Powershell
中的
Invoke-RestMethod
查询GKE REST API。如何进行身份验证?我尝试使用作为头文件传递的API密钥,但这不起作用。我一直收到错误:Line | 10 | … sresponse =
Invoke-RestMethod
-Uri $clustersuri -HeadersSee https://developers.
google
.com/identity/sign
浏览 0
提问于2021-05-18
得票数 0
2
回答
从Azure
powershell
runbook使用
Invoke-RestMethod
时
json
、
azure
、
powershell
、
httprequest
我正在尝试从Azure
Powershell
Runbook中将Microsoft Azure警报发送到
Google
聊天室(Hangout)。有时发送消息时没有任何问题,但在大约一半的尝试中,它返回以下错误:+
Invoke-RestMethod
-uri $uriHangouts -Method Post -body $body -Conte
浏览 0
提问于2021-02-05
得票数 1
1
回答
从IFCONFIG.CO中提取外部IP的Oneliner
powershell
我用
powershell
编写了一个很好的小函数,但是我觉得它非常笨拙,我相信一定有更聪明的方法来做到这一点。为了学习,我能做些什么来改善这一点呢?function WhatsMyIPreturn ((
Invoke-RestMethod
-Uri http://ifconfig.co).split("`n") | where {$_ -match
浏览 0
提问于2015-11-11
得票数 3
回答已采纳
1
回答
Mediawiki -编辑模块需要post请求
powershell
、
curl
、
mediawiki-api
另外,我如何从cURL或
powershell
调用它? http://localhost/mediawiki/api.php?
浏览 0
提问于2013-11-21
得票数 0
1
回答
新Gmail API :对
powershell
的支持
powershell
、
gmail-api
我以前使用Gmail来为我的
PowerShell
脚本获取电子邮件,但是由于不再支持以前的API,并且发布了一个新的Gmail,我想知道是否可以为新的Gmail编写一个等价的脚本。System.Net.NetworkCredential ("gmailemail", "pass")我已经为gmail设
浏览 4
提问于2016-09-27
得票数 1
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
回答
简单的
powershell
上传到GCP桶
powershell
、
google-cloud-platform
这是
powershell
故障通知: 使用"2“参数调用"UploadFile”的异常:“异常发生在WebClient请求期间。”
浏览 0
提问于2019-06-11
得票数 0
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
回答已采纳
2
回答
使用
Powershell
使用邮件枪发送附件
powershell
、
email-attachments
、
mailgun
我在
Google
上找不到任何关于如何使用
Powershell
发送附件的答案。发送不带附件的邮件在mails和
Powershell
上运行良好。这是我的代码。text = "Email body here"; }
Invoke-RestMethod
-Uri $url -Method Post -Headers $headers -Body $m
浏览 1
提问于2017-08-02
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
微软发布脚本恢复Defender更新误删的应用快捷方式
BurpBounty:改进burp扫描器的扩展;Git RCE 漏洞分析与利用
Windows PowerShell进阶IO操作之CSV
因发明 PowerShell 被微软降级?PowerShell 之父曾考虑出走
某APT组织重新使用“域前置”技术,进行攻击活动
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券