更新时间:2024-05-20 GMT+08:00
分享

查询企业项目配额组

功能介绍

查询企业项目配额组信息。

调试

您可以在API Explorer中调试该接口。

URI

GET https://{Endpoint}/v3/{project_id}/enterprise-projects/quotas

表1 参数说明

参数

是否必选

参数类型

描述

project_id

String

租户在某一Region下的项目ID。

获取方法请参见获取项目ID

enterprise_project_id

String

企业项目ID。

- 对于未开通企业多项目服务的用户,不传该参数。

- 对于已开通企业多项目服务的用户,不传该参数时,表示为default企业项目。

offset

Integer

索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。例如:该参数指定为0,limit指定为10,则只展示第1-10条数据。

limit

Integer

查询记录数。默认为100,不能为负数,最小值为1,最大值为100。例如该参数设定为10,则查询结果最多只显示10条记录。

请求参数

响应参数

表2 参数说明

名称

参数类型

说明

eps_quotas

Array of objects

企业项目详情列表。

详情请参见表3

total_count

Integer

总记录数。

表3 eps_quotas字段数据结构说明

名称

参数类型

说明

enterprise_project_id

String

企业项目ID。

enterprise_project_name

String

企业项目名称。

instance_eps_quota

Integer

EPS实例资源配额数量,值为-1时表示配额无限制。

vcpus_eps_quota

Integer

EPS计算资源配额数量,值为-1时表示配额无限制。

ram_eps_quota

Integer

EPS内存资源配额量,单位为GB,值为-1时表示配额无限制。

volume_eps_quota

Integer

EPS磁盘资源配额量,单位为GB,值为-1时表示配额无限制。

instance_used

Integer

EPS实例使用数量。

vcpus_used

Integer

EPS计算资源使用数量。

ram_used

Integer

EPS内存使用配额量,单位为GB。

volume_used

Integer

EPS磁盘使用配额量,单位为GB。

请求示例

GET https://gaussdb-opengauss.cn-north-1.myhuaweicloud.com/v3/0611f1bd8b00d5d32f17c017f15b599f/enterprise-projects/quotas

响应示例

{ 
   "eps_quotas" : [ { 
     "enterprise_project_id" : "2c049d98-3347-494f-8767-99af6b3aa5f0", 
     "enterprise_project_name" : "default", 
     "instance_eps_quota" : 100, 
     "vcpus_eps_quota" : 1500, 
     "ram_eps_quota" : 20000, 
     "volume_eps_quota" : 100000, 
     "instance_used" : 33, 
     "vcpus_used" : 1460, 
     "ram_used" : 19680, 
     "volume_used" : 8840 
   }, { 
     "enterprise_project_id" : "2c049d98-3347-494f-8767-99af6b3aa5f0", 
     "enterprise_project_name" : "11111", 
     "instance_eps_quota" : -1, 
     "vcpus_eps_quota" : -1, 
     "ram_eps_quota" : -1, 
     "volume_eps_quota" : -1, 
     "instance_used" : 2, 
     "vcpus_used" : 54, 
     "ram_used" : 384, 
     "volume_used" : 680 
   }, { 
     "enterprise_project_id" : "bd91e1eb-2e33-4f17-a8d4-05eb2c805781", 
     "enterprise_project_name" : "quota_at_gaussdbv5_test", 
     "instance_eps_quota" : -1, 
     "vcpus_eps_quota" : -1, 
     "ram_eps_quota" : -1, 
     "volume_eps_quota" : -1, 
     "instance_used" : 1, 
     "vcpus_used" : 240, 
     "ram_used" : 1920, 
     "volume_used" : 480 
   } ], 
   "total_count" : 3 
 }

状态码

错误码

请参见错误码

分享:

    相关文档

    相关产品