c# - 使用 C# 实现 Google Compute Engine 自动化

标签 c# google-cloud-platform

我想在 Google 云中实现操作自动化。

我想完成的 4 项任务:

  1. 获取我所有虚拟机的列表。
  2. 停止特定虚拟机。
  3. 删除特定虚拟机。
  4. 从镜像创建虚拟机。

我的代码(用 C# 编写)应该能够运行这些函数来管理云资源。

这可以通过 Google 云实现吗?

我知道这可以通过 Microsoft-Azure (Azure Power Shell) 实现。 Google Cloud 中的等效项是什么?

最佳答案

您可以使用Google API Client library for .NET (另请参阅一些非特定于云的 code samples )以访问面向开发者的所有 Google 服务,包括 Google Cloud Platform。

关注getting started guide通过身份验证等设置您的环境。然后请参阅 docs for Google Compute Engine .NET client library .

关于c# - 使用 C# 实现 Google Compute Engine 自动化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32536596/

相关文章:

c# - 在 c# 中设置 enablessl=true 意味着安全的 ftp

c# - 有没有办法一次性批量更改 winform 标签名称?

firebase - 了解来自GCP的 "action required"电子邮件,re : enable Cloud Build API

google-cloud-platform - 将 VPC 连接到 Cloud SQL

c# - 为什么在传递对象(而不是结构)时使用 "ref"?

c# - Asp.Net/C# Å 何时等于 A? (且 É 等于 E)

oauth-2.0 - 如何在 GSuite 中创建仅供内部使用的 OAuth 2.0 应用程序?

node.js - 如何从大型 monorepo 部署一个应用程序,并依赖于同一 repo 中的包到 google app engine?

C# API 创建网页缩略图

load-balancing - Google Cloud http 负载平衡器 SSL 终止