提供商管理

创建提供商

管理员创建新的虚拟化提供商配置

post/admin/provider

Request body

allowClaimboolean
allowConcurrentTasksboolean

是否允许并发任务,默认false

architecturestring
citystring
configstring
container_enabledboolean
countrystring
countryCodestring
defaultInboundBandwidthinteger

带宽配置

defaultOutboundBandwidthinteger

默认出站带宽限制(Mbps)

defaultPortCountinteger

端口映射配置

enableTaskPollingboolean

是否启用任务轮询,默认true

endpointstring
executionRule'auto' | 'api_only' | 'ssh_only'

操作执行配置

expiresAtstring

过期时间,格式: "2006-01-02 15:04:05"

levelLimitsobject

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

maxConcurrentTasksinteger

最大并发任务数,默认1

maxContainerInstancesinteger

最大容器数量限制

maxInboundBandwidthinteger

最大入站带宽限制(Mbps)

maxOutboundBandwidthinteger

最大出站带宽限制(Mbps)

maxTrafficinteger

流量管理

maxVMInstancesinteger

最大虚拟机数量限制

namestring required
networkType'nat_ipv4' | 'nat_ipv4_ipv6' | 'dedicated_ipv4' | 'dedicated_ipv4_ipv6' | 'ipv6_only'

网络配置类型:nat_ipv4, nat_ipv4_ipv6, dedicated_ipv4, dedicated_ipv4_ipv6, ipv6_only

passwordstring
portRangeEndinteger

端口映射范围结束,默认65535

portRangeStartinteger

端口映射范围起始,默认10000

regionstring
sshConnectTimeoutinteger

SSH连接配置

sshExecuteTimeoutinteger

SSH命令执行超时时间(秒),默认300秒

sshPortinteger
statusstring
storagePoolstring

存储配置(ProxmoxVE专用)

taskPollIntervalinteger

任务轮询间隔(秒),默认60秒

tokenstring
totalQuotainteger
typestring required
usernamestring
vm_enabledboolean

Response

创建成功

codeinteger
{"stackTrail":"components:schemas:common.Response:properties:data","oasType":"schema","type":"unknown"}
msgstring

Changes