Open mingjian2049 opened 7 years ago
设置云主机的网卡限速
org.zstack.header.vm.APISetNicQosMsg
用户可以设置云主机的网卡限速,包括入网速度和出网速度
SetNicQos uuid=20d4521dcd0547f790bcfa4186c0e30e outboundBandwidth=1024000 inboundBandwidth=1024000
返回结果:
{ "success": true }
outboundBandwidth和inboundBandwidth的说明 最小值均为1024,二者至少有一个要有值。如果传入过大的值,会报错,但mevoco不会进行大值校验
备注2 若云主机为running或paused状态,则会立即取消限速,否则会等重启后生效
描述
设置云主机的网卡限速
API
org.zstack.header.vm.APISetNicQosMsg
举例(Example)
用户可以设置云主机的网卡限速,包括入网速度和出网速度
返回结果:
参数(Parameters)
备注
outboundBandwidth和inboundBandwidth的说明 最小值均为1024,二者至少有一个要有值。如果传入过大的值,会报错,但mevoco不会进行大值校验
备注2 若云主机为running或paused状态,则会立即取消限速,否则会等重启后生效
Feature_link