mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-06 21:52:54 +08:00
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
scope:
|
||
name: scope
|
||
in: query
|
||
type: string
|
||
description: 指定所查询的配额的作用范围,可能的值为project|domain。如果为project,则查询当前项目的配额,缺省为project。如果为domain,则查询当前项目的配额。
|
||
|
||
project_id:
|
||
name: project_id
|
||
in: path
|
||
required: true
|
||
type: string
|
||
description: 查询指定项目的配额
|
||
|
||
domain_id:
|
||
name: domain_id
|
||
in: path
|
||
required: true
|
||
type: string
|
||
description: 查询指定域的配额
|
||
|
||
project_domain:
|
||
name: project_domain
|
||
in: query
|
||
type: string
|
||
description: 指定查询的域名称或者ID
|
||
|
||
quotas:
|
||
name: quotas
|
||
in: body
|
||
required: true
|
||
type: object
|
||
description: 设置配额信息
|
||
properties:
|
||
action:
|
||
type: string
|
||
description: 设置配额的方式,可能值为set,replace, add和reset,分别代表设置配额,替换配额,增加配额和重置为初始配额四种方式
|
||
default: set
|
||
cascade:
|
||
type: boolean
|
||
description: 设置项目配额时,如果项目总配额超过域配额,则自动调整域配额
|
||
cpu:
|
||
type: integer
|
||
description: 设置CPU配额,单位为个
|
||
memory:
|
||
type: integer
|
||
description: 设置内存配额,单位为MB
|
||
storage:
|
||
type: integer
|
||
description: 设置磁盘配额,单位为MB
|
||
isolated_device:
|
||
type: integer
|
||
description: 设置GPU配额,单位为块
|
||
snapshot:
|
||
type: integer
|
||
description: 设置快照配额,单位为MB
|
||
image:
|
||
type: integer
|
||
description: 设置镜像配额,单位为个
|