Retrieve a specific quota report record
GET /storage/quota/reports/{volume.uuid}/{index}
Introduced In: 9.6
Retrieves a specific quota report record.
Related ONTAP commands
-
quota report
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
volume.uuid |
string |
path |
True |
Volume UUID |
index |
integer |
path |
True |
Quota report index |
fields |
array[string] |
query |
False |
Specify the fields to return. |
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
_links |
||
files |
||
group |
This parameter specifies the target group associated with the given quota report record. This parameter is available for group quota records and is not available for user or tree quota records. The target group is identified by a UNIX group name and UNIX group identifer. |
|
index |
integer |
Index that identifies a unique quota record. Valid in URL. |
qtree |
This parameter specifies the target qtree to which the user/group/tree quota policy rule applies. For a user/group quota policy rule at qtree level, this parameter takes a qtree name and is valid in GET or POST. For a user/group quota policy rule at volume level, this parameter is not valid in GET or POST. For a tree quota policy rule, this parameter is mandatory and is valid in both POST and GET. For a default tree quota policy rule, this parameter needs to be specified as "". For a tree quota policy rule at qtree level, this parameter takes a qtree name and is valid in GET or POST. |
|
space |
||
specifier |
string |
Quota specifier |
svm |
||
type |
string |
Quota type associated with the quota record. |
users |
array[users] |
This parameter specifies the target user or users associated with the given quota report record. This parameter is available for user quota records and is not available for group or tree quota records. The target user or users are identified by a user name and user identifier. The user name can be a UNIX user name or a Windows user name, and the identifer can be a UNIX user identifier or a Windows security identifier. |
volume |
Example response
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"files": {
"hard_limit": 0,
"soft_limit": 0,
"used": {
"hard_limit_percent": 0,
"soft_limit_percent": 0,
"total": 0
}
},
"group": {
"id": "string",
"name": "string"
},
"index": 0,
"qtree": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"id": "1",
"name": "qt1"
},
"space": {
"hard_limit": 0,
"soft_limit": 0,
"used": {
"hard_limit_percent": 0,
"soft_limit_percent": 0,
"total": 0
}
},
"specifier": "string",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"type": "string",
"users": [
{
"id": "string",
"name": "string"
}
],
"volume": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "volume1",
"uuid": "028baa66-41bd-11e9-81d5-00a0986138f7"
}
}
Error
Status: Default
ONTAP Error Response Codes
Error Code | Description |
---|---|
918235 |
A volume with UUID was not found. |
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
used
Name | Type | Description |
---|---|---|
hard_limit_percent |
integer |
Total files used as a percentage of file hard limit |
soft_limit_percent |
integer |
Total files used as a percentage of file soft limit |
total |
integer |
Total files used |
files
Name | Type | Description |
---|---|---|
hard_limit |
integer |
File hard limit |
soft_limit |
integer |
File soft limit |
used |
group
This parameter specifies the target group associated with the given quota report record. This parameter is available for group quota records and is not available for user or tree quota records. The target group is identified by a UNIX group name and UNIX group identifer.
Name | Type | Description |
---|---|---|
id |
string |
Quota target group ID |
name |
string |
Quota target group name |
qtree
This parameter specifies the target qtree to which the user/group/tree quota policy rule applies. For a user/group quota policy rule at qtree level, this parameter takes a qtree name and is valid in GET or POST. For a user/group quota policy rule at volume level, this parameter is not valid in GET or POST. For a tree quota policy rule, this parameter is mandatory and is valid in both POST and GET. For a default tree quota policy rule, this parameter needs to be specified as "". For a tree quota policy rule at qtree level, this parameter takes a qtree name and is valid in GET or POST.
Name | Type | Description |
---|---|---|
_links |
||
id |
integer |
The unique identifier for a qtree. |
name |
string |
The name of the qtree. |
used
Name | Type | Description |
---|---|---|
hard_limit_percent |
integer |
Total space used as a percentage of space hard limit |
soft_limit_percent |
integer |
Total space used as a percentage of space soft limit |
total |
integer |
Total space used |
space
Name | Type | Description |
---|---|---|
hard_limit |
integer |
Space hard limit in bytes |
soft_limit |
integer |
Space soft limit in bytes |
used |
svm
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the SVM. |
uuid |
string |
The unique identifier of the SVM. |
users
Name | Type | Description |
---|---|---|
id |
string |
Quota target user ID |
name |
string |
Quota target user name |
volume
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the volume. |
uuid |
string |
Unique identifier for the volume. This corresponds to the instance-uuid that is exposed in the CLI and ONTAPI. It does not change due to a volume move.
|
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
Name | Type | Description |
---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |