虚拟化管理

连接虚拟化Provider

连接到虚拟化提供者(如Docker、LXD、Proxmox等)

post/provider/connect

Request

  • Base URL
    http://localhost:8888/api/v1
  • URL
    http://localhost:8888/api/v1/provider/connect
  • Auth
    API key in header Authorization

Request body

cert_pathstring
containerLimitCpuboolean

容器资源限制配置(Provider层面)

containerLimitDiskboolean

容器是否限制硬盘大小

containerLimitMemoryboolean

容器是否限制内存大小

container_enabledboolean
hoststring required
key_pathstring
levelLimitsobject

节点级别的等级限制配置 用于限制该节点上不同等级用户能创建的最大资源

namestring required
networkTypestring

网络配置类型

passwordstring required
portinteger

兼容旧的port字段

sshKeystring

SSH私钥内容,优先于密码使用

sshPortinteger

新的sshPort字段

tokenstring

API Token,用于ProxmoxVE等

typestring required
usernamestring required
vmLimitCpuboolean

虚拟机资源限制配置(Provider层面)

vmLimitDiskboolean

虚拟机是否限制硬盘大小

vmLimitMemoryboolean

虚拟机是否限制内存大小

vm_enabledboolean

Response

连接成功

codeinteger
dataunknown
messagestring
msgstring

Changes

No recorded changes to this operation across all 122 revisions of this API.