Power-Shell脚本使用rest API创建文档 [英] Power-Shell script to create document using rest API

查看:209
本文介绍了Power-Shell脚本使用rest API创建文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


调用此休息Api的power-shell脚本是什么?


https:// docs。 microsoft.com/en-us/rest/api/cosmos-db/create-a-document



谢谢

解决方案



此官方文档



 目前,您只能通过PowerShell管理Azure Cosmos数据库帐户;其他资源(如数据库和容器
)无法通过PowerShell进行管理。



因此,截至目前,无法管理Cosmos DB通过PowerShell有

现有 反馈
已经打开并由Microsoft开始计划。



您可以使用Cosmos DB PowerShell模块可在
PowerShell Gallery
上找到。


Hi,

What will be the power-shell script to call this rest Api?

https://docs.microsoft.com/en-us/rest/api/cosmos-db/create-a-document

Thanks

解决方案

Hi,

As you can see from this official doc

 At this time, you can only manage the Azure Cosmos DB account via PowerShell; other resources such as databases and containers cannot be managed via PowerShell.

So, as of now, there is no way to manage Cosmos DB through PowerShell there is existing feedback which is already opened and start planned by Microsoft.

You can use the Cosmos DB PowerShell module available on the PowerShell Gallery.


这篇关于Power-Shell脚本使用rest API创建文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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