Files
cloudpods/docs/parameters/quota.yaml
T
Qiu Jian b02214bb25 1. allow replace set quota when action=replace
2. show when the project external resource was fetched
2019-07-04 23:32:10 +08:00

59 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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: 设置配额的方式,可能值为setreplace, 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: 设置镜像配额,单位为个