资源管理相关接口
更新时间:2021-06-29
获取BEC规格套餐
如下代码可以获取BEC规格套餐:
public void listBecServicePackages(BecClient client) {
ListBecServicePackagesRequest request = new ListBecServicePackagesRequest();
// 套餐类型(container,vm)
request.setType("vm");
ListBecServicePackagesResponse response = client.listBecServicePackages(request);
}
获取独占盘套餐
使用以下代码可以获取独占盘套餐:
public void listBecPassThroughDiskPackages(BecClient client) {
ListBecPassThroughDiskPackagesRequest request = new ListBecPassThroughDiskPackagesRequest();
ListBecPassThroughDiskPackagesResponse response = client.listBecPassThroughDiskPackages(request);
}