> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/08-developer-devops.md).

# 概述

## 学习目标

在本模块结束时，你将能够：

* **使用 VergeOS REST API** 通过 REST 端点和 CLI 工具自动化常见基础设施操作
* **使用 pyvergeos 和 PowerShell 进行脚本编写** 以自动化批量 VM、网络和租户操作
* **使用 Terraform 提供程序管理基础设施** 用于声明式、受版本控制的部署
* **使用 Ansible 自动化配置** 使用 VergeOS 集合进行由 playbook 驱动的编排
* **使用任务引擎构建事件驱动型工作流** 使用 webhook 和自动化任务链
* **在 VergeOS 上部署 Kubernetes** 使用 Docker Machine Driver、Rancher 集成以及 VergeOS CSI/CCM 组件

## 前置条件

* 完成 [模块 1：架构基础](/learn-the-platform/zh/mo-kuai-1-jia-gou-ji-chu/01-architecture.md) -- 理解 VergeOS 平台架构
* 完成 [模块 6：虚拟机](/learn-the-platform/zh/mo-kuai-6-xu-ni-ji/06-virtual-machines.md) -- 了解 VM 配置和管理
* 完成 [模块 7：多租户](/learn-the-platform/zh/mo-kuai-7-duo-zu-hu/07-multi-tenancy.md) -- 了解租户创建和资源分配
* 对 REST API、命令行工具以及至少一种脚本语言（Python、PowerShell 或 HCL/Terraform）有基本了解

## 预计时间

**4 小时** （2 小时阅读 + 2 小时实验）

## 主题

* [**REST API 与 CLI 工具**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/01-api-cli.md) — 使用 VergeOS API 进行身份验证、探索端点、执行 CRUD 操作，并使用 `vrg` CLI 进行脚本化自动化。
* [**Python SDK（pyvergeos）**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/02-python-sdk.md) — 使用 pyvergeos 自动化 VergeOS 操作：VM 生命周期、网络管理、租户配置以及批量操作。
* [**PowerShell 模块**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/03-powershell-module.md) — 使用 PSVergeOS PowerShell 模块在 Windows 环境中管理 VergeOS，用于脚本编写和编排。
* [**Terraform 与 Packer**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/04-terraform-packer.md) — 使用 VergeOS Terraform 提供程序实现声明式基础设施即代码，并使用 Packer 构建不可变镜像。
* [**Ansible 集合**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/05-ansible.md) — 使用 VergeOS Ansible 集合进行由 playbook 驱动的配置管理和编排。
* [**任务引擎与 Webhooks**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/06-task-engine.md) — 使用内置任务引擎、计划任务和 webhook 集成实现事件驱动的自动化。
* [**Kubernetes 与 Rancher**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/07-kubernetes-rancher.md) — 使用 Docker Machine Driver、Rancher 集成、CSI 驱动程序和云控制器管理器在 VergeOS 上运行 Kubernetes。
* [**实验：基础设施自动化**](/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/lab.md) — 使用 REST API、Terraform 和脚本工具端到端自动化 VM 和租户配置。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/learn-the-platform/zh/mo-kuai-8-kai-fa-yu-devops/08-developer-devops.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
