在 C# 中以编程方式使用 Openstack API
Programmatic use of Openstack API in C#
是否可以在C#等代码中使用Openstack API?我正在编写一些代码,需要在 Openstack 基础架构中启动 VM 实例。因此,我该如何编写代码来启动 Openstack 中的实例?让我知道是否有其他语言可以做到。
如果使用另一种语言 python,您应该使用 Openstack 的 REST-API 通过 HTTP 请求与 openstack 部署交互。
例如,请参阅此处用于控制实例的计算部分的 REST-API 文档: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
是否可以在C#等代码中使用Openstack API?我正在编写一些代码,需要在 Openstack 基础架构中启动 VM 实例。因此,我该如何编写代码来启动 Openstack 中的实例?让我知道是否有其他语言可以做到。
如果使用另一种语言 python,您应该使用 Openstack 的 REST-API 通过 HTTP 请求与 openstack 部署交互。
例如,请参阅此处用于控制实例的计算部分的 REST-API 文档: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