Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在powershell中执行2种不同的rest api json负载_Json_Powershell - Fatal编程技术网

如何在powershell中执行2种不同的rest api json负载

如何在powershell中执行2种不同的rest api json负载,json,powershell,Json,Powershell,我是powershell的新手,我一直在做一项任务 我有两个JSON有效负载,它们来自appcenter中的两个不同RESTAPI 一个JSON负载在appcenter中创建一个应用程序,另一个JSON负载将特定应用程序添加到appcenter中的团队中,在该团队中,用户分组在单个团队中 那么,我如何在我的powershell脚本中使用这2个JSON并执行它(不确定我是否清楚地阐述了我的问题)。您正在寻找类似的东西吗?您需要调用RestMethod。当我尝试调用Webrequest时,JSON进

我是powershell的新手,我一直在做一项任务

我有两个JSON有效负载,它们来自appcenter中的两个不同RESTAPI

一个JSON负载在appcenter中创建一个应用程序,另一个JSON负载将特定应用程序添加到appcenter中的团队中,在该团队中,用户分组在单个团队中


那么,我如何在我的powershell脚本中使用这2个JSON并执行它(不确定我是否清楚地阐述了我的问题)。

您正在寻找类似的东西吗?您需要
调用RestMethod
。当我尝试调用Webrequest时,JSON进入$body,现在我收到以下错误调用Webrequest:请求被中止:无法创建SSL/TLS安全通道。甚至我也尝试过这些命令ServicePointManager.SecurityProtocol=SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;但是没有用。