# Module `netapp_ontap.resources.quota_report`

Copyright © 2021 NetApp Inc. All rights reserved.

## Overview

Quota reports provide the current file and space consumption for a user, group, or qtree in a FlexVol or a FlexGroup volume.

## Quota report APIs

The following APIs can be used to retrieve quota reports associated with a volume in ONTAP.

- GET /api/storage/quota/reports
- GET /api/storage/quota/reports/{volume_uuid}/{index}

## Examples

### Retrieving all the quota report records

This API is used to retrieve all the quota report records.
The following example shows how to retrieve quota report records for all FlexVol volumes and FlexGroup volumes.

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        print(list(QuotaReport.get_collection()))

Try it out

    [
        QuotaReport(
            {
                "index": 0,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fg",
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/0"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 1152921504606846976,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fg",
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/1152921504606846976"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 3458764513820540928,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fg",
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/3458764513820540928"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 4611686018427387904,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fg",
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/4611686018427387904"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 5764607523034234880,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fg",
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/5764607523034234880"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 0,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/0"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 281474976710656,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/281474976710656"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 1152921504606846976,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/1152921504606846976"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 1153202979583557632,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/1153202979583557632"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 2305843013508661248,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/2305843013508661248"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 3458764513820540928,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/3458764513820540928"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 3459045988797251584,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/3459045988797251584"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 4611686018427387904,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/4611686018427387904"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 4611967493404098560,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/4611967493404098560"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 5764607523034234880,
                "svm": {
                    "name": "svm1",
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/5764607523034234880"
                    }
                },
            }
        ),
    ]

### Retrieving a specific quota report record

This API is used to retrieve a specific quota report record.
The following example shows how to retrieve a single quota report user record.

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=281474976710656, **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "index": 281474976710656,
            "qtree": {
                "id": 1,
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
                "name": "qt1",
            },
            "users": [{"id": "300008", "name": "fred"}],
            "space": {
                "used": {
                    "soft_limit_percent": 34,
                    "hard_limit_percent": 25,
                    "total": 10567680,
                },
                "soft_limit": 31457280,
                "hard_limit": 41943040,
            },
            "svm": {
                "name": "svm1",
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
            },
            "files": {
                "used": {"soft_limit_percent": 37, "hard_limit_percent": 28, "total": 11},
                "soft_limit": 30,
                "hard_limit": 40,
            },
            "volume": {
                "name": "fv",
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
            },
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/281474976710656"
                }
            },
            "type": "user",
        }
    )

### Retrieving a single quota report multi-user record

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=281474976710656, **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "index": 1153484454560268288,
            "qtree": {
                "id": 1,
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
                "name": "qt1",
            },
            "users": [
                {"id": "300008", "name": "fred"},
                {"id": "300009", "name": "john"},
                {"id": "300010", "name": "smith"},
            ],
            "space": {
                "used": {
                    "soft_limit_percent": 34,
                    "hard_limit_percent": 25,
                    "total": 10567680,
                },
                "soft_limit": 31457280,
                "hard_limit": 41943040,
            },
            "svm": {
                "name": "svm1",
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
            },
            "files": {
                "used": {"soft_limit_percent": 37, "hard_limit_percent": 28, "total": 11},
                "soft_limit": 30,
                "hard_limit": 40,
            },
            "volume": {
                "name": "fv",
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
            },
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/1153484454560268288"
                }
            },
            "type": "user",
        }
    )

### Retrieving a single quota report group record

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=3459045988797251584,
            **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "index": 3459045988797251584,
            "qtree": {
                "id": 1,
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
                "name": "qt1",
            },
            "space": {
                "used": {
                    "soft_limit_percent": 34,
                    "hard_limit_percent": 25,
                    "total": 10567680,
                },
                "soft_limit": 31457280,
                "hard_limit": 41943040,
            },
            "svm": {
                "name": "svm1",
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
            },
            "files": {
                "used": {"soft_limit_percent": 37, "hard_limit_percent": 28, "total": 11},
                "soft_limit": 30,
                "hard_limit": 40,
            },
            "volume": {
                "name": "fv",
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
            },
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/3459045988797251584"
                }
            },
            "group": {"id": "500009", "name": "test_group"},
            "type": "group",
        }
    )

