open-nomad/website/pages/docs/commands/quota/apply.mdx

44 lines
932 B
Plaintext
Raw Normal View History

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
```plaintext
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 "-".
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
- `-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"!
```