修改配置模板
测试中
PUT
/{adminPath}/updateConfiguretemplate
最后修改时间:2023-09-21 15:22:19
责任人:mryunqi
请求参数
Path 参数
adminPath
string
必需
示例值:
admin
Header 参数
Authorization
string
可选
Body 参数application/json
configureTemplateId
integer | null
配置模板ID
sockets
integer | null
插槽数,默认为1
cores
integer | null
核心,默认1
threads
integer | null
线程数,默认1
devirtualization
boolean | null
可选
kvm
boolean | null
可选
cpuModel
integer | null
cpu信息模型ID
modelGroup
integer | null
可选
nested
boolean | null
可选
cpu
string | null
可选
cpuUnits
integer | null
可选
bwlimit
integer | null
可选
flowLimit
integer | null
可选
usedFlow
number | null
可选
arch
string | null
可选
acpi
string | null
可选
memory
integer | null
可选
storage
string | null
可选
systemDiskSize
integer | null
可选
mbpsRd
integer | null
可选
mbpsRdMax
integer | null
可选
mbpsWr
integer | null
可选
mbpsWrMax
integer | null
可选
iopsRd
integer | null
可选
iopsRdMax
integer | null
可选
iopsWr
integer | null
可选
iopsWrMax
integer | null
可选
dataDisk
可选
bandwidth
integer | null
带宽,单位Mbps
onBoot
integer | null
可选
ifnat
integer | null
是否开启nat
natnum
integer | null
nat端口转发数量
name
string
必需
示例
{
"configureTemplateId": 0,
"sockets": 0,
"cores": 0,
"threads": 0,
"devirtualization": true,
"kvm": true,
"cpuModel": 0,
"modelGroup": 0,
"nested": true,
"cpu": "string",
"cpuUnits": 0,
"bwlimit": 0,
"flowLimit": 0,
"usedFlow": 0,
"arch": "string",
"acpi": "string",
"memory": 0,
"storage": "string",
"systemDiskSize": 0,
"mbpsRd": 0,
"mbpsRdMax": 0,
"mbpsWr": 0,
"mbpsWrMax": 0,
"iopsRd": 0,
"iopsRdMax": 0,
"iopsWr": 0,
"iopsWrMax": 0,
"dataDisk": null,
"bandwidth": 0,
"onBoot": 0,
"ifnat": 0,
"natnum": 0,
"name": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/admin/updateConfiguretemplate' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-09-21 15:22:19