### Retrieving a single quota report tree record

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=4612248968380809216,
            **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "index": 4612248968380809216,
            "qtree": {
                "id": 1,
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
                "name": "qt1",
            },
            "space": {
                "used": {
                    "soft_limit_percent": 34,
                    "hard_limit_percent": 25,
                    "total": 10567680,
                },
                "soft_limit": 31457280,
                "hard_limit": 41943040,
            },
            "svm": {
                "name": "svm1",
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
            },
            "files": {
                "used": {"soft_limit_percent": 37, "hard_limit_percent": 28, "total": 11},
                "soft_limit": 30,
                "hard_limit": 40,
            },
            "volume": {
                "name": "fv",
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
            },
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/4612248968380809216"
                }
            },
            "type": "tree",
        }
    )

### Retrieving only records enforced by non-default rules

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        print(list(QuotaReport.get_collection(show_default_records=False)))

Try it out

    [
        QuotaReport(
            {
                "index": 4612248968380809216,
                "qtree": {
                    "id": 1,
                    "_links": {
                        "self": {
                            "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                        }
                    },
                    "name": "qt1",
                },
                "space": {
                    "used": {
                        "soft_limit_percent": 34,
                        "hard_limit_percent": 25,
                        "total": 10567680,
                    },
                    "soft_limit": 31457280,
                    "hard_limit": 41943040,
                },
                "svm": {
                    "name": "svm1",
                    "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"
                        }
                    },
                },
                "files": {
                    "used": {
                        "soft_limit_percent": 37,
                        "hard_limit_percent": 28,
                        "total": 11,
                    },
                    "soft_limit": 30,
                    "hard_limit": 40,
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/4612248968380809216"
                    }
                },
                "type": "tree",
            }
        ),
        QuotaReport(
            {
                "index": 1153484454560268288,
                "qtree": {
                    "id": 1,
                    "_links": {
                        "self": {
                            "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                        }
                    },
                    "name": "qt1",
                },
                "users": [
                    {"id": "300008", "name": "fred"},
                    {"id": "300009", "name": "john"},
                    {"id": "300010", "name": "smith"},
                ],
                "space": {
                    "used": {
                        "soft_limit_percent": 34,
                        "hard_limit_percent": 25,
                        "total": 10567680,
                    },
                    "soft_limit": 31457280,
                    "hard_limit": 41943040,
                },
                "svm": {
                    "name": "svm1",
                    "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"
                        }
                    },
                },
                "files": {
                    "used": {
                        "soft_limit_percent": 37,
                        "hard_limit_percent": 28,
                        "total": 11,
                    },
                    "soft_limit": 30,
                    "hard_limit": 40,
                },
                "volume": {
                    "name": "fv",
                    "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/1153484454560268288"
                    }
                },
                "type": "user",
            }
        ),
    ]

### Retrieving quota report records with query parameters

The following example shows how to retrieve tree type quota report records.

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        print(list(QuotaReport.get_collection(type="tree")))

Try it out

    [
        QuotaReport(
            {
                "index": 2305843013508661248,
                "svm": {
                    "name": "svm1",
                    "uuid": "903e54ee-6ccf-11ea-bc35-005056823577",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/903e54ee-6ccf-11ea-bc35-005056823577"
                        }
                    },
                },
                "volume": {
                    "name": "fv",
                    "uuid": "8812b000-6e1e-11ea-9bad-00505682cd5c",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/8812b000-6e1e-11ea-9bad-00505682cd5c"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/8812b000-6e1e-11ea-9bad-00505682cd5c/2305843013508661248"
                    }
                },
                "type": "tree",
            }
        ),
        QuotaReport(
            {
                "index": 2305843013508661248,
                "svm": {
                    "name": "svm1",
                    "uuid": "903e54ee-6ccf-11ea-bc35-005056823577",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/903e54ee-6ccf-11ea-bc35-005056823577"
                        }
                    },
                },
                "volume": {
                    "name": "fg",
                    "uuid": "a5ceebd2-6ccf-11ea-bc35-005056823577",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/a5ceebd2-6ccf-11ea-bc35-005056823577"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/a5ceebd2-6ccf-11ea-bc35-005056823577/2305843013508661248"
                    }
                },
                "type": "tree",
            }
        ),
    ]

### Retrieving all the quota reports of a specific volume and the files fields

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        print(list(QuotaReport.get_collection(fields="files", **{"volume.name": "fv"})))

Try it out

    [
        QuotaReport(
            {
                "index": 410328290557952,
                "svm": {
                    "name": "svm1",
                    "uuid": "903e54ee-6ccf-11ea-bc35-005056823577",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/903e54ee-6ccf-11ea-bc35-005056823577"
                        }
                    },
                },
                "files": {
                    "used": {"soft_limit_percent": 0, "hard_limit_percent": 0, "total": 0},
                    "soft_limit": 20,
                    "hard_limit": 30,
                },
                "volume": {
                    "name": "fv",
                    "uuid": "8812b000-6e1e-11ea-9bad-00505682cd5c",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/8812b000-6e1e-11ea-9bad-00505682cd5c"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/8812b000-6e1e-11ea-9bad-00505682cd5c/410328290557952"
                    }
                },
            }
        ),
        QuotaReport(
            {
                "index": 2305843013508661248,
                "svm": {
                    "name": "svm1",
                    "uuid": "903e54ee-6ccf-11ea-bc35-005056823577",
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/903e54ee-6ccf-11ea-bc35-005056823577"
                        }
                    },
                },
                "files": {
                    "used": {"soft_limit_percent": 2, "hard_limit_percent": 1, "total": 4},
                    "soft_limit": 200,
                    "hard_limit": 400,
                },
                "volume": {
                    "name": "fv",
                    "uuid": "8812b000-6e1e-11ea-9bad-00505682cd5c",
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/8812b000-6e1e-11ea-9bad-00505682cd5c"
                        }
                    },
                },
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/8812b000-6e1e-11ea-9bad-00505682cd5c/2305843013508661248"
                    }
                },
            }
        ),
    ]

## Classes

`class QuotaReport (*args, **kwargs)`

  Allows interaction with QuotaReport 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

  - Resource

  ### Static methods

  `def count_collection(*args, connection: HostConnection = None, **kwargs) -> int`

    Retrieves the quota report records for all FlexVol volumes and FlexGroup volumes.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    Fetch a count of all objects of this type from the host.

    This calls GET on the object to determine the number of records. It is more efficient than calling get_collection() because it will not construct any objects. Query parameters can be passed in as kwargs to determine a count of objects that match some filtered criteria.

    ## 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 count 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. These query parameters can affect the count. A return_records query param will be ignored.

    ## Returns

    On success, returns an integer count of the objects of this type. On failure, returns -1.

    ## Raises

    `NetAppRestError`: If the API call returned a status code >= 400, or if there is no connection available to use either passed in or on the library.

  `def find(*args, connection: HostConnection = None, **kwargs) -> Resource`

    Retrieves the quota report records for all FlexVol volumes and FlexGroup volumes.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    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, None will be returned. 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 or None if no matches were found.

    ## Raises

    `NetAppRestError`: If the API call returned more than 1 matching resource.

  `def get_collection(*args, connection: HostConnection = None, max_records: int = None, **kwargs) -> typing.Iterable`

    Retrieves the quota report records for all FlexVol volumes and FlexGroup volumes.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    Fetch a list of all objects of this type from the host.

    This is a lazy fetch, making API calls only as necessary when the result of this call is iterated over. For instance, if max_records is set to 5, then iterating over the collection causes an API call to be sent to the server once for every 5 records. If the client stops iterating before getting to the 6th record, then no additional API calls are made.

    ## 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` objects

    ## Raises

    `NetAppRestError`: If there is no connection available to use either passed in or on the library. This would be not be raised when get_collection() is called, but rather when the result is iterated.

  ### Methods

  `def get(self, **kwargs) -> NetAppResponse`

    Retrieves a specific quota report record.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    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

  ### Inherited members

  - `Resource`:
    - `from_dict`
    - `get_collection_url`
    - `get_connection`
    - `instance_location`
    - `path_keys`
    - `poll`
    - `set_connection`
    - `to_dict`
`class QuotaReportSchema (*, only: typing.Union = None, exclude: typing.Union = (), many: bool = False, context: typing.Dict = None, load_only: typing.Union = (), dump_only: typing.Union = (), partial: typing.Union = False, unknown: str = None)`

  The fields of the QuotaReport object

  ### Ancestors

  - netapp_ontap.resource.ResourceSchema
  - marshmallow.schema.Schema
  - marshmallow.base.SchemaABC

  ### Class variables

  `files GET POST PATCH`

    The files field of the quota_report.

  `group GET POST PATCH`

    The group field of the quota_report.

  `index GET`

    Index that identifies a unique quota record. Valid in URL.

  `links GET`

    The links field of the quota_report.

  `qtree GET POST PATCH`

    The qtree field of the quota_report.

  `space GET POST PATCH`

    The space field of the quota_report.

  `specifier GET`

    Quota specifier

  `svm GET POST PATCH`

    The svm field of the quota_report.

  `type GET`

    Quota type associated with the quota record.

    Valid choices:

    - tree
    - user
    - group
  `users GET POST PATCH`

    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 GET POST PATCH`

    The volume field of the quota_report.