Module netapp_ontap.resources.quota_rule
Copyright © 2019 NetApp Inc. All rights reserved.
Overview
Quotas are defined in quota rules specific to FlexVols or FlexGroup volumes. Each quota rule has a type. The type can be "user", "group", or "tree". – User rules must have the user property and qtree property. – Group rules must have the group property and qtree property. – Tree rules must have the qtree property and not have the user or group property.
Quota policy rule APIs
The following APIs can be used to perform create, retrieve, modify, and delete operations related to quota policy rules. – POST /api/storage/quota/rules – GET /api/storage/quota/rules – GET /api/storage/quota/rules/{rule-uuid} – PATCH /api/storage/quota/rules/{rule-uuid} – DELETE /api/storage/quota/rules/{rule-uuid}
Examples
Retrieving all quota policy rules
This API is used to retrieve all quota policy rules.
The following example shows how to retrieve quota policy rules for FlexVols and FlexGroup volumes.
# The API:
GET /api/storage/quota/rules
# The call:
curl -X GET 'https://<mgmt-ip>/api/storage/quota/rules' -H 'accept: application/hal+json'
# The response:
{
"records": [
{
"svm": {
"uuid": "038545f8-9ff8-11e8-bce6-005056a73bed",
"name": "svm1",
"_links": {
"self": {
"href": "/api/svm/svms/038545f8-9ff8-11e8-bce6-005056a73bed"
}
}
},
"volume": {
"uuid": "ab3df793-0f02-43c6-9514-4f142fc8cc92",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/ab3df793-0f02-43c6-9514-4f142fc8cc92"
}
}
},
"uuid": "66319cbe-b837-11e8-9c5a-005056a7e88c",
"_links": {
"self": {
"href": "/api/storage/quota/rules/66319cbe-b837-11e8-9c5a-005056a7e88c"
}
}
},
{
"svm": {
"uuid": "038545f8-9ff8-11e8-bce6-005056a73bed",
"name": "svm1",
"_links": {
"self": {
"href": "/api/svm/svms/038545f8-9ff8-11e8-bce6-005056a73bed"
}
}
},
"volume": {
"uuid": "ab3df793-0f02-43c6-9514-4f142fc8cc92",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/ab3df793-0f02-43c6-9514-4f142fc8cc92"
}
}
},
"uuid": "dbd5b443-b7a4-11e8-bc58-005056a7e88c",
"_links": {
"self": {
"href": "/api/storage/quota/rules/dbd5b443-b7a4-11e8-bc58-005056a7e88c"
}
}
}
],
"num_records": 2,
"_links": {
"self": {
"href": "/api/storage/quota/rules"
}
}
}
Retrieving a specific quota policy rule
This API is used to retrieve a quota policy rule for a specific qtree.
The following example shows how to retrieve a quota policy user rule for a specific qtree.
# The API:
GET /api/storage/quota/rules/{rule.uuid}
# The call:
curl -X GET 'https://<mgmt-ip>/api/storage/quota/rules/264a9e0b-2e03-11e9-a610-005056a7b72d' -H 'accept: application/hal+json'
# Response for a user rule at a qtree level:
{
"svm": {
"uuid": "fd5db15a-15b9-11e9-a6ad-005056a760e0",
"name": "svm1",
"_links": {
"self": {
"href": "/api/svm/svms/fd5db15a-15b9-11e9-a6ad-005056a760e0"
}
}
},
"volume": {
"uuid": "c1b64eea-ca8b-45ec-9397-ab489830d268",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/c1b64eea-ca8b-45ec-9397-ab489830d268"
}
}
},
"uuid": "264a9e0b-2e03-11e9-a610-005056a7b72d",
"type": "user",
"users": [ {"name" : "fred"} ],
"qtree": {
"name": "qt1",
"id": 1,
"_links": {
"self": {
"href": "/api/storage/qtrees/c1b64eea-ca8b-45ec-9397-ab489830d268/1"
}
}
},
"user_mapping": on,
"space": {
"hard_limit": 1222800,
"soft_limit": 51200
},
"files": {
"hard_limit": 100,
"soft_limit": 80
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/264a9e0b-2e03-11e9-a610-005056a7b72d"
}
}
}
Retrieving a quota policy multi-user rule at the volume level
# The call:
curl -X GET 'https://<mgmt-ip>/api/storage/quota/rules/0ab84fba-19aa-11e9-a04d-005056a72f42' -H 'accept: application/hal+json'
# Response for a multi-user rule at volume level:
{
"svm": {
"uuid": "fd5db15a-15b9-11e9-a6ad-005056a760e0",
"name": "svm1",
"_links": {
"self": {
"href": "/api/svm/svms/fd5db15a-15b9-11e9-a6ad-005056a760e0"
}
}
},
"volume": {
"uuid": "c1b64eea-ca8b-45ec-9397-ab489830d268",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/c1b64eea-ca8b-45ec-9397-ab489830d268"
}
}
},
"uuid": "0ab84fba-19aa-11e9-a04d-005056a72f42",
"type": "user",
"users": [
{
"name": "sam",
},
{
"name": "smith",
},
{
"id": "300010",
},
],
"space": {
"hard_limit": 1222800,
"soft_limit": 51200
},
"files": {
"hard_limit": 100,
"soft_limit": 80
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/0ab84fba-19aa-11e9-a04d-005056a72f42"
}
}
}
Retrieving a quota policy default tree rule
# The call:
curl -X GET 'https://<mgmt-ip>/api/storage/quota/rules/4a276b8c-1753-11e9-8101-005056a760e0' -H 'accept: application/hal+json'
# Response for a default tree rule:
{
"svm": {
"uuid": "fd5db15a-15b9-11e9-a6ad-005056a760e0",
"name": "svm1",
"_links": {
"self": {
"href": "/api/svm/svms/fd5db15a-15b9-11e9-a6ad-005056a760e0"
}
}
},
"volume": {
"uuid": "c1b64eea-ca8b-45ec-9397-ab489830d268",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/c1b64eea-ca8b-45ec-9397-ab489830d268"
}
}
},
"uuid": "4a276b8c-1753-11e9-8101-005056a760e0",
"type": "tree",
"qtree": {
"name": ""
},
"space": {
"hard_limit": 1034000,
"soft_limit": 51200
},
"files": {
"hard_limit": 20,
"soft_limit": 10
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/4a276b8c-1753-11e9-8101-005056a760e0"
}
}
}
Retrieving a quota policy tree rule for a specific qtree
# The call:
curl -X GET 'https://<mgmt-ip>/api/storage/quota/rules/49b1134f-19ab-11e9-a04d-005056a72f42' -H 'accept: application/hal+json'
# Response for a tree rule for a specific qtree:
{
"svm": {
"uuid": "fd5db15a-15b9-11e9-a6ad-005056a760e0",
"name": "svm1",
"_links": {
"self": {
"href": "/api/svm/svms/fd5db15a-15b9-11e9-a6ad-005056a760e0"
}
}
},
"volume": {
"uuid": "c1b64eea-ca8b-45ec-9397-ab489830d268",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/c1b64eea-ca8b-45ec-9397-ab489830d268"
}
}
},
"uuid": "49b1134f-19ab-11e9-a04d-005056a72f42",
"type": "tree",
"qtree": {
"name": "qt1",
"id": 1,
"_links": {
"self": {
"href": "/api/storage/qtrees/c1b64eea-ca8b-45ec-9397-ab489830d268/1"
}
}
},
"space": {
"hard_limit": 1048576,
"soft_limit": 838861
},
"files": {
"hard_limit": 100,
"soft_limit": 40
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/49b1134f-19ab-11e9-a04d-005056a72f42"
}
}
}
Retrieving a quota policy group rule for a specific qtree
# The call:
curl -X GET 'https://<mgmt-ip>/api/storage/quota/rules/b9236852-19ab-11e9-a04d-005056a72f42' -H 'accept: application/hal+json'
# Response for a group rule:
{
"svm": {
"uuid": "fd5db15a-15b9-11e9-a6ad-005056a760e0",
"name": "svm1",
"_links": {
"self": {
"href": "/api/svm/svms/fd5db15a-15b9-11e9-a6ad-005056a760e0"
}
}
},
"volume": {
"uuid": "c1b64eea-ca8b-45ec-9397-ab489830d268",
"name": "vol1",
"_links": {
"self": {
"href": "/api/storage/volumes/c1b64eea-ca8b-45ec-9397-ab489830d268"
}
}
},
"uuid": "b9236852-19ab-11e9-a04d-005056a72f42",
"type": "group",
"group": {"name" : "group1"},
"qtree": {
"name": "qt1",
"id": 1,
"_links": {
"self": {
"href": "/api/storage/qtrees/c1b64eea-ca8b-45ec-9397-ab489830d268/1"
}
}
},
"space": {
"hard_limit": 2097152,
"soft_limit": 1572864
},
"files": {
"hard_limit": 250,
"soft_limit": 200
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/b9236852-19ab-11e9-a04d-005056a72f42"
}
}
}
Creating a quota policy rule
This API is used to create a new quote policy rule.
The following example shows how to create a quota policy user rule using POST.
# The API:
POST /api/storage/quota/rules
# The call:
curl -X POST 'https://<mgmt-ip>/api/storage/quota/rules?return_records=true' -H 'accept: application/hal+json' -d @test_quota_post.txt
test_quota_post.txt(body):
{
"svm": {
"name": "svm1"
},
"volume": {
"name": "vol1"
},
"type": "user",
"users": [ {"name" : "jsmith"} ],
"qtree": {
"name":"qt1"
},
"user_mapping": "on",
"space": {
"hard_limit": 8192,
"soft_limit": 1024
},
"files": {
"hard_limit": 20,
"soft_limit": 10
}
}
# The response
{
"num_records": 1,
"records": [
{
"svm": {
"name": "svm1"
},
"volume": {
"name": "fv"
},
"uuid": "3220eea6-5049-11e9-bfb7-005056a7f717",
"type": "user",
"users": [
{
"name" : "jsmith"
}
],
"qtree": {
"name": "qt1"
},
"user_mapping": "on",
"space": {
"hard_limit": 8192,
"soft_limit": 1024
},
"files": {
"hard_limit": 20,
"soft_limit": 10
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/3220eea6-5049-11e9-bfb7-005056a7f717"
}
}
}
],
"job": {
"uuid": "32223924-5049-11e9-bfb7-005056a7f717",
"_links": {
"self": {
"href": "/api/cluster/jobs/32223924-5049-11e9-bfb7-005056a7f717"
}
}
}
}
Creating a quota policy group rule using POST.
# The API:
POST /api/storage/quota/rules
# The call:
curl -X POST 'https://<mgmt-ip>/api/storage/quota/rules?return_records=true' -H 'accept: application/hal+json' -d @test_quota_post.txt
test_quota_post.txt(body):
{
"svm": {
"name": "svm1"
},
"volume": {
"name": "vol1"
},
"type": "group",
"group": {
"name" : "test_group1"
}
"qtree": {
"name":"qt1"
},
"space": {
"hard_limit": 8192,
"soft_limit": 1024
},
"files": {
"hard_limit": 20,
"soft_limit": 10
}
}
# The response
{
"num_records": 1,
"records": [
{
"svm": {
"name": "svm1"
},
"volume": {
"name": "fv"
},
"uuid": "3b130f7d-504a-11e9-bfb7-005056a7f717",
"type": "group",
"group": {
"name" : "test_group1"
},
"qtree": {
"name": "qt1"
},
"space": {
"hard_limit": 8192,
"soft_limit": 1024
},
"files": {
"hard_limit": 20,
"soft_limit": 10
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/3b130f7d-504a-11e9-bfb7-005056a7f717"
}
}
}
],
"job": {
"uuid": "32223924-5049-11e9-bfb7-005056a7f717",
"_links": {
"self": {
"href": "/api/cluster/jobs/32223924-5049-11e9-bfb7-005056a7f717"
}
}
}
}
Creating a quota policy tree rule using POST
# The API:
POST /api/storage/quota/rules
# The call:
curl -X POST 'https://<mgmt-ip>/api/storage/quota/rules?return_records=true' -H 'accept: application/hal+json' -d @test_quota_post.txt
test_quota_post.txt(body):
{
"svm": {
"name": "svm1"
},
"volume": {
"name": "vol1"
},
"type": "tree",
"qtree": {
"name":"qt1"
},
"space": {
"hard_limit": 8192,
"soft_limit": 1024
},
"files": {
"hard_limit": 20,
"soft_limit": 10
}
}
# The response
{
"num_records": 1,
"records": [
{
"svm": {
"name": "svm1"
},
"volume": {
"name": "fv"
},
"uuid": "e5eb03be-504a-11e9-bfb7-005056a7f717",
"type": "tree",
"qtree": {
"name": "qt1"
},
"space": {
"hard_limit": 8192,
"soft_limit": 1024
},
"files": {
"hard_limit": 20,
"soft_limit": 10
},
"_links": {
"self": {
"href": "/api/storage/quota/rules/e5eb03be-504a-11e9-bfb7-005056a7f717"
}
}
}
],
"job": {
"uuid": "32223924-5049-11e9-bfb7-005056a7f717",
"_links": {
"self": {
"href": "/api/cluster/jobs/32223924-5049-11e9-bfb7-005056a7f717"
}
}
}
}
Updating the quota policy rule
This API is used to update a quota policy rule.
The following example shows how to update a quota policy rule.
# The API:
PATCH /storage/quota/rules/{rule.uuid}
# The call:
curl -X PATCH "https://<mgmt-ip>/api/storage/quota/rules/364d38eb-8e87-11e8-a806-005056a7e73a" -H 'accept: application/hal+json' -d "@test_quota_patch.txt"
test_quota_patch.txt(body):
{
"space": {
"hard_limit": 16554,
"soft_limit": 8192
},
"files": {
"hard_limit": 40,
"soft_limit": 20
}
}
Deleting the quota policy rule
This API is used to delete a quota policy rule.
The following example shows how to delete a quota policy rule.
# The API:
DELETE /storage/quota/rules/{rule.uuid}
# The call:
curl -X DELETE "https://<mgmt-ip>/api/storage/quota/rules/364d38eb-8e87-11e8-a806-005056a7e73a" -H 'accept: application/hal+json'
Classes
class QuotaRule (*args, **kwargs)
-
Allows interaction with QuotaRule objects on the host
Initialize the instance of the resource.
Any keyword arguments are set on the instance as properties. For example, if the class was named 'MyResource', then this statement would be true:
MyResource(name='foo').name == 'foo'
Args
*args
- Each positional argument represents a parent key as used in the URL of the object. That is, each value will be used to fill in a segment of the URL which refers to some parent object. The order of these arguments must match the order they are specified in the URL, from left to right.
**kwargs
- each entry will have its key set as an attribute name on the instance and its value will be the value of that attribute.
Ancestors
Static methods
def delete_collection(*args, connection: HostConnection = None, **kwargs) -> NetAppResponse
-
Deletes a quota policy rule.
Related ONTAP commands
quota policy rule delete
Learn more
Delete all objects in a collection which match the given query.
All records on the host which match the query will be deleted.
Args
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to delete the collection of bars for a particular foo, the foo.name value should be passed.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host. Only resources matching this query will be patched.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def find(*args, connection: HostConnection = None, **kwargs) -> Resource
-
Retrieves quota policy rules configured for all FlexVols and FlexGroup volumes.
Related ONTAP commands
quota policy rule show
Learn more
Find an instance of an object on the host given a query.
The host will be queried with the provided key/value pairs to find a matching resource. If 0 are found or if more than 1 is found, an error will be raised or returned. If there is exactly 1 matching record, then it will be returned.
Args
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to find a bar for a particular foo, the foo.name value should be passed.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A
Resource
object containing the details of the object.Raises
NetAppRestError
: If the API call did not return exactly 1 matching resource. def get_collection(*args, connection: HostConnection = None, max_records: int = None, **kwargs) -> typing.Iterable
-
Retrieves quota policy rules configured for all FlexVols and FlexGroup volumes.
Related ONTAP commands
quota policy rule show
Learn more
Fetch a list of all objects of this type from the host.
Args
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to get the collection of bars for a particular foo, the foo.name value should be passed.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. max_records
- The maximum number of records to return per call
**kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A list of
Resource
objectsRaises
NetAppRestError
: If there is no connection available to use either passed in or on the library. def patch_collection(body: dict, *args, connection: HostConnection = None, **kwargs) -> NetAppResponse
-
Updates properties of a specific quota policy rule.
Important notes: * The quota resize functionality is supported with the PATCH operation. * Quota resize allows you to modify the quota limits, directly in the filesystem. * The quota must be enabled on a FlexVol or a FlexGroup volume forquota resize
to take effect. * If the quota is disabled on the volume, the quota policy rule PATCH API modifies the rule, but this does not affect the limits in the filesystem.Related ONTAP commands
quota policy rule modify
quota resize
Learn more
Patch all objects in a collection which match the given query.
All records on the host which match the query will be patched with the provided body.
Args
body
- A dictionary of name/value pairs to set on all matching members of the collection.
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to patch the collection of bars for a particular foo, the foo.name value should be passed.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host. Only resources matching this query will be patched.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400
Methods
def delete(self, poll: bool = True, poll_interval: typing.Union = None, poll_timeout: typing.Union = None, **kwargs) -> NetAppResponse
-
Deletes a quota policy rule.
Related ONTAP commands
quota policy rule delete
Learn more
Send a deletion request to the host for this object.
Args
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
**kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def get(self, **kwargs) -> NetAppResponse
-
Retrieves properties for a specific quota policy rule.
Related ONTAP commands
quota policy rule show
Learn more
Fetch the details of the object from the host.
Requires the keys to be set (if any). After returning, new or changed properties from the host will be set on the instance.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def patch(self, hydrate: bool = False, poll: bool = True, poll_interval: typing.Union = None, poll_timeout: typing.Union = None, **kwargs) -> NetAppResponse
-
Updates properties of a specific quota policy rule.
Important notes: * The quota resize functionality is supported with the PATCH operation. * Quota resize allows you to modify the quota limits, directly in the filesystem. * The quota must be enabled on a FlexVol or a FlexGroup volume forquota resize
to take effect. * If the quota is disabled on the volume, the quota policy rule PATCH API modifies the rule, but this does not affect the limits in the filesystem.Related ONTAP commands
quota policy rule modify
quota resize
Learn more
Send the difference in the object's state to the host as a modification request.
Calculates the difference in the object's state since the last time we interacted with the host and sends this in the request body.
Args
hydrate
- If set to True, after the response is received from the call, a a GET call will be made to refresh all fields of the object.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
**kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def post(self, hydrate: bool = False, poll: bool = True, poll_interval: typing.Union = None, poll_timeout: typing.Union = None, **kwargs) -> NetAppResponse
-
Creates a quota policy rule for a FlexVol or a FlexGroup volume.
Important notes: * Unlike CLI/ONTAPI, thequota policy
input is not needed for POST.Required properties
svm.uuid
orsvm.name
- Existing SVM in which to create the qtree.volume.uuid
orvolume.name
- Existing volume in which to create the qtree.type
- Quota type for the rule. This type can beuser
,group
, ortree
.users.name
oruser.id
- If the quota type is user, this property takes the user name or user ID. For default user quota rules, the user name must be specified as "".group.name
orgroup.id
- If the quota type is group, this property takes the group name or group ID. For default group quota rules, the group name must be specified as "".qtree.name
- Qtree for which to create the rule. For default tree rules, the qtree name must be specified as "".
Recommended optional properties
space.hard_limit
- Specifies the space hard limit, in bytes. If less than 1024 bytes, the value is rounded up to 1024 bytes.space.soft_limit
- Specifies the space soft limit, in bytes. If less than 1024 bytes, the value is rounded up to 1024 bytes.files.hard_limit
- Specifies the hard limit for files.files.hard_limit
- Specifies the soft limit for files.user_mapping
- Specifies the user_mapping. This property is valid only for quota policy rules of typeuser
.
Related ONTAP commands
quota policy rule create
Learn more
Send this object to the host as a creation request.
Args
hydrate
- If set to True, after the response is received from the call, a a GET call will be made to refresh all fields of the object.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
**kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400
Inherited members
class QuotaRuleSchema (only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
-
The fields of the QuotaRule object
Ancestors
- netapp_ontap.resource.ResourceSchema
- marshmallow.schema.Schema
- marshmallow.schema.BaseSchema
- marshmallow.base.SchemaABC
Class variables
var files
-
The files field of the quota_rule.
var group
-
The group field of the quota_rule.
var links
-
The links field of the quota_rule.
var opts
var qtree
-
The qtree field of the quota_rule.
var space
-
The space field of the quota_rule.
var svm
-
The svm field of the quota_rule.
var type
-
This parameter specifies the quota policy rule type. This is required in POST only and can take either one of the "user", "group" or "tree" values.
Valid choices:
- tree
- user
- group
var user_mapping
-
This parameter enables user mapping for user quota policy rules. This is valid in POST or PATCH for user quota policy rules only.
var users
-
This parameter specifies the target user to which the user quota policy rule applies. This parameter takes single or multiple user names or identifiers. This parameter is valid only for the POST operation of a user quota policy rule. If this parameter is used as an input to create a group or a tree quota policy rule, the POST operation will fail with an appropriate error. For POST, this input parameter takes either a user name or a user identifier, not both. For default quota rules, the user name must be chosen and specified as "". For explicit user quota rules, this parameter can indicate either a user name or user identifier. The user name can be a UNIX user name or a Windows user name. If a name contains a space, enclose the entire value in quotes. A UNIX user name cannot include a backslash () or an @ sign; user names with these characters are treated as Windows names. The user identifer can be a UNIX user identifier or a Windows security identifier. For multi-user quota, this parameter can contain multiple user targets separated by a comma.
var uuid
-
Unique identifier for the quota policy rule. This field is generated when the quota policy rule is created.
Example: 5f1d13a7-f401-11e8-ac1a-005056a7c3b9
var volume
-
The volume field of the quota_rule.