配额中心
更新时间:2021-08-31
配额中心支持产品信息查询
- 查询配额中心支持的产品信息。
Go
1args := &ProductQueryArgs{
2 ProductType: "EIP",
3}
4result, _:= QUOTA_CENTER_CLIENT.ListProducts(args)
5fmt.Println(result)
配额中心产品支持地域查询
- 查询配额中心指定产品支持的地域列表。
Go
1args := &RegionQueryArgs{
2 ProductType: "EIP",
3 ServiceType: "EIP_BP",
4 Type: "QUOTA",
5}
6result, _ := QUOTA_CENTER_CLIENT.ListRegions(args)
7fmt.Println(result)
查询用户配额信息
- 查询用户的指定产品的指定地域的配额信息。
Go
1args := &QuotaCenterQueryArgs{
2 ServiceType: "EIP",
3 Type: "QUOTA",
4 Region: "su",
5}
6result, _ := QUOTA_CENTER_CLIENT.QuotaCenterQuery(args)
7fmt.Println(result)
配额中心支持产品配额信息查询
- 查询产品相关的配额信息。
Go
1args := &InfoQueryArgs{
2 Region: "sin",
3}
4result, err := QUOTA_CENTER_CLIENT.InfoQuery(args)
5fmt.Println(result)
6fmt.Println(err)