Tạo lệnh cài máy
machines.pairing.createMCP:machines_pairing_createBộ công cụ: Quản trị workspaceCreate a one-time install command (Windows, Linux or Docker) that pairs a new machine. Shown once; expires soon.
Cần Idempotency-Key
Quản trị
Quyền: Quản trị workspace
Gọi bằng REST v2
curl -X POST https://zl.builera.app/api/public/v2/ops/machines.pairing.create \
-H "Authorization: Bearer za_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"platform":"windows"}'Mỗi khoá/kết nối tối đa 300 lệnh đọc và 60 lệnh ghi mỗi phút. Gọi lại cùng Idempotency-Key trả đúng kết quả cũ, không làm lại.
Gọi qua MCP
{
"method": "tools/call",
"params": {
"name": "machines_pairing_create",
"arguments": {
"platform": "windows"
}
}
}Thêm https://zl.builera.app/mcp vào ứng dụng AI rồi cho phép kết nối; AI chỉ thấy công cụ trong bộ bạn chọn.
Kết quả
HTTP 200
{ "status": "succeeded", "operationId": "…", "data": { … } }Ví dụ đầu vào
{
"platform": "windows"
}Thay mã (id) mẫu bằng mã thật lấy từ các thao tác liệt kê/tìm kiếm.
Lược đồ đầu vào (JSON Schema)
{
"type": "object",
"properties": {
"platform": {
"type": "string",
"enum": [
"windows",
"linux",
"docker"
]
}
},
"required": [
"platform"
],
"additionalProperties": false
}