> 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/knowledge-base/vi/automation-api.md).

# Tự động hóa & API

* [Hướng dẫn API](/knowledge-base/vi/automation-api/verge-api-guide.md) — Hướng dẫn toàn diện về cách sử dụng API VergeOS, bao gồm xác thực, các phương thức HTTP, quy ước endpoint, lọc, sắp xếp, lỗi…
* [Script trợ giúp API](/knowledge-base/vi/automation-api/api-helper-script.md) — Hướng dẫn sử dụng script trợ giúp VergeOS yb-api để tương tác API đơn giản hơn, bao gồm liệt kê, tạo, sao chép và quản lý…
* [Mô tả các bảng API](/knowledge-base/vi/automation-api/api-tables-description.md) — Tài liệu tham khảo của tất cả các bảng API VergeOS với mô tả ngắn, bao gồm các tài nguyên như thanh toán, danh mục, cụm, chứng chỉ…
* [Ví dụ tác vụ tự động - Tự động bật/tắt VM khi cần](/knowledge-base/vi/automation-api/automated-task-example-1.md) — Ví dụ cấu hình của một tác vụ tự động giúp tiết kiệm tài nguyên bằng cách bật các VM khi người dùng được chỉ định đăng nhập, rồi tắt chúng khi…
* [Ví dụ tác vụ tự động - Gửi cảnh báo đến kênh Slack và email khi có lỗi đồng bộ](/knowledge-base/vi/automation-api/automated-task-example-webhook.md) — Ví dụ tự động hóa cho thấy cấu hình cụ thể để gửi cảnh báo qua email và thông báo đến kênh Slack nếu phát hiện lỗi đồng bộ.
* [Buộc tắt nguồn một VM bằng API](/knowledge-base/vi/automation-api/force-power-off-vm-using-api.md) — Hướng dẫn từng bước để buộc tắt nguồn một máy ảo không phản hồi bằng API VergeOS và giao diện Swagger, bao gồm…
* [Các cài đặt ảnh hưởng đến việc chọn nút của VM](/knowledge-base/vi/automation-api/determine-node-where-vm-runs.md) — Giải thích các tùy chọn VM kiểm soát VM chạy trên nút nào, bao gồm affinity và anti-affinity của nhóm HA, nút ưu tiên, cụm ưu tiên…
* [Nhà cung cấp Terraform VergeIO](/knowledge-base/vi/automation-api/terraform-vergeio-provider.md) — Tìm hiểu cách sử dụng VergeIO Terraform Provider để quản lý tài nguyên VergeOS theo chương trình.
* [API thao tác nâng cao với VM](/knowledge-base/vi/automation-api/vm-advanced-operations.md) — Hướng dẫn đầy đủ về các thao tác nâng cao với VM trong VergeOS, bao gồm sao chép, ảnh chụp nhanh, xóa và xử lý sự cố
* [API cấu hình VM](/knowledge-base/vi/automation-api/vm-configuration.md) — Hướng dẫn đầy đủ về việc sửa đổi cấu hình VM trong VergeOS, bao gồm cập nhật CPU/RAM, ghi chú, quản lý ổ đĩa và giao diện mạng…
* [API tạo VM](/knowledge-base/vi/automation-api/vm-creation-api.md) — Hướng dẫn đầy đủ về cách tạo máy ảo trong VergeOS, bao gồm tạo cơ bản, cấu hình dựa trên recipe, ổ đĩa, thiết bị và mạng…
* [Tổng quan API quản lý vòng đời VM](/knowledge-base/vi/automation-api/vm-lifecycle-management.md) — Hướng dẫn REST API đầy đủ cho việc quản lý vòng đời máy ảo trong VergeOS - tạo, quản lý, cấu hình và xóa VM theo chương trình
* [API quản lý nguồn VM](/knowledge-base/vi/automation-api/vm-power-management.md) — Hướng dẫn đầy đủ về quản lý trạng thái nguồn của VM trong VergeOS, bao gồm khởi động, dừng, khởi động lại và giám sát trạng thái nguồn


---

# 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/knowledge-base/vi/automation-api.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.
