2017-10-13 21:02:30 +00:00
|
|
|
---
|
2020-02-06 23:45:31 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: quota apply'
|
|
|
|
sidebar_title: apply
|
|
|
|
description: |
|
2017-10-13 21:02:30 +00:00
|
|
|
The quota apply command is used to create or update quota specifications.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Command: quota apply
|
|
|
|
|
|
|
|
The `quota apply` command is used to create or update quota specifications.
|
|
|
|
|
2018-03-22 20:39:18 +00:00
|
|
|
~> Quota commands are new in Nomad 0.7 and are only available with Nomad
|
|
|
|
Enterprise.
|
|
|
|
|
2017-10-13 21:02:30 +00:00
|
|
|
## Usage
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
```plaintext
|
2020-09-29 17:58:30 +00:00
|
|
|
nomad quota apply [options] <path>
|
2017-10-13 21:02:30 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
The `quota apply` command requires the path to the specification file. The
|
|
|
|
specification can be read from stdin by setting the path to "-".
|
|
|
|
|
2020-11-19 21:38:08 +00:00
|
|
|
If ACLs are enabled, this command requires a token with the `quota:write`
|
|
|
|
capability.
|
|
|
|
|
2017-10-13 21:02:30 +00:00
|
|
|
## General Options
|
|
|
|
|
2020-02-06 23:45:31 +00:00
|
|
|
@include 'general_options.mdx'
|
2017-10-13 21:02:30 +00:00
|
|
|
|
|
|
|
## Apply Options
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
- `-json`: Parse the input as a JSON quota specification.
|
2017-10-13 21:02:30 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Create a new quota specification:
|
|
|
|
|
2020-05-18 20:53:06 +00:00
|
|
|
```shell-session
|
|
|
|
$ nomad quota apply my-quota.hcl
|
2017-10-13 21:02:30 +00:00
|
|
|
Successfully applied quota specification "my-quota"!
|
|
|
|
```
|