简体   繁体   English

C#中Openstack API的编程使用

[英]Programmatic use of Openstack API in C#

Is it possible to use Openstack API in codes such as C#?是否可以在 C# 等代码中使用 Openstack API? I am writing some code and will need to bring up VM instances in Openstack infrastructure.我正在编写一些代码,需要在 Openstack 基础架构中启动 VM 实例。 Hence, how do I write a code to fire up instances in Openstack?因此,我如何编写代码来启动 Openstack 中的实例? let me know if another language will do it.让我知道是否有另一种语言可以做到。

In case of using a another language then python, you should use the REST-API of Openstack to interact with an openstack-deployment via HTTP-requests.如果使用另一种语言 python,您应该使用 Openstack 的 REST-API 通过 HTTP 请求与 openstack-deployment 进行交互。

See here for example the REST-API documentation for the compute part to control instances: https://docs.openstack.org/api-ref/compute/ and there for your desired case of creating an instance: https://docs.openstack.org/api-ref/compute/?expanded=create-server-detail#create-server例如,请参阅此处用于控制实例的计算部分的 REST-API 文档: https://docs.openstack.org/api-ref/compute/以及创建实例所需的案例: https://docs。 openstack.org/api-ref/compute/?expanded=create-server-detail#create-server

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM