yunify / qingcloud-sdk-go

The official QingCloud SDK for the Go programming language.
Apache License 2.0
29 stars 42 forks source link

Support GetResourceLimit #140

Closed Sunight closed 4 years ago

Sunight commented 5 years ago

请支持下 GetResourceLimit 接口,返回对应 zone 支持的主机、硬盘类型相关配置。

接口使用及返回可参考 cli,其中 volume_type 参数是可选的,如果传,则只返回对应硬盘类型的容量范围和 step。

root@webservice0:/pitrix/cli# ./get-resource-limit -h
Usage: get-resource-limit
--volume_type <volume_type>
--zone <zone>

Options:
  -h, --help            show this help message and exit
  -v VOLUME_TYPE, --volume_type=VOLUME_TYPE
  -z ZONE, --zone=ZONE
  -f CONF_FILE, --config=CONF_FILE
                        config file of your access keys
ruishawn commented 4 years ago

142 has fix